nixpkgs/pkgs/tools/security/fprint_demo/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
782 B
Nix

{ stdenv, fetchgit, autoreconfHook, pkgconfig, libfprint, gtk2 }:
stdenv.mkDerivation rec {
name = "fprint_demo-2008-03-03";
src = fetchgit {
url = "git://github.com/dsd/fprint_demo";
rev = "5d86c3f778bf97a29b73bdafbebd1970e560bfb0";
sha256 = "fe5bbf8d062fedd6fa796e50c5bd95fef49580eb0a890f78d6f55bd51cc94234";
};
buildInputs = [ libfprint gtk2 ];
nativeBuildInputs = [ pkgconfig autoreconfHook ];
hardeningDisable = [ "format" ];
meta = with stdenv.lib; {
homepage = "http://www.freedesktop.org/wiki/Software/fprint/fprint_demo/";
description = "A simple GTK+ application to demonstrate and test libfprint's capabilities";
license = licenses.gpl2;
platforms = platforms.linux;
maintainers = with maintainers; [ abbradar ];
};
}