Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{ stdenv 2, lib 3, fetchurl 4, buildPackages 5, docbook_xml_dtd_44 6, docbook_xsl 7, libcap 8, pkg-config 9, meson 10, ninja 11, xmlto 12, python3 13 14, gitUpdater 15}: 16 17stdenv.mkDerivation rec { 18 pname = "pax-utils"; 19 version = "1.3.7"; 20 21 src = fetchurl { 22 url = "mirror://gentoo/distfiles/${pname}-${version}.tar.xz"; 23 sha256 = "sha256-EINi0pZo0lz3sMrcY7FaTBz8DbxxrcFRszxf597Ok5o="; 24 }; 25 26 strictDeps = true; 27 28 depsBuildBuild = [ buildPackages.stdenv.cc ]; 29 nativeBuildInputs = [ docbook_xml_dtd_44 docbook_xsl meson ninja pkg-config xmlto ]; 30 buildInputs = [ libcap ]; 31 # Needed for lddtree 32 propagatedBuildInputs = [ (python3.withPackages (p: with p; [ pyelftools ])) ]; 33 34 passthru.updateScript = gitUpdater { 35 url = "https://anongit.gentoo.org/git/proj/pax-utils.git"; 36 rev-prefix = "v"; 37 }; 38 39 meta = with lib; { 40 description = "ELF utils that can check files for security relevant properties"; 41 longDescription = '' 42 A suite of ELF tools to aid auditing systems. Contains 43 various ELF related utils for ELF32, ELF64 binaries useful 44 for displaying PaX and security info on a large groups of 45 binary files. 46 ''; 47 homepage = "https://wiki.gentoo.org/wiki/Hardened/PaX_Utilities"; 48 license = licenses.gpl2Only; 49 platforms = platforms.unix; 50 maintainers = with maintainers; [ thoughtpolice joachifm ]; 51 }; 52}