nixpkgs/pkgs/by-name/pa/pax-utils/package.nix
aleksana 571c71e6f7 treewide: migrate packages to pkgs/by-name, take 1
We are migrating packages that meet below requirements:

1. using `callPackage`
2. called path is a directory
3. overriding set is empty (`{ }`)
4. not containing path expressions other than relative path (to
makenixpkgs-vet happy)
5. not referenced by nix files outside of the directory, other
than`pkgs/top-level/all-packages.nix`
6. not referencing nix files outside of the directory
7. not referencing `default.nix` (since it's changed to `package.nix`)
8. `outPath` doesn't change after migration

The tool is here: https://github.com/Aleksanaa/by-name-migrate.
2024-11-09 20:04:51 +08:00

58 lines
1.5 KiB
Nix

{ stdenv
, lib
, fetchgit
, buildPackages
, docbook_xml_dtd_44
, docbook_xsl
, withLibcap ? stdenv.hostPlatform.isLinux, libcap
, pkg-config
, meson
, ninja
, xmlto
, python3
, gitUpdater
}:
stdenv.mkDerivation rec {
pname = "pax-utils";
version = "1.3.8";
src = fetchgit {
url = "https://anongit.gentoo.org/git/proj/pax-utils.git";
rev = "v${version}";
hash = "sha256-fOdiZcS1ZWGN8U5v65LzGIZJD6hCl5dbLMHDpSyms+8=";
};
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 = lib.optionals withLibcap [ libcap ];
# Needed for lddtree
propagatedBuildInputs = [ (python3.withPackages (p: with p; [ pyelftools ])) ];
passthru.updateScript = gitUpdater {
url = "https://anongit.gentoo.org/git/proj/pax-utils.git";
rev-prefix = "v";
};
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";
license = licenses.gpl2Only;
platforms = platforms.unix;
maintainers = with maintainers; [ thoughtpolice joachifm ];
};
}