diff options
author | John Ericson <John.Ericson@Obsidian.Systems> | 2018-08-06 19:18:02 -0400 |
---|---|---|
committer | John Ericson <John.Ericson@Obsidian.Systems> | 2018-09-26 11:26:14 -0400 |
commit | 115bc86e6c48f83d718ad03c2ad1380c6da4ed00 (patch) | |
tree | 1df7922b85b7bec6f028fd1ff306b32c48faf697 /pkgs/os-specific/linux/paxctl | |
parent | 607063f61be3b19a2da054776b360d9c5b03038a (diff) |
paxctl: Fix cross and Darwin builds
Diffstat (limited to 'pkgs/os-specific/linux/paxctl')
-rw-r--r-- | pkgs/os-specific/linux/paxctl/default.nix | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/pkgs/os-specific/linux/paxctl/default.nix b/pkgs/os-specific/linux/paxctl/default.nix index 270be695f03ad..8fdd2356c30dc 100644 --- a/pkgs/os-specific/linux/paxctl/default.nix +++ b/pkgs/os-specific/linux/paxctl/default.nix @@ -1,4 +1,4 @@ -{ fetchurl, stdenv }: +{ fetchurl, stdenv, elf-header }: stdenv.mkDerivation rec { name = "paxctl-${version}"; @@ -9,8 +9,12 @@ stdenv.mkDerivation rec { sha256 = "0biw882fp1lmgs6kpxznp1v6758r7dg9x8iv5a06k0b82bcdsc53"; }; + buildInputs = [ elf-header ]; + 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 = [ @@ -24,7 +28,7 @@ stdenv.mkDerivation rec { description = "A tool for controlling PaX flags on a per binary basis"; homepage = "https://pax.grsecurity.net"; license = licenses.gpl2; - platforms = platforms.linux; + platforms = platforms.all; maintainers = with maintainers; [ thoughtpolice ]; }; } |