termbox: use finalAttrs pattern

This commit is contained in:
Francesco Gazzetta 2024-02-19 16:25:45 +01:00
parent 09f21aebb9
commit 4ecdc0da1c

View file

@ -1,12 +1,12 @@
{ lib, stdenv, fetchFromGitHub }:
stdenv.mkDerivation rec {
stdenv.mkDerivation (finalAttrs: {
pname = "termbox";
version = "1.1.4";
src = fetchFromGitHub {
owner = "termbox";
repo = "termbox";
rev = "v${version}";
rev = "v${finalAttrs.version}";
sha256 = "075swv6ajx8m424dbmgbf6fs6nd5q004gjpvx48gkxmnf9spvykl";
};
@ -19,4 +19,4 @@ stdenv.mkDerivation rec {
downloadPage = "https://github.com/termbox/termbox/releases";
maintainers = with maintainers; [ fgaz ];
};
}
})