paxctl: Fix cross and Darwin builds
This commit is contained in:
parent
607063f61b
commit
115bc86e6c
@ -1,4 +1,4 @@
|
|||||||
{ fetchurl, stdenv }:
|
{ fetchurl, stdenv, elf-header }:
|
||||||
|
|
||||||
stdenv.mkDerivation rec {
|
stdenv.mkDerivation rec {
|
||||||
name = "paxctl-${version}";
|
name = "paxctl-${version}";
|
||||||
@ -9,8 +9,12 @@ stdenv.mkDerivation rec {
|
|||||||
sha256 = "0biw882fp1lmgs6kpxznp1v6758r7dg9x8iv5a06k0b82bcdsc53";
|
sha256 = "0biw882fp1lmgs6kpxznp1v6758r7dg9x8iv5a06k0b82bcdsc53";
|
||||||
};
|
};
|
||||||
|
|
||||||
|
buildInputs = [ elf-header ];
|
||||||
|
|
||||||
preBuild = ''
|
preBuild = ''
|
||||||
sed "s|--owner 0 --group 0||g" -i Makefile
|
sed -i Makefile \
|
||||||
|
-e 's|--owner 0 --group 0||g' \
|
||||||
|
-e '/CC:=gcc/d'
|
||||||
'';
|
'';
|
||||||
|
|
||||||
makeFlags = [
|
makeFlags = [
|
||||||
@ -24,7 +28,7 @@ stdenv.mkDerivation rec {
|
|||||||
description = "A tool for controlling PaX flags on a per binary basis";
|
description = "A tool for controlling PaX flags on a per binary basis";
|
||||||
homepage = "https://pax.grsecurity.net";
|
homepage = "https://pax.grsecurity.net";
|
||||||
license = licenses.gpl2;
|
license = licenses.gpl2;
|
||||||
platforms = platforms.linux;
|
platforms = platforms.all;
|
||||||
maintainers = with maintainers; [ thoughtpolice ];
|
maintainers = with maintainers; [ thoughtpolice ];
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user