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, nix-update-script,
}: }:
buildGoModule rec { buildGoModule (finalAttrs: {
pname = "aerc"; pname = "aerc";
version = "0.20.1"; version = "0.20.1";
src = fetchFromSourcehut { src = fetchFromSourcehut {
owner = "~rjarry"; owner = "~rjarry";
repo = "aerc"; repo = "aerc";
rev = version; rev = finalAttrs.version;
hash = "sha256-IBTM3Ersm8yUCgiBLX8ozuvMEbfmY6eW5xvJD20UgRA="; hash = "sha256-IBTM3Ersm8yUCgiBLX8ozuvMEbfmY6eW5xvJD20UgRA=";
}; };
@ -91,7 +91,7 @@ buildGoModule rec {
meta = { meta = {
description = "Email client for your terminal"; description = "Email client for your terminal";
homepage = "https://aerc-mail.org/"; 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; [ maintainers = with lib.maintainers; [
defelo defelo
sikmir sikmir
@ -100,4 +100,4 @@ buildGoModule rec {
license = lib.licenses.mit; license = lib.licenses.mit;
platforms = lib.platforms.unix; platforms = lib.platforms.unix;
}; };
} })