diff options
author | Robin Gloster <mail@glob.in> | 2016-03-28 15:16:29 +0000 |
---|---|---|
committer | Robin Gloster <mail@glob.in> | 2016-03-28 15:16:29 +0000 |
commit | f60c9df0ba66767dfa64bf2fb95eb6776cafa2c3 (patch) | |
tree | 0f17999d3a5444f16f09e0c1d7f3075e0224e731 /pkgs/tools/filesystems/udftools | |
parent | 3f45f0948d6fe158bed063adb66850ded0ba4861 (diff) | |
parent | c61445357e2a92470bee43a71a10baef1a3196e4 (diff) |
Merge remote-tracking branch 'upstream/master' into hardened-stdenv
Diffstat (limited to 'pkgs/tools/filesystems/udftools')
-rw-r--r-- | pkgs/tools/filesystems/udftools/default.nix | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/pkgs/tools/filesystems/udftools/default.nix b/pkgs/tools/filesystems/udftools/default.nix index 5613bac9b1a59..75e37f77949d2 100644 --- a/pkgs/tools/filesystems/udftools/default.nix +++ b/pkgs/tools/filesystems/udftools/default.nix @@ -14,9 +14,15 @@ stdenv.mkDerivation rec { hardeningDisable = [ "fortify" ]; + NIX_CFLAGS_COMPILE = "-std=gnu90"; + preConfigure = '' sed -e '1i#include <limits.h>' -i cdrwtool/cdrwtool.c -i pktsetup/pktsetup.c sed -e 's@[(]char[*][)]spm [+]=@spm = ((char*) spm) + @' -i wrudf/wrudf.c + sed -e '27i#include <string.h>' -i include/udf_endian.h + sed -e '38i#include <string.h>' -i wrudf/wrudf-cdrw.c + sed -e '12i#include <string.h>' -i wrudf/wrudf-cdr.c + sed -e '37i#include <stdlib.h>' -i wrudf/ide-pc.c ''; meta = with stdenv.lib; { |