Merge pull request #245135 from amarshall/pax-utils-non-linux

This commit is contained in:
Artturi 2023-09-07 20:00:41 +03:00 committed by GitHub
commit d5597ff02e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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 ])) ];