nixpkgs/pkgs/tools/system/gdmap/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

24 lines
665 B
Nix

{ stdenv, fetchurl, gtk, pkgconfig, libxml2, intltool, gettext }:
stdenv.mkDerivation rec {
name = "gdmap-0.8.1";
src = fetchurl {
url = "mirror://sourceforge/gdmap/${name}.tar.gz";
sha256 = "0nr8l88cg19zj585hczj8v73yh21k7j13xivhlzl8jdk0j0cj052";
};
buildInputs = [ gtk pkgconfig libxml2 intltool gettext ];
patches = [ ./get_sensitive.patch ./set_flags.patch ];
hardeningDisable = [ "format" ];
meta = with stdenv.lib; {
homepage = http://gdmap.sourceforge.net;
description = "Recursive rectangle map of disk usage";
license = licenses.gpl2;
platforms = platforms.all;
maintainers = [ maintainers.bjornfor ];
};
}