mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-22 23:13:19 +00:00
duktape: use finalAttrs pattern
This commit is contained in:
parent
462e2129e2
commit
824d4ac8ca
@ -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;
|
||||
};
|
||||
}
|
||||
})
|
||||
|
Loading…
Reference in New Issue
Block a user