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

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

33 lines
838 B
Nix
Raw Normal View History

{ lib, stdenv, fetchurl, makeWrapper, jdk }:
2014-01-14 09:46:46 +00:00
stdenv.mkDerivation rec {
2021-06-20 14:15:21 +00:00
pname = "rascal";
2023-05-07 18:21:24 +00:00
version = "0.28.2";
2014-01-14 09:46:46 +00:00
src = fetchurl {
2021-06-20 14:15:21 +00:00
url = "https://update.rascal-mpl.org/console/${pname}-${version}.jar";
2023-05-07 18:21:24 +00:00
sha256 = "sha256-KMoGTegjXuGSzNnwH6SkcM5GC/F3oluvFrlJ51Pms3M=";
2014-01-14 09:46:46 +00:00
};
nativeBuildInputs = [ makeWrapper ];
buildInputs = [ jdk ];
2014-01-14 09:46:46 +00:00
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 = {
homepage = "https://www.rascal-mpl.org/";
2014-01-14 09:46:46 +00:00
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;
2014-01-14 09:46:46 +00:00
};
}