at v206 30 lines 702 B view raw
1{ fetchurl, stdenv }: 2 3stdenv.mkDerivation rec { 4 name = "paxctl-${version}"; 5 version = "0.9"; 6 7 src = fetchurl { 8 url = "http://pax.grsecurity.net/${name}.tar.gz"; 9 sha256 = "0biw882fp1lmgs6kpxznp1v6758r7dg9x8iv5a06k0b82bcdsc53"; 10 }; 11 12 preBuild = '' 13 sed "s|--owner 0 --group 0||g" -i Makefile 14 ''; 15 16 makeFlags = [ 17 "DESTDIR=$(out)" 18 "MANDIR=share/man/man1" 19 ]; 20 21 setupHook = ./setup-hook.sh; 22 23 meta = with stdenv.lib; { 24 description = "A tool for controlling PaX flags on a per binary basis"; 25 homepage = "https://pax.grsecurity.net"; 26 license = licenses.gpl2; 27 platforms = platforms.linux; 28 maintainers = with maintainers; [ thoughtpolice ]; 29 }; 30}