Files
Victor Engmark c4f5dfad0d treewide: Remove continuation escape at end of commands
To avoid confusion and spurious newlines in the output.

Found by searching for a backslash followed by a newline, some
indentation, and then the end of multi-line string marker, using the
following extended regex:

```regex
\\\n +'';
```
2026-03-17 16:47:55 +01:00

39 lines
871 B
Nix

{
lib,
stdenv,
fetchurl,
makeWrapper,
jdk,
}:
stdenv.mkDerivation (finalAttrs: {
pname = "rascal";
version = "0.33.8";
src = fetchurl {
url = "https://update.rascal-mpl.org/console/rascal-${finalAttrs.version}.jar";
sha256 = "sha256-8m7+ME0mu9LEMzklkz1CZ9s7ZCMjoA5oreICFSpb4S8=";
};
nativeBuildInputs = [ makeWrapper ];
buildInputs = [ jdk ];
dontUnpack = true;
installPhase = ''
mkdir -p $out/bin
makeWrapper ${jdk}/bin/java $out/bin/rascal \
--add-flags "-jar ${finalAttrs.src}"
'';
meta = {
homepage = "https://www.rascal-mpl.org/";
description = "Command-line REPL for the Rascal metaprogramming language";
mainProgram = "rascal";
sourceProvenance = with lib.sourceTypes; [ binaryBytecode ];
license = lib.licenses.epl10;
maintainers = [ ];
platforms = lib.platforms.unix;
};
})