Add jython
This commit is contained in:
parent
ed892e222b
commit
7c5dbbe23a
2 changed files with 31 additions and 0 deletions
29
pkgs/development/interpreters/jython/default.nix
Normal file
29
pkgs/development/interpreters/jython/default.nix
Normal file
|
@ -0,0 +1,29 @@
|
|||
{ stdenv, fetchurl, makeWrapper, jre }:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
name = "jython-${version}";
|
||||
|
||||
version = "2.7-rc3";
|
||||
|
||||
src = fetchurl {
|
||||
url = "http://search.maven.org/remotecontent?filepath=org/python/jython-standalone/${version}/jython-standalone-${version}.jar";
|
||||
sha256 = "89fcaf53f1bda6124f836065c1e318e2e853d5a9a1fbf0e96a387c6d38828c78";
|
||||
};
|
||||
|
||||
buildInputs = [ makeWrapper ];
|
||||
|
||||
unpackPhase = ":";
|
||||
|
||||
installPhase = ''
|
||||
mkdir -pv $out/bin
|
||||
cp $src $out/jython.jar
|
||||
makeWrapper ${jre}/bin/java $out/bin/jython --add-flags "-jar $out/jython.jar"
|
||||
'';
|
||||
|
||||
meta = {
|
||||
description = "Python interpreter written in Java";
|
||||
homepage = http://jython.org/;
|
||||
license = stdenv.lib.licenses.psfl;
|
||||
platforms = jre.meta.platforms;
|
||||
};
|
||||
}
|
|
@ -4794,6 +4794,8 @@ let
|
|||
|
||||
jruby165 = callPackage ../development/interpreters/jruby { };
|
||||
|
||||
jython = callPackage ../development/interpreters/jython {};
|
||||
|
||||
guileCairo = callPackage ../development/guile-modules/guile-cairo { };
|
||||
|
||||
guileGnome = callPackage ../development/guile-modules/guile-gnome {
|
||||
|
|
Loading…
Reference in a new issue