diff options
author | Francesco Gazzetta <francygazz@gmail.com> | 2018-01-26 11:26:52 +0000 |
---|---|---|
committer | Francesco Gazzetta <francygazz@gmail.com> | 2018-01-26 15:33:38 +0000 |
commit | fd7acb9218003df7cb0d8b4c1376e638aa7f09cc (patch) | |
tree | 97ce15071ee5b87fb1b4b7317c8f2875850f6cf3 /pkgs/development/interpreters | |
parent | 92e1c17cd32cacbe4be934bad7b284a18d730109 (diff) | |
download | nixlib-fd7acb9218003df7cb0d8b4c1376e638aa7f09cc.tar nixlib-fd7acb9218003df7cb0d8b4c1376e638aa7f09cc.tar.gz nixlib-fd7acb9218003df7cb0d8b4c1376e638aa7f09cc.tar.bz2 nixlib-fd7acb9218003df7cb0d8b4c1376e638aa7f09cc.tar.lz nixlib-fd7acb9218003df7cb0d8b4c1376e638aa7f09cc.tar.xz nixlib-fd7acb9218003df7cb0d8b4c1376e638aa7f09cc.tar.zst nixlib-fd7acb9218003df7cb0d8b4c1376e638aa7f09cc.zip |
duktape: init at 2.2.0
Diffstat (limited to 'pkgs/development/interpreters')
-rw-r--r-- | pkgs/development/interpreters/duktape/default.nix | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/pkgs/development/interpreters/duktape/default.nix b/pkgs/development/interpreters/duktape/default.nix new file mode 100644 index 000000000000..c54a9d204cba --- /dev/null +++ b/pkgs/development/interpreters/duktape/default.nix @@ -0,0 +1,31 @@ +{ stdenv, fetchurl }: + +stdenv.mkDerivation rec { + name = "duktape-${version}"; + version = "2.2.0"; + src = fetchurl { + url = "http://duktape.org/duktape-${version}.tar.xz"; + sha256 = "050csp065ll67dck94s0vdad5r5ck4jwsz1fn1y0fcvn88325xv2"; + }; + + buildPhase = '' + make -f Makefile.sharedlibrary + make -f Makefile.cmdline + ''; + installPhase = '' + install -d $out/bin + install -m755 duk $out/bin/ + install -d $out/lib + install -m755 libduktape* $out/lib/ + ''; + enableParallelBuilding = true; + + meta = with stdenv.lib; { + description = "An embeddable Javascript engine, with a focus on portability and compact footprint"; + homepage = "http://duktape.org/"; + downloadPage = "http://duktape.org/download.html"; + license = licenses.mit; + maintainers = [ maintainers.fgaz ]; + platforms = platforms.linux; + }; +} |