1 { lib, stdenv, fetchurl, makeWrapper, jdk }:
3 stdenv.mkDerivation rec {
8 url = "https://update.rascal-mpl.org/console/${pname}-${version}.jar";
9 sha256 = "sha256-KMoGTegjXuGSzNnwH6SkcM5GC/F3oluvFrlJ51Pms3M=";
12 nativeBuildInputs = [ makeWrapper ];
13 buildInputs = [ jdk ];
20 makeWrapper ${jdk}/bin/java $out/bin/rascal \
21 --add-flags "-jar ${src}" \
25 homepage = "https://www.rascal-mpl.org/";
26 description = "Command-line REPL for the Rascal metaprogramming language";
27 sourceProvenance = with lib.sourceTypes; [ binaryBytecode ];
28 license = lib.licenses.epl10;
29 maintainers = [ lib.maintainers.eelco ];
30 platforms = lib.platforms.unix;