nixpkgs/pkgs/tools/filesystems/udftools/default.nix
Franz Pletz aff1f4ab94 Use general hardening flag toggle lists
The following parameters are now available:

  * hardeningDisable
    To disable specific hardening flags
  * hardeningEnable
    To enable specific hardening flags

Only the cc-wrapper supports this right now, but these may be reused by
other wrappers, builders or setup hooks.

cc-wrapper supports the following flags:

  * fortify
  * stackprotector
  * pie (disabled by default)
  * pic
  * strictoverflow
  * format
  * relro
  * bindnow
2016-03-05 18:55:26 +01:00

29 lines
769 B
Nix

{ stdenv, fetchurl, ncurses, readline }:
stdenv.mkDerivation rec {
name = "udftools-${version}";
version = "1.0.0b3";
src = fetchurl {
url = "mirror://sourceforge/linux-udf/udftools/${version}/${name}.tar.gz";
sha256 = "180414z7jblby64556i8p24rcaas937zwnyp1zg073jdin3rw1y5";
};
buildInputs = [ ncurses readline ];
patches = [ ./gcc5.patch ];
hardeningDisable = [ "fortify" ];
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
'';
meta = with stdenv.lib; {
description = "UDF tools";
maintainers = with maintainers; [ raskin ];
platforms = platforms.linux;
license = licenses.gpl2Plus;
};
}