1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-12-10 22:57:15 +00:00
nixpkgs/pkgs/tools/misc/sutils/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

23 lines
589 B
Nix

{ stdenv, fetchurl }:
stdenv.mkDerivation rec {
name = "sutils-0.1";
src = fetchurl {
url = "https://github.com/baskerville/sutils/archive/0.1.tar.gz";
sha256 = "0xqk42vl82chy458d64fj68a4md4bxaip8n3xw9skxz0a1sgvks8";
};
hardeningDisable = [ "format" ];
prePatch = ''sed -i "s@/usr/local@$out@" Makefile'';
meta = {
description = "Small command-line utilities";
homepage = https://github.com/baskerville/sutils;
maintainers = [ stdenv.lib.maintainers.meisternu ];
license = "Custom";
platforms = stdenv.lib.platforms.linux;
};
}