mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-08-25 17:55:21 +00:00
attr: enable strictDeps, enable structuredAttrs, use finalAttrs (#548763)
This commit is contained in:
@@ -10,12 +10,12 @@
|
||||
# cgit) that are needed here should be included directly in Nixpkgs as
|
||||
# files.
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
stdenv.mkDerivation (finalAttrs: {
|
||||
pname = "attr";
|
||||
version = "2.6.0";
|
||||
|
||||
src = fetchurl {
|
||||
url = "mirror://savannah/attr/attr-${version}.tar.gz";
|
||||
url = "mirror://savannah/attr/attr-${finalAttrs.version}.tar.gz";
|
||||
hash = "sha256-1C+jdFExgLtIyxGkZpb0iCQOUST/HmrYiwq/9waYVhI=";
|
||||
};
|
||||
|
||||
@@ -29,6 +29,8 @@ stdenv.mkDerivation rec {
|
||||
|
||||
nativeBuildInputs = [ gettext ];
|
||||
|
||||
strictDeps = true;
|
||||
|
||||
postPatch = ''
|
||||
for script in install-sh include/install-sh; do
|
||||
patchShebangs $script
|
||||
@@ -38,6 +40,8 @@ stdenv.mkDerivation rec {
|
||||
# See nixos/tests/attr.nix
|
||||
doCheck = false;
|
||||
|
||||
__structuredAttrs = true;
|
||||
|
||||
meta = {
|
||||
homepage = "https://savannah.nongnu.org/projects/attr/";
|
||||
description = "Library and tools for manipulating extended attributes";
|
||||
@@ -45,6 +49,6 @@ stdenv.mkDerivation rec {
|
||||
badPlatforms = lib.platforms.microblaze;
|
||||
license = lib.licenses.gpl2Plus;
|
||||
teams = [ lib.teams.security-review ];
|
||||
identifiers.cpeParts = lib.meta.cpeFullVersionWithVendor "attr_project" version;
|
||||
identifiers.cpeParts = lib.meta.cpeFullVersionWithVendor "attr_project" finalAttrs.version;
|
||||
};
|
||||
}
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user