diff --git a/pkgs/os-specific/linux/ldm/default.nix b/pkgs/os-specific/linux/ldm/default.nix index c5e94ed81e9a..a32d815ac2f0 100644 --- a/pkgs/os-specific/linux/ldm/default.nix +++ b/pkgs/os-specific/linux/ldm/default.nix @@ -19,9 +19,10 @@ stdenv.mkDerivation rec { buildInputs = [ udev utillinux ]; - preBuild = '' + postPatch = '' substituteInPlace ldm.c \ --replace "/mnt/" "${mountPath}" + sed '16i#include ' -i ldm.c ''; buildPhase = "make ldm";