duktape: use finalAttrs pattern

This commit is contained in:
Francesco Gazzetta 2024-02-19 16:20:48 +01:00
parent 462e2129e2
commit 824d4ac8ca

View File

@ -1,10 +1,10 @@
{ lib, stdenv, fetchurl, validatePkgConfig }:
stdenv.mkDerivation rec {
stdenv.mkDerivation (finalAttrs: {
pname = "duktape";
version = "2.7.0";
src = fetchurl {
url = "http://duktape.org/duktape-${version}.tar.xz";
url = "http://duktape.org/duktape-${finalAttrs.version}.tar.xz";
sha256 = "sha256-kPjS+otVZ8aJmDDd7ywD88J5YLEayiIvoXqnrGE8KJA=";
};
@ -38,4 +38,4 @@ stdenv.mkDerivation rec {
mainProgram = "duk";
platforms = platforms.all;
};
}
})