Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at 21.11 31 lines 773 B view raw
1{ lib, stdenv, fetchurl, makeWrapper, jdk }: 2 3stdenv.mkDerivation rec { 4 pname = "rascal"; 5 version = "0.6.2"; 6 7 src = fetchurl { 8 url = "https://update.rascal-mpl.org/console/${pname}-${version}.jar"; 9 sha256 = "1z4mwdbdc3r24haljnxng8znlfg2ihm9bf9zq8apd9a32ipcw4i6"; 10 }; 11 12 nativeBuildInputs = [ makeWrapper ]; 13 buildInputs = [ jdk ]; 14 15 dontUnpack = true; 16 17 installPhase = 18 '' 19 mkdir -p $out/bin 20 makeWrapper ${jdk}/bin/java $out/bin/rascal \ 21 --add-flags "-jar ${src}" \ 22 ''; 23 24 meta = { 25 homepage = "https://www.rascal-mpl.org/"; 26 description = "Command-line REPL for the Rascal metaprogramming language"; 27 license = lib.licenses.epl10; 28 maintainers = [ lib.maintainers.eelco ]; 29 platforms = lib.platforms.unix; 30 }; 31}