mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-12-25 20:34:52 +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 ];
|
||||
|
||||
preBuild = ''
|
||||
postPatch = ''
|
||||
substituteInPlace ldm.c \
|
||||
--replace "/mnt/" "${mountPath}"
|
||||
sed '16i#include <sys/stat.h>' -i ldm.c
|
||||
'';
|
||||
|
||||
buildPhase = "make ldm";
|
||||
|
Loading…
Reference in New Issue
Block a user