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:
Anderson Torres 2023-08-26 09:54:22 -03:00
parent 9cb225afe6
commit be755b5c62

View file

@ -4,12 +4,12 @@
, removeReferencesTo
}:
stdenv.mkDerivation rec {
stdenv.mkDerivation (finalAttrs: {
pname = "pkgconf";
version = "2.0.2";
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=";
};
@ -40,7 +40,7 @@ stdenv.mkDerivation rec {
mv ${placeholder "dev"}/share ${placeholder "out"}
'';
meta = with lib; {
meta = {
homepage = "https://github.com/pkgconf/pkgconf";
description = "Package compiler and linker metadata toolkit";
longDescription = ''
@ -52,8 +52,10 @@ stdenv.mkDerivation rec {
functionality, to allow other tooling such as compilers and IDEs to
discover and use libraries configured by pkgconf.
'';
license = licenses.isc;
maintainers = with maintainers; [ zaninime AndersonTorres ];
platforms = platforms.all;
changelog = "https://github.com/pkgconf/pkgconf/blob/pkgconf-${finalAttrs.version}/NEWS";
license = lib.licenses.isc;
mainProgram = "pkgconf";
maintainers = with lib.maintainers; [ zaninime AndersonTorres ];
platforms = lib.platforms.all;
};
}
})