mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-07-06 17:13:24 -05:00
changelog: https://cgit.git.savannah.nongnu.org/cgit/attr.git/tree/doc/CHANGES?h=v2.6.0
advisory: https://lists.nongnu.org/archive/html/acl-devel/2026-06/msg00000.html
Fixes: CVE-2026-54371
(cherry picked from commit eb58007af7)
50 lines
1.1 KiB
Nix
50 lines
1.1 KiB
Nix
{
|
|
lib,
|
|
stdenv,
|
|
fetchurl,
|
|
gettext,
|
|
}:
|
|
|
|
# Note: this package is used for bootstrapping fetchurl, and thus
|
|
# cannot use fetchpatch! All mutable patches (generated by GitHub or
|
|
# cgit) that are needed here should be included directly in Nixpkgs as
|
|
# files.
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "attr";
|
|
version = "2.6.0";
|
|
|
|
src = fetchurl {
|
|
url = "mirror://savannah/attr/attr-${version}.tar.gz";
|
|
hash = "sha256-1C+jdFExgLtIyxGkZpb0iCQOUST/HmrYiwq/9waYVhI=";
|
|
};
|
|
|
|
outputs = [
|
|
"bin"
|
|
"dev"
|
|
"out"
|
|
"man"
|
|
"doc"
|
|
];
|
|
|
|
nativeBuildInputs = [ gettext ];
|
|
|
|
postPatch = ''
|
|
for script in install-sh include/install-sh; do
|
|
patchShebangs $script
|
|
done
|
|
'';
|
|
|
|
# See nixos/tests/attr.nix
|
|
doCheck = false;
|
|
|
|
meta = {
|
|
homepage = "https://savannah.nongnu.org/projects/attr/";
|
|
description = "Library and tools for manipulating extended attributes";
|
|
platforms = lib.platforms.linux;
|
|
badPlatforms = lib.platforms.microblaze;
|
|
license = lib.licenses.gpl2Plus;
|
|
teams = [ lib.teams.security-review ];
|
|
identifiers.cpeParts = lib.meta.cpeFullVersionWithVendor "attr_project" version;
|
|
};
|
|
}
|