2022-08-21 13:32:41 +00:00
|
|
|
{ stdenv
|
|
|
|
, lib
|
|
|
|
, fetchurl
|
|
|
|
, buildPackages
|
|
|
|
, docbook_xml_dtd_44
|
|
|
|
, docbook_xsl
|
|
|
|
, libcap
|
|
|
|
, pkg-config
|
|
|
|
, meson
|
|
|
|
, ninja
|
|
|
|
, xmlto
|
|
|
|
|
|
|
|
, gitUpdater
|
|
|
|
}:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "pax-utils";
|
2022-08-21 13:32:41 +00:00
|
|
|
version = "1.3.5";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchurl {
|
2021-12-06 16:07:01 +00:00
|
|
|
url = "mirror://gentoo/distfiles/${pname}-${version}.tar.xz";
|
2022-08-21 13:32:41 +00:00
|
|
|
sha256 = "sha256-8KWwPfIwiqLdeq9TuewLK0hFW4YSnkd6FkPeYpBKuHQ=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2021-12-06 16:07:01 +00:00
|
|
|
strictDeps = true;
|
|
|
|
|
2022-08-21 13:32:41 +00:00
|
|
|
depsBuildBuild = [ buildPackages.stdenv.cc ];
|
|
|
|
nativeBuildInputs = [ docbook_xml_dtd_44 docbook_xsl meson ninja pkg-config xmlto ];
|
|
|
|
buildInputs = [ libcap ];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2022-05-18 14:49:53 +00:00
|
|
|
passthru.updateScript = gitUpdater {
|
|
|
|
inherit pname version;
|
|
|
|
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 ];
|
|
|
|
};
|
|
|
|
}
|