ldm: add include to fix build
This commit is contained in:
parent
00903f4820
commit
1d713761d9
@ -19,12 +19,13 @@ stdenv.mkDerivation rec {
|
|||||||
|
|
||||||
buildInputs = [ udev utillinux ];
|
buildInputs = [ udev utillinux ];
|
||||||
|
|
||||||
preBuild = ''
|
postPatch = ''
|
||||||
|
sed -i '1i#include <sys/stat.h>' ldm.c
|
||||||
substituteInPlace ldm.c \
|
substituteInPlace ldm.c \
|
||||||
--replace "/mnt/" "${mountPath}"
|
--replace "/mnt/" "${mountPath}"
|
||||||
'';
|
'';
|
||||||
|
|
||||||
buildPhase = "make ldm";
|
buildFlags = "ldm";
|
||||||
|
|
||||||
installPhase = ''
|
installPhase = ''
|
||||||
mkdir -p $out/bin
|
mkdir -p $out/bin
|
||||||
|
Loading…
Reference in New Issue
Block a user