diff --git a/pkgs/development/interpreters/mujs/default.nix b/pkgs/development/interpreters/mujs/default.nix new file mode 100644 index 000000000000..7ef475ddab88 --- /dev/null +++ b/pkgs/development/interpreters/mujs/default.nix @@ -0,0 +1,23 @@ +{ stdenv, fetchgit, clang }: + +stdenv.mkDerivation rec { + name = "mujs-2014-11-29"; + + src = fetchgit { + url = git://git.ghostscript.com/mujs.git; + rev = "6afabf445cad0dd9afbc1f5870dba730801f09c0"; + sha256 = "1afzmncw3jvfq6smhhhsi1ywfmdpxkjpzswb86pdmdh3p04g1r0n"; + }; + + buildInputs = [ clang ]; + + makeFlags = [ "prefix=$(out)" ]; + + meta = with stdenv.lib; { + homepage = http://mujs.com/; + description = "A lightweight, embeddable Javascript interpreter"; + platforms = stdenv.lib.platforms.linux; + maintainers = with maintainers; [ pSub ]; + license = licenses.gpl3; + }; +} diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index e31bd7ed737a..395a78942c9d 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -4004,6 +4004,8 @@ let pythonProtobuf = pythonPackages.protobuf; }; + mujs = callPackage ../development/interpreters/mujs { }; + nix-exec = callPackage ../development/interpreters/nix-exec { nix = nixUnstable; git = gitMinimal;