Merge pull request #89740 from markuskowa/fix-moosefs

moosefs: fix datapath for mfscgiserv
This commit is contained in:
markuskowa 2020-06-08 09:48:16 +02:00 committed by GitHub
commit 9ebc144034
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -5,7 +5,7 @@
, fuse , fuse
, pkgconfig , pkgconfig
, libpcap , libpcap
, zlib , zlib
}: }:
stdenv.mkDerivation rec { stdenv.mkDerivation rec {
@ -25,6 +25,7 @@ stdenv.mkDerivation rec {
[ fuse libpcap zlib ]; [ fuse libpcap zlib ];
postInstall = '' postInstall = ''
substituteInPlace $out/sbin/mfscgiserv --replace "datapath=\"$out" "datapath=\""
wrapProgram $out/sbin/mfscgiserv \ wrapProgram $out/sbin/mfscgiserv \
--prefix PATH ":" "${python}/bin" --prefix PATH ":" "${python}/bin"
''; '';