fix udisks2 paths

This commit is contained in:
Sergey Mironov
2013-04-04 12:02:53 +04:00
parent 979f2b0110
commit b1386e4a09
2 changed files with 18 additions and 1 deletions
+5 -1
View File
@@ -11,10 +11,14 @@ stdenv.mkDerivation rec {
sha256 = "1a0mipihilscv9jwy59xrqn2kkri9p12a09anpjdld83l7jhh0ii";
};
patches = [ ./force-path.patch ];
# FIXME remove /var/run/current-system/sw/* references
# FIXME add references to parted, cryptsetup, etc (see the sources)
postPatch =
''
substituteInPlace src/main.c --replace \
"/sbin:/bin:/usr/sbin:/usr/bin" \
"@path@" \
"${utillinux}/bin:${mdadm}/sbin:/var/run/current-system/sw/bin:/var/run/current-system/sw/sbin"
'';