depot/third_party/nixpkgs/pkgs/development/interpreters/rascal/default.nix
Default email 94427deb9d Project import generated by Copybara.
GitOrigin-RevId: f91ee3065de91a3531329a674a45ddcb3467a650
2023-05-24 16:37:59 +03:00

32 lines
838 B
Nix

{ lib, stdenv, fetchurl, makeWrapper, jdk }:
stdenv.mkDerivation rec {
pname = "rascal";
version = "0.28.2";
src = fetchurl {
url = "https://update.rascal-mpl.org/console/${pname}-${version}.jar";
sha256 = "sha256-KMoGTegjXuGSzNnwH6SkcM5GC/F3oluvFrlJ51Pms3M=";
};
nativeBuildInputs = [ makeWrapper ];
buildInputs = [ 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";
sourceProvenance = with lib.sourceTypes; [ binaryBytecode ];
license = lib.licenses.epl10;
maintainers = [ lib.maintainers.eelco ];
platforms = lib.platforms.unix;
};
}