mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-12-26 21:33:03 +03:00
ldm: fix build
There were two problems: - because buildPhase is specified directly, preBuild ends up never being executed; and - the source is missing a header, resulting in an undefined reference error
This commit is contained in:
parent
3273605aef
commit
f59998055b
@ -19,9 +19,10 @@ stdenv.mkDerivation rec {
|
|||||||
|
|
||||||
buildInputs = [ udev utillinux ];
|
buildInputs = [ udev utillinux ];
|
||||||
|
|
||||||
preBuild = ''
|
postPatch = ''
|
||||||
substituteInPlace ldm.c \
|
substituteInPlace ldm.c \
|
||||||
--replace "/mnt/" "${mountPath}"
|
--replace "/mnt/" "${mountPath}"
|
||||||
|
sed '16i#include <sys/stat.h>' -i ldm.c
|
||||||
'';
|
'';
|
||||||
|
|
||||||
buildPhase = "make ldm";
|
buildPhase = "make ldm";
|
||||||
|
Loading…
Reference in New Issue
Block a user