nixpkgs/pkgs/tools/graphics/editres/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

25 lines
710 B
Nix

{ stdenv, fetchurl, pkgconfig, libXt, libXaw, libXres, utilmacros }:
stdenv.mkDerivation rec {
name = "editres-1.0.6";
src = fetchurl {
url = "mirror://xorg/individual/app/${name}.tar.gz";
sha256 = "06kv7dmw6pzlqc46dbh8k9xpb6sn4ihh0bcpxq0zpvw2lm66dx45";
};
buildInputs = [ pkgconfig libXt libXaw libXres utilmacros ];
configureFlags = "--with-appdefaultdir=$(out)/share/X11/app-defaults/editres";
hardeningDisable = [ "format" ];
meta = {
homepage = "http://cgit.freedesktop.org/xorg/app/editres/";
description = "a dynamic resource editor for X Toolkit applications";
platforms = stdenv.lib.platforms.linux;
maintainers = [ stdenv.lib.maintainers.simons ];
};
}