izrss: migrate to finalAttrs

This commit is contained in:
isabel 2025-03-23 21:22:02 +00:00
parent 89bf2a143a
commit 883f9fc6f6
No known key found for this signature in database
GPG key ID: 3E7C7A1B5DEDBB03

View file

@ -4,31 +4,28 @@
fetchFromGitHub,
...
}:
let
version = "0.2.0";
in
buildGoModule {
buildGoModule (finalAttrs: {
pname = "izrss";
inherit version;
version = "0.2.0";
src = fetchFromGitHub {
owner = "isabelroses";
repo = "izrss";
tag = "v${version}";
tag = "v${finalAttrs.version}";
hash = "sha256-t+RtdKrYI0MNGSR1ABvClKv+hUJ4Tpg7yKS2qbm7BKc=";
};
ldflags = [
"-s"
"-w"
"-X main.version=${version}"
"-X main.version=${finalAttrs.version}"
];
vendorHash = "sha256-2L/EUoPbz6AZqv84XPhiZhImOL4wyBOzx6Od4+nTJeY=";
meta = {
description = "RSS feed reader for the terminal written in Go";
changelog = "https://github.com/isabelroses/izrss/releases/v${version}";
changelog = "https://github.com/isabelroses/izrss/releases/v${finalAttrs.version}";
homepage = "https://github.com/isabelroses/izrss";
license = lib.licenses.gpl3Plus;
maintainers = with lib.maintainers; [
@ -37,4 +34,4 @@ buildGoModule {
];
mainProgram = "izrss";
};
}
})