forked from mirrors/nixpkgs
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 ];
|
||||
|
||||
preBuild = ''
|
||||
postPatch = ''
|
||||
sed -i '1i#include <sys/stat.h>' ldm.c
|
||||
substituteInPlace ldm.c \
|
||||
--replace "/mnt/" "${mountPath}"
|
||||
'';
|
||||
|
||||
buildPhase = "make ldm";
|
||||
buildFlags = "ldm";
|
||||
|
||||
installPhase = ''
|
||||
mkdir -p $out/bin
|
||||
|
|
Loading…
Reference in a new issue