paxtest: refactoring

- Use standard phase hooks
- Install test helpers into $out/lib/paxtest instead of dumping
them into PATH
- Set PAXBIN=paxctl so that the appropriate pax flags are set

+6 -10
+6 -10
pkgs/os-specific/linux/paxtest/default.nix
··· 1 - { stdenv, fetchurl }: 2 3 stdenv.mkDerivation rec { 4 name = "paxtest-${version}"; ··· 9 sha256 = "0j40h3x42k5mr5gc5np4wvr9cdf9szk2f46swf42zny8rlgxiskx"; 10 }; 11 12 - buildPhase = '' 13 - make $makeFlags RUNDIR=$out/bin/ linux 14 - ''; 15 16 - installPhase = '' 17 - mkdir -p $out/bin 18 - find . -executable -exec cp {} $out/bin \; 19 - ''; 20 21 meta = with stdenv.lib; { 22 description = "Test various memory protection measures"; 23 license = licenses.gpl2; 24 platforms = platforms.linux; 25 - maintainer = [ maintainers.copumpkin ]; 26 }; 27 } 28 -
··· 1 + { stdenv, fetchurl, paxctl }: 2 3 stdenv.mkDerivation rec { 4 name = "paxtest-${version}"; ··· 9 sha256 = "0j40h3x42k5mr5gc5np4wvr9cdf9szk2f46swf42zny8rlgxiskx"; 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 stdenv.lib; { 19 description = "Test various memory protection measures"; 20 license = licenses.gpl2; 21 platforms = platforms.linux; 22 + maintainer = with maintainers; [ copumpkin joachifm ]; 23 }; 24 }