@@ -1,4 +1,4 @@
1−{ stdenv, fetchurl }:
1+{ stdenv, fetchurl, paxctl }:
22
33stdenv.mkDerivation rec {
44 name = "paxtest-${version}";
@@ -9,20 +9,16 @@ stdenv.mkDerivation rec {
99 sha256 = "0j40h3x42k5mr5gc5np4wvr9cdf9szk2f46swf42zny8rlgxiskx";
1010 };
1111
12− buildPhase = ''
13− make $makeFlags RUNDIR=$out/bin/ linux
14− '';
12+ enableParallelBuilding = true;
1513
16− installPhase = ''
17− mkdir -p $out/bin
18− find . -executable -exec cp {} $out/bin \;
19− '';
14+ makefile = "Makefile.psm";
15+ makeFlags = [ "PAXBIN=${paxctl}/bin/paxctl" "BINDIR=$(out)/bin" "RUNDIR=$(out)/lib/paxtest" ];
16+ installFlags = ''DESTDIR=""'';
2017
2118 meta = with stdenv.lib; {
2219 description = "Test various memory protection measures";
2320 license = licenses.gpl2;
2421 platforms = platforms.linux;
25− maintainer = [ maintainers.copumpkin ];
22+ maintainer = with maintainers; [ copumpkin joachifm ];
2623 };
2724}
28−