Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{ lib, stdenv, fetchurl, paxctl }: 2 3stdenv.mkDerivation rec { 4 pname = "paxtest"; 5 version = "0.9.15"; 6 7 src = fetchurl { 8 url = "https://www.grsecurity.net/~spender/${pname}-${version}.tar.gz"; 9 sha256 = "0zv6vlaszlik98gj9200sv0irvfzrvjn46rnr2v2m37x66288lym"; 10 }; 11 12 enableParallelBuilding = true; 13 14 makefile = "Makefile.psm"; 15 makeFlags = [ "PAXBIN=${paxctl}/bin/paxctl" "BINDIR=$(out)/bin" "RUNDIR=$(out)/lib/paxtest" ]; 16 installFlags = [ "DESTDIR=\"\"" ]; 17 18 meta = with lib; { 19 description = "Test various memory protection measures"; 20 license = licenses.gpl2; 21 platforms = platforms.linux; 22 maintainers = with maintainers; [ copumpkin joachifm ]; 23 }; 24}