Use finalAttrs

This commit is contained in:
PopeRigby
2024-12-12 20:38:02 -08:00
parent 53ecadce60
commit 992670d217
2 changed files with 8 additions and 8 deletions
+4 -4
View File
@@ -6,14 +6,14 @@
stdenv,
}:
stdenv.mkDerivation rec {
stdenv.mkDerivation (finalAttrs: {
pname = "tacent";
version = "0.8.18";
src = fetchFromGitHub {
owner = "bluescan";
repo = "tacent";
tag = version;
tag = finalAttrs.version;
hash = "sha256-z8VuJS8OaVw5CeO/udvBEmcURKIy1oWVYUv6Ai8lTI8=";
};
@@ -29,9 +29,9 @@ stdenv.mkDerivation rec {
containers, image loading/saving, image quantization/filtering, command-line parsing, etc.
'';
homepage = "https://github.com/bluescan/tacent";
changelog = "https://github.com/bluescan/tacent/releases/tag/v${version}";
changelog = "https://github.com/bluescan/tacent/releases/tag/v${finalAttrs.version}";
license = lib.licenses.isc;
maintainers = with lib.maintainers; [ PopeRigby ];
platforms = lib.platforms.linux;
};
}
})
+4 -4
View File
@@ -12,14 +12,14 @@
zenity,
}:
stdenv.mkDerivation rec {
stdenv.mkDerivation (finalAttrs: {
pname = "tacentview";
version = "1.0.46";
src = fetchFromGitHub {
owner = "bluescan";
repo = "tacentview";
tag = "v${version}";
tag = "v${finalAttrs.version}";
hash = "sha256-d4A26p1hmkYEZ+h6kRbHHr4QmAc3PMe3qYdkeKIRGkU=";
};
@@ -61,10 +61,10 @@ stdenv.mkDerivation rec {
meta = {
description = "Image and texture viewer";
homepage = "https://github.com/bluescan/tacentview";
changelog = "https://github.com/bluescan/tacentview/releases/tag/v${version}";
changelog = "https://github.com/bluescan/tacentview/releases/tag/v${finalAttrs.version}";
license = lib.licenses.isc;
maintainers = with lib.maintainers; [ PopeRigby ];
mainProgram = "tacentview";
platforms = with lib.platforms; linux ++ windows;
};
}
})