forked from mirrors/nixpkgs
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
This commit is contained in:
parent
54f5872f06
commit
1badc60338
|
@ -1,4 +1,4 @@
|
||||||
{ stdenv, fetchurl }:
|
{ stdenv, fetchurl, paxctl }:
|
||||||
|
|
||||||
stdenv.mkDerivation rec {
|
stdenv.mkDerivation rec {
|
||||||
name = "paxtest-${version}";
|
name = "paxtest-${version}";
|
||||||
|
@ -9,20 +9,16 @@ stdenv.mkDerivation rec {
|
||||||
sha256 = "0j40h3x42k5mr5gc5np4wvr9cdf9szk2f46swf42zny8rlgxiskx";
|
sha256 = "0j40h3x42k5mr5gc5np4wvr9cdf9szk2f46swf42zny8rlgxiskx";
|
||||||
};
|
};
|
||||||
|
|
||||||
buildPhase = ''
|
enableParallelBuilding = true;
|
||||||
make $makeFlags RUNDIR=$out/bin/ linux
|
|
||||||
'';
|
|
||||||
|
|
||||||
installPhase = ''
|
makefile = "Makefile.psm";
|
||||||
mkdir -p $out/bin
|
makeFlags = [ "PAXBIN=${paxctl}/bin/paxctl" "BINDIR=$(out)/bin" "RUNDIR=$(out)/lib/paxtest" ];
|
||||||
find . -executable -exec cp {} $out/bin \;
|
installFlags = ''DESTDIR=""'';
|
||||||
'';
|
|
||||||
|
|
||||||
meta = with stdenv.lib; {
|
meta = with stdenv.lib; {
|
||||||
description = "Test various memory protection measures";
|
description = "Test various memory protection measures";
|
||||||
license = licenses.gpl2;
|
license = licenses.gpl2;
|
||||||
platforms = platforms.linux;
|
platforms = platforms.linux;
|
||||||
maintainer = [ maintainers.copumpkin ];
|
maintainer = with maintainers; [ copumpkin joachifm ];
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue