aerc: use finalAttrs pattern

This commit is contained in:
Defelo 2025-03-16 18:25:44 +01:00 committed by Masum Reza
parent 3567ac7304
commit 272717e36b

View file

@ -14,14 +14,14 @@
nix-update-script,
}:
buildGoModule rec {
buildGoModule (finalAttrs: {
pname = "aerc";
version = "0.20.1";
src = fetchFromSourcehut {
owner = "~rjarry";
repo = "aerc";
rev = version;
rev = finalAttrs.version;
hash = "sha256-IBTM3Ersm8yUCgiBLX8ozuvMEbfmY6eW5xvJD20UgRA=";
};
@ -91,7 +91,7 @@ buildGoModule rec {
meta = {
description = "Email client for your terminal";
homepage = "https://aerc-mail.org/";
changelog = "https://git.sr.ht/~rjarry/aerc/tree/${version}/item/CHANGELOG.md";
changelog = "https://git.sr.ht/~rjarry/aerc/tree/${finalAttrs.version}/item/CHANGELOG.md";
maintainers = with lib.maintainers; [
defelo
sikmir
@ -100,4 +100,4 @@ buildGoModule rec {
license = lib.licenses.mit;
platforms = lib.platforms.unix;
};
}
})