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

30 lines
735 B
Nix
Raw Normal View History

2014-01-14 13:46:46 +04:00
{ stdenv, fetchurl, makeWrapper, jdk }:
stdenv.mkDerivation rec {
name = "rascal-0.6.2";
src = fetchurl {
url = "https://update.rascal-mpl.org/console/${name}.jar";
2014-01-14 13:46:46 +04:00
sha256 = "1z4mwdbdc3r24haljnxng8znlfg2ihm9bf9zq8apd9a32ipcw4i6";
};
buildInputs = [ makeWrapper jdk ];
unpackPhase = "true";
installPhase =
''
mkdir -p $out/bin
makeWrapper ${jdk}/bin/java $out/bin/rascal \
2014-01-25 05:32:39 +04:00
--add-flags "-jar ${src}" \
2014-01-14 13:46:46 +04:00
'';
meta = {
2018-06-27 23:12:57 +03:00
homepage = https://www.rascal-mpl.org/;
2014-01-14 13:46:46 +04:00
description = "Command-line REPL for the Rascal metaprogramming language";
license = stdenv.lib.licenses.epl10;
maintainers = [ stdenv.lib.maintainers.eelco ];
platforms = stdenv.lib.platforms.unix;
2014-01-14 13:46:46 +04:00
};
}