summary refs log tree commit diff
path: root/pkgs/os-specific/linux/ldm
diff options
context:
space:
mode:
authorRobin Gloster <mail@glob.in>2016-03-28 15:16:29 +0000
committerRobin Gloster <mail@glob.in>2016-03-28 15:16:29 +0000
commitf60c9df0ba66767dfa64bf2fb95eb6776cafa2c3 (patch)
tree0f17999d3a5444f16f09e0c1d7f3075e0224e731 /pkgs/os-specific/linux/ldm
parent3f45f0948d6fe158bed063adb66850ded0ba4861 (diff)
parentc61445357e2a92470bee43a71a10baef1a3196e4 (diff)
downloadnixpkgs-f60c9df0ba66767dfa64bf2fb95eb6776cafa2c3.tar
nixpkgs-f60c9df0ba66767dfa64bf2fb95eb6776cafa2c3.tar.gz
nixpkgs-f60c9df0ba66767dfa64bf2fb95eb6776cafa2c3.tar.bz2
nixpkgs-f60c9df0ba66767dfa64bf2fb95eb6776cafa2c3.tar.lz
nixpkgs-f60c9df0ba66767dfa64bf2fb95eb6776cafa2c3.tar.xz
nixpkgs-f60c9df0ba66767dfa64bf2fb95eb6776cafa2c3.tar.zst
nixpkgs-f60c9df0ba66767dfa64bf2fb95eb6776cafa2c3.zip
Merge remote-tracking branch 'upstream/master' into hardened-stdenv
Diffstat (limited to 'pkgs/os-specific/linux/ldm')
-rw-r--r--pkgs/os-specific/linux/ldm/default.nix2
1 files changed, 1 insertions, 1 deletions
diff --git a/pkgs/os-specific/linux/ldm/default.nix b/pkgs/os-specific/linux/ldm/default.nix
index 5332fc0bf3d..5e9b2c869ef 100644
--- a/pkgs/os-specific/linux/ldm/default.nix
+++ b/pkgs/os-specific/linux/ldm/default.nix
@@ -20,9 +20,9 @@ stdenv.mkDerivation rec {
   buildInputs = [ udev utillinux ];
 
   postPatch = ''
-    sed -i '1i#include <sys/stat.h>' ldm.c
     substituteInPlace ldm.c \
       --replace "/mnt/" "${mountPath}"
+    sed '16i#include <sys/stat.h>' -i ldm.c
   '';
 
   buildFlags = "ldm";