appstream-glib: migrate to finalAttrs

Assisted-by: Cursor Composer 2.5
This commit is contained in:
Guy Chronister
2026-06-07 10:08:29 -05:00
parent 191cceeb67
commit e8f82bee89
+7 -4
View File
@@ -24,10 +24,13 @@
pkg-config,
pngquant,
}:
stdenv.mkDerivation rec {
stdenv.mkDerivation (finalAttrs: {
pname = "appstream-glib";
version = "0.8.3";
strictDeps = true;
__structuredAttrs = true;
outputs = [
"out"
"dev"
@@ -39,7 +42,7 @@ stdenv.mkDerivation rec {
src = fetchFromGitHub {
owner = "hughsie";
repo = "appstream-glib";
tag = "appstream_glib_${lib.replaceStrings [ "." ] [ "_" ] version}";
tag = "appstream_glib_${lib.replaceStrings [ "." ] [ "_" ] finalAttrs.version}";
hash = "sha256-GjXrYV+EBduhG88LaxQWICKuUDJeeotcZgqgaG0/dqo=";
};
@@ -91,11 +94,11 @@ stdenv.mkDerivation rec {
'';
meta = {
changelog = "https://github.com/hughsie/appstream-glib/blob/${src.tag}/NEWS";
changelog = "https://github.com/hughsie/appstream-glib/blob/${finalAttrs.src.tag}/NEWS";
description = "Objects and helper methods to read and write AppStream metadata";
homepage = "https://people.freedesktop.org/~hughsient/appstream-glib/";
license = lib.licenses.lgpl2Plus;
platforms = lib.platforms.unix;
maintainers = [ ];
};
}
})