git.iko.soy/typeable/nixpkgs
on master help sign in
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

commit1badc6033853d115597639fb9f52032ec9a6dfd3 authorJoachim Fasting <joachifm@fastmail.fm> dateTue 24 May 2016, 16:08 (11 years ago) parent54f5872
1 file changed+6−10
pkgs/os-specific/linux/paxtest/default.nix+6−10
pkgs/os-specific/linux/paxtest/default.nix+6−10
@@ -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−