diff options
author | Andrew Marshall <andrew@johnandrewmarshall.com> | 2023-07-23 23:58:24 -0400 |
---|---|---|
committer | Andrew Marshall <andrew@johnandrewmarshall.com> | 2023-07-24 00:02:01 -0400 |
commit | c441ee72492f37d56482db24534ccd8e208f5b3f (patch) | |
tree | 07ca7d7f9a901703e6c5fa936d0398e964de87ae /pkgs/os-specific/linux/pax-utils | |
parent | 4bb451da7d103a58a900ae0b4b9d66f0887c6dce (diff) |
pax-utils: Fix build on non-Linux by disabling libcap
libcap only supports Linux
Diffstat (limited to 'pkgs/os-specific/linux/pax-utils')
-rw-r--r-- | pkgs/os-specific/linux/pax-utils/default.nix | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/pkgs/os-specific/linux/pax-utils/default.nix b/pkgs/os-specific/linux/pax-utils/default.nix index 1c1edc5abce0c..1d27cf80e4dac 100644 --- a/pkgs/os-specific/linux/pax-utils/default.nix +++ b/pkgs/os-specific/linux/pax-utils/default.nix @@ -4,7 +4,7 @@ , buildPackages , docbook_xml_dtd_44 , docbook_xsl -, libcap +, withLibcap ? stdenv.isLinux, libcap , pkg-config , meson , ninja @@ -25,9 +25,13 @@ stdenv.mkDerivation rec { strictDeps = true; + mesonFlags = [ + (lib.mesonEnable "use_libcap" withLibcap) + ]; + depsBuildBuild = [ buildPackages.stdenv.cc ]; nativeBuildInputs = [ docbook_xml_dtd_44 docbook_xsl meson ninja pkg-config xmlto ]; - buildInputs = [ libcap ]; + buildInputs = lib.optionals withLibcap [ libcap ]; # Needed for lddtree propagatedBuildInputs = [ (python3.withPackages (p: with p; [ pyelftools ])) ]; |