forked from mirrors/nixpkgs
moosefs: fix datapath for mfscgiserv
The datapath in mfscgisrv is hardcoded and pointed to the nix store, which made the program fail on startup.
This commit is contained in:
parent
d2ed1f4fad
commit
69a601c627
|
@ -5,7 +5,7 @@
|
|||
, fuse
|
||||
, pkgconfig
|
||||
, libpcap
|
||||
, zlib
|
||||
, zlib
|
||||
}:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
|
@ -25,6 +25,7 @@ stdenv.mkDerivation rec {
|
|||
[ fuse libpcap zlib ];
|
||||
|
||||
postInstall = ''
|
||||
substituteInPlace $out/sbin/mfscgiserv --replace "datapath=\"$out" "datapath=\""
|
||||
wrapProgram $out/sbin/mfscgiserv \
|
||||
--prefix PATH ":" "${python}/bin"
|
||||
'';
|
||||
|
|
Loading…
Reference in a new issue