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:
Markus Kowalewski 2020-06-07 15:28:18 +02:00
parent d2ed1f4fad
commit 69a601c627
No known key found for this signature in database
GPG Key ID: D865C8A91D7025EB

View File

@ -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"
'';