gummy: use finalAttrs.finalPackage

This commit is contained in:
Peder Bergebakken Sundt 2024-09-17 03:32:56 +02:00
parent 644c9ab3d6
commit eba30179f4

View File

@ -2,7 +2,6 @@
, stdenv
, fetchFromGitea
, testers
, gummy
, cmake
, libX11
, libXext
@ -17,7 +16,7 @@
, spdlog
}:
stdenv.mkDerivation rec {
stdenv.mkDerivation (finalAttrs: {
pname = "gummy";
version = "0.6.0";
@ -25,7 +24,7 @@ stdenv.mkDerivation rec {
domain = "codeberg.org";
owner = "fusco";
repo = "gummy";
rev = version;
rev = finalAttrs.version;
hash = "sha256-kATieFf+dEpcYgSEPoETacP7R+u2dOrg7rOhIkNQ1uE=";
};
@ -65,7 +64,7 @@ stdenv.mkDerivation rec {
ln -s $out/libexec/gummyd $out/bin/gummyd
'';
passthru.tests.version = testers.testVersion { package = gummy; };
passthru.tests.version = testers.testVersion { package = finalAttrs.finalPackage; };
meta = with lib; {
homepage = "https://codeberg.org/fusco/gummy";
@ -77,4 +76,4 @@ stdenv.mkDerivation rec {
license = licenses.gpl3Only;
maintainers = [ ];
};
}
})