mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-04 19:45:54 +00:00
30 lines
718 B
Nix
30 lines
718 B
Nix
{ lib, stdenv, fetchurl, makeWrapper, jdk }:
|
|
|
|
stdenv.mkDerivation rec {
|
|
name = "rascal-0.6.2";
|
|
|
|
src = fetchurl {
|
|
url = "https://update.rascal-mpl.org/console/${name}.jar";
|
|
sha256 = "1z4mwdbdc3r24haljnxng8znlfg2ihm9bf9zq8apd9a32ipcw4i6";
|
|
};
|
|
|
|
buildInputs = [ makeWrapper jdk ];
|
|
|
|
dontUnpack = true;
|
|
|
|
installPhase =
|
|
''
|
|
mkdir -p $out/bin
|
|
makeWrapper ${jdk}/bin/java $out/bin/rascal \
|
|
--add-flags "-jar ${src}" \
|
|
'';
|
|
|
|
meta = {
|
|
homepage = "https://www.rascal-mpl.org/";
|
|
description = "Command-line REPL for the Rascal metaprogramming language";
|
|
license = lib.licenses.epl10;
|
|
maintainers = [ lib.maintainers.eelco ];
|
|
platforms = lib.platforms.unix;
|
|
};
|
|
}
|