nixpkgs/pkgs/os-specific/linux/paxtest/default.nix

29 lines
641 B
Nix
Raw Normal View History

2016-01-23 15:36:08 +01:00
{ stdenv, fetchurl }:
stdenv.mkDerivation rec {
name = "paxtest-${version}";
version = "0.9.14";
src = fetchurl {
url = "https://www.grsecurity.net/~spender/${name}.tar.gz";
sha256 = "0j40h3x42k5mr5gc5np4wvr9cdf9szk2f46swf42zny8rlgxiskx";
};
buildPhase = ''
make $makeFlags RUNDIR=$out/bin/ linux
'';
installPhase = ''
mkdir -p $out/bin
find . -executable -exec cp {} $out/bin \;
'';
meta = with stdenv.lib; {
description = "Test various memory protection measures";
license = licenses.gpl2;
platforms = platforms.linux;
maintainer = [ maintainers.copumpkin ];
};
}