libresprite: use finalAttrs pattern

This commit is contained in:
Francesco Gazzetta 2024-02-19 15:50:14 +01:00
parent 8591c5902a
commit 0fad8ebe94

View file

@ -27,14 +27,14 @@
, nixosTests , nixosTests
}: }:
stdenv.mkDerivation rec { stdenv.mkDerivation (finalAttrs: {
pname = "libresprite"; pname = "libresprite";
version = "1.0"; version = "1.0";
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "LibreSprite"; owner = "LibreSprite";
repo = "LibreSprite"; repo = "LibreSprite";
rev = "v${version}"; rev = "v${finalAttrs.version}";
fetchSubmodules = true; fetchSubmodules = true;
sha256 = "sha256-d8GmVHYomDb74iSeEhJEVTHvbiVXggXg7xSqIKCUSzY="; sha256 = "sha256-d8GmVHYomDb74iSeEhJEVTHvbiVXggXg7xSqIKCUSzY=";
}; };
@ -118,4 +118,4 @@ stdenv.mkDerivation rec {
# https://github.com/LibreSprite/LibreSprite/issues/308 # https://github.com/LibreSprite/LibreSprite/issues/308
broken = stdenv.isDarwin; broken = stdenv.isDarwin;
}; };
} })