nixpkgs/pkgs/development/interpreters/jython/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

31 lines
813 B
Nix
Raw Normal View History

{ lib, stdenv, fetchurl, makeWrapper, jre }:
2015-04-24 09:44:33 +00:00
stdenv.mkDerivation rec {
pname = "jython";
2015-04-24 09:44:33 +00:00
2022-09-21 08:09:31 +00:00
version = "2.7.3";
2015-04-24 09:44:33 +00:00
src = fetchurl {
url = "http://search.maven.org/remotecontent?filepath=org/python/jython-standalone/${version}/jython-standalone-${version}.jar";
2022-09-21 08:09:31 +00:00
sha256 = "sha256-2n89gpsUi8+oawWdyWTjqFVv7bAhCWyNsH4wxm+qubQ=";
2015-04-24 09:44:33 +00:00
};
nativeBuildInputs = [ makeWrapper ];
2015-04-24 09:44:33 +00:00
2019-06-19 15:45:34 +00:00
dontUnpack = true;
2015-04-24 09:44:33 +00:00
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";
2020-02-23 16:28:13 +00:00
homepage = "https://jython.org/";
sourceProvenance = with lib.sourceTypes; [ binaryBytecode ];
license = lib.licenses.psfl;
2015-04-24 09:44:33 +00:00
platforms = jre.meta.platforms;
};
}