2022-08-21 13:32:41 +00:00
|
|
|
{ stdenv
|
|
|
|
, lib
|
2023-10-09 19:29:22 +00:00
|
|
|
, fetchgit
|
2022-08-21 13:32:41 +00:00
|
|
|
, buildPackages
|
|
|
|
, docbook_xml_dtd_44
|
|
|
|
, docbook_xsl
|
2023-10-09 19:29:22 +00:00
|
|
|
, withLibcap ? stdenv.isLinux, libcap
|
2022-08-21 13:32:41 +00:00
|
|
|
, pkg-config
|
|
|
|
, meson
|
|
|
|
, ninja
|
|
|
|
, xmlto
|
2022-09-09 14:08:57 +00:00
|
|
|
, python3
|
2022-08-21 13:32:41 +00:00
|
|
|
|
|
|
|
, gitUpdater
|
|
|
|
}:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "pax-utils";
|
2023-02-02 18:25:31 +00:00
|
|
|
version = "1.3.7";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2023-10-09 19:29:22 +00:00
|
|
|
src = fetchgit {
|
|
|
|
url = "https://anongit.gentoo.org/git/proj/pax-utils.git";
|
|
|
|
rev = "v${version}";
|
|
|
|
hash = "sha256-WyNng+UtfRz1+Eu4gwXLxUvBAg+m3mdrc8GdEPYRKVE=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2021-12-06 16:07:01 +00:00
|
|
|
strictDeps = true;
|
|
|
|
|
2023-10-09 19:29:22 +00:00
|
|
|
mesonFlags = [
|
|
|
|
(lib.mesonEnable "use_libcap" withLibcap)
|
|
|
|
];
|
|
|
|
|
2022-08-21 13:32:41 +00:00
|
|
|
depsBuildBuild = [ buildPackages.stdenv.cc ];
|
|
|
|
nativeBuildInputs = [ docbook_xml_dtd_44 docbook_xsl meson ninja pkg-config xmlto ];
|
2023-10-09 19:29:22 +00:00
|
|
|
buildInputs = lib.optionals withLibcap [ libcap ];
|
2022-09-09 14:08:57 +00:00
|
|
|
# Needed for lddtree
|
|
|
|
propagatedBuildInputs = [ (python3.withPackages (p: with p; [ pyelftools ])) ];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2022-05-18 14:49:53 +00:00
|
|
|
passthru.updateScript = gitUpdater {
|
|
|
|
url = "https://anongit.gentoo.org/git/proj/pax-utils.git";
|
|
|
|
rev-prefix = "v";
|
|
|
|
};
|
|
|
|
|
2020-04-24 23:36:52 +00:00
|
|
|
meta = with lib; {
|
|
|
|
description = "ELF utils that can check files for security relevant properties";
|
|
|
|
longDescription = ''
|
|
|
|
A suite of ELF tools to aid auditing systems. Contains
|
|
|
|
various ELF related utils for ELF32, ELF64 binaries useful
|
|
|
|
for displaying PaX and security info on a large groups of
|
|
|
|
binary files.
|
|
|
|
'';
|
|
|
|
homepage = "https://wiki.gentoo.org/wiki/Hardened/PaX_Utilities";
|
2021-09-18 10:52:07 +00:00
|
|
|
license = licenses.gpl2Only;
|
2020-04-24 23:36:52 +00:00
|
|
|
platforms = platforms.unix;
|
|
|
|
maintainers = with maintainers; [ thoughtpolice joachifm ];
|
|
|
|
};
|
|
|
|
}
|