3
0
Fork 0
forked from mirrors/nixpkgs

ldm: add include to fix build

This commit is contained in:
Robin Gloster 2016-02-22 00:21:26 +00:00
parent 00903f4820
commit 1d713761d9

View file

@ -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