termdown: use finalAttrs

This commit is contained in:
Robert Schütz
2026-05-13 10:34:22 -07:00
parent 26d4beff0b
commit ce2a6ef3b2
+4 -4
View File
@@ -4,7 +4,7 @@
python3Packages,
}:
python3Packages.buildPythonApplication rec {
python3Packages.buildPythonApplication (finalAttrs: {
pname = "termdown";
version = "2.0.0";
pyproject = true;
@@ -12,7 +12,7 @@ python3Packages.buildPythonApplication rec {
src = fetchFromGitHub {
owner = "trehn";
repo = "termdown";
tag = version;
tag = finalAttrs.version;
hash = "sha256-G2YOAC+b++oQUicZcY28qVDy2XqW2SuzhXcVqeSQkh8=";
};
@@ -27,11 +27,11 @@ python3Packages.buildPythonApplication rec {
];
meta = {
changelog = "https://github.com/trehn/termdown/blob/${src.tag}/CHANGELOG.md";
changelog = "https://github.com/trehn/termdown/blob/${finalAttrs.src.tag}/CHANGELOG.md";
description = "Starts a countdown to or from TIMESPEC";
mainProgram = "termdown";
longDescription = "Countdown timer and stopwatch in your terminal";
homepage = "https://github.com/trehn/termdown";
license = lib.licenses.gpl3;
};
}
})