nixpart-0.4: fix build of multipath-tools dependency (#15359)

This commit is contained in:
Данило Глинський (Danylo Hlynskyi) 2016-05-12 11:39:12 +03:00 committed by Domen Kožar
parent 48d760c650
commit a74984d660

View file

@ -10,11 +10,11 @@ stdenv.mkDerivation rec {
sourceRoot = ".";
buildInputs = [ lvm2 libaio readline ];
buildInputs = [ lvm2 libaio readline gzip ];
preBuild =
''
makeFlagsArray=(GZIP="${gzip}/bin/gzip -9 -c" prefix=$out mandir=$out/share/man/man8 man5dir=$out/share/man/man5 LIB=lib)
makeFlagsArray=(GZIP="-9" prefix=$out mandir=$out/share/man/man8 man5dir=$out/share/man/man5 LIB=lib)
substituteInPlace multipath/Makefile --replace /etc $out/etc
substituteInPlace kpartx/Makefile --replace /etc $out/etc