mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-12-28 14:22:50 +03:00
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 New Issue
Block a user