7 , withLibcap ? stdenv.hostPlatform.isLinux, libcap
17 stdenv.mkDerivation rec {
22 url = "https://anongit.gentoo.org/git/proj/pax-utils.git";
24 hash = "sha256-fOdiZcS1ZWGN8U5v65LzGIZJD6hCl5dbLMHDpSyms+8=";
30 (lib.mesonEnable "use_libcap" withLibcap)
33 depsBuildBuild = [ buildPackages.stdenv.cc ];
34 nativeBuildInputs = [ docbook_xml_dtd_44 docbook_xsl meson ninja pkg-config xmlto ];
35 buildInputs = lib.optionals withLibcap [ libcap ];
37 propagatedBuildInputs = [ (python3.withPackages (p: with p; [ pyelftools ])) ];
39 passthru.updateScript = gitUpdater {
40 url = "https://anongit.gentoo.org/git/proj/pax-utils.git";
45 description = "ELF utils that can check files for security relevant properties";
47 A suite of ELF tools to aid auditing systems. Contains
48 various ELF related utils for ELF32, ELF64 binaries useful
49 for displaying PaX and security info on a large groups of
52 homepage = "https://wiki.gentoo.org/wiki/Hardened/PaX_Utilities";
53 license = licenses.gpl2Only;
54 platforms = platforms.unix;
55 maintainers = with maintainers; [ thoughtpolice joachifm ];