Silvan Mosberger 4f0dadbf38 treewide: format all inactive Nix files
After final improvements to the official formatter implementation,
this commit now performs the first treewide reformat of Nix files using it.
This is part of the implementation of RFC 166.

Only "inactive" files are reformatted, meaning only files that
aren't being touched by any PR with activity in the past 2 months.
This is to avoid conflicts for PRs that might soon be merged.
Later we can do a full treewide reformat to get the rest,
which should not cause as many conflicts.

A CI check has already been running for some time to ensure that new and
already-formatted files are formatted, so the files being reformatted here
should also stay formatted.

This commit was automatically created and can be verified using

    nix-build a08b3a4d19.tar.gz \
      --argstr baseRev b32a0943687d2a5094a6d92f25a4b6e16a76b5b7
    result/bin/apply-formatting $NIXPKGS_PATH
2024-12-10 20:26:33 +01:00

70 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
];
};
}