libpkgconf: refactor
- Use rec-less, overlay-style overridable recursive attributes (in effect since https://github.com/NixOS/nixpkgs/pull/119942) - Include meta.changelog and meta.mainProgram
This commit is contained in:
parent
9cb225afe6
commit
be755b5c62
|
@ -4,12 +4,12 @@
|
||||||
, removeReferencesTo
|
, removeReferencesTo
|
||||||
}:
|
}:
|
||||||
|
|
||||||
stdenv.mkDerivation rec {
|
stdenv.mkDerivation (finalAttrs: {
|
||||||
pname = "pkgconf";
|
pname = "pkgconf";
|
||||||
version = "2.0.2";
|
version = "2.0.2";
|
||||||
|
|
||||||
src = fetchurl {
|
src = fetchurl {
|
||||||
url = "https://distfiles.dereferenced.org/${pname}/${pname}-${version}.tar.xz";
|
url = "https://distfiles.dereferenced.org/pkgconf/pkgconf-${finalAttrs.version}.tar.xz";
|
||||||
hash = "sha256-6lol748lHrU3fsDiHHX7YYlEM8+9vwslWboz5MJmRAE=";
|
hash = "sha256-6lol748lHrU3fsDiHHX7YYlEM8+9vwslWboz5MJmRAE=";
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -40,7 +40,7 @@ stdenv.mkDerivation rec {
|
||||||
mv ${placeholder "dev"}/share ${placeholder "out"}
|
mv ${placeholder "dev"}/share ${placeholder "out"}
|
||||||
'';
|
'';
|
||||||
|
|
||||||
meta = with lib; {
|
meta = {
|
||||||
homepage = "https://github.com/pkgconf/pkgconf";
|
homepage = "https://github.com/pkgconf/pkgconf";
|
||||||
description = "Package compiler and linker metadata toolkit";
|
description = "Package compiler and linker metadata toolkit";
|
||||||
longDescription = ''
|
longDescription = ''
|
||||||
|
@ -52,8 +52,10 @@ stdenv.mkDerivation rec {
|
||||||
functionality, to allow other tooling such as compilers and IDEs to
|
functionality, to allow other tooling such as compilers and IDEs to
|
||||||
discover and use libraries configured by pkgconf.
|
discover and use libraries configured by pkgconf.
|
||||||
'';
|
'';
|
||||||
license = licenses.isc;
|
changelog = "https://github.com/pkgconf/pkgconf/blob/pkgconf-${finalAttrs.version}/NEWS";
|
||||||
maintainers = with maintainers; [ zaninime AndersonTorres ];
|
license = lib.licenses.isc;
|
||||||
platforms = platforms.all;
|
mainProgram = "pkgconf";
|
||||||
|
maintainers = with lib.maintainers; [ zaninime AndersonTorres ];
|
||||||
|
platforms = lib.platforms.all;
|
||||||
};
|
};
|
||||||
}
|
})
|
||||||
|
|
Loading…
Reference in a new issue