2014-01-14 09:46:46 +00:00
|
|
|
{ stdenv, fetchurl, makeWrapper, jdk }:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
name = "rascal-0.6.2";
|
|
|
|
|
|
|
|
src = fetchurl {
|
2018-06-28 18:43:35 +00:00
|
|
|
url = "https://update.rascal-mpl.org/console/${name}.jar";
|
2014-01-14 09:46:46 +00:00
|
|
|
sha256 = "1z4mwdbdc3r24haljnxng8znlfg2ihm9bf9zq8apd9a32ipcw4i6";
|
|
|
|
};
|
|
|
|
|
|
|
|
buildInputs = [ makeWrapper jdk ];
|
|
|
|
|
2019-06-19 15:45:34 +00:00
|
|
|
dontUnpack = true;
|
2014-01-14 09:46:46 +00:00
|
|
|
|
|
|
|
installPhase =
|
|
|
|
''
|
|
|
|
mkdir -p $out/bin
|
|
|
|
makeWrapper ${jdk}/bin/java $out/bin/rascal \
|
2014-01-25 01:32:39 +00:00
|
|
|
--add-flags "-jar ${src}" \
|
2014-01-14 09:46:46 +00:00
|
|
|
'';
|
|
|
|
|
|
|
|
meta = {
|
2020-04-01 01:11:51 +00:00
|
|
|
homepage = "https://www.rascal-mpl.org/";
|
2014-01-14 09:46:46 +00:00
|
|
|
description = "Command-line REPL for the Rascal metaprogramming language";
|
|
|
|
license = stdenv.lib.licenses.epl10;
|
|
|
|
maintainers = [ stdenv.lib.maintainers.eelco ];
|
2016-08-02 17:50:55 +00:00
|
|
|
platforms = stdenv.lib.platforms.unix;
|
2014-01-14 09:46:46 +00:00
|
|
|
};
|
|
|
|
}
|