nixpkgs/pkgs/os-specific/linux/paxctl/default.nix
Silvan Mosberger 57bccb3cb8 treewide: http -> https sources (#42676)
* treewide: http -> https sources

This updates the source urls of all top-level packages from http to
https where possible.

* buildtorrent: fix url and tab -> spaces
2018-06-28 20:43:35 +02:00

31 lines
703 B
Nix

{ fetchurl, stdenv }:
stdenv.mkDerivation rec {
name = "paxctl-${version}";
version = "0.9";
src = fetchurl {
url = "https://pax.grsecurity.net/${name}.tar.gz";
sha256 = "0biw882fp1lmgs6kpxznp1v6758r7dg9x8iv5a06k0b82bcdsc53";
};
preBuild = ''
sed "s|--owner 0 --group 0||g" -i Makefile
'';
makeFlags = [
"DESTDIR=$(out)"
"MANDIR=share/man/man1"
];
setupHook = ./setup-hook.sh;
meta = with stdenv.lib; {
description = "A tool for controlling PaX flags on a per binary basis";
homepage = "https://pax.grsecurity.net";
license = licenses.gpl2;
platforms = platforms.linux;
maintainers = with maintainers; [ thoughtpolice ];
};
}