nixpkgs/pkgs/development/interpreters/rascal/default.nix
Silvan Mosberger 57bccb3cb8 treewide: http -> https sources (#42676)
* treewide: http -> https sources

This updates the source urls of all top-level packages from http to
https where possible.

* buildtorrent: fix url and tab -> spaces
2018-06-28 20:43:35 +02:00

30 lines
735 B
Nix

{ 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 ];
unpackPhase = "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 = stdenv.lib.licenses.epl10;
maintainers = [ stdenv.lib.maintainers.eelco ];
platforms = stdenv.lib.platforms.unix;
};
}