blob: 3499b7390f699a68d85b44ee3da9bbf21a5ab8d2 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
|
{ lib, fetchurl, stdenvNoCC, makeWrapper, jre }:
stdenvNoCC.mkDerivation rec {
pname = "flix";
version = "0.47.0";
src = fetchurl {
url = "https://github.com/flix/flix/releases/download/v${version}/flix.jar";
sha256 = "sha256-HlVJR8SPwhOFn3yuxJzUWSS+xascf4pGsoKCqzBDG6Y=";
};
dontUnpack = true;
nativeBuildInputs = [ makeWrapper ];
installPhase = ''
runHook preInstall
export JAR=$out/share/java/flix/flix.jar
install -D $src $JAR
makeWrapper ${jre}/bin/java $out/bin/flix \
--add-flags "-jar $JAR"
runHook postInstall
'';
meta = with lib; {
description = "The Flix Programming Language";
mainProgram = "flix";
homepage = "https://github.com/flix/flix";
sourceProvenance = with sourceTypes; [ binaryBytecode ];
license = licenses.asl20;
maintainers = with maintainers; [ athas ];
inherit (jre.meta) platforms;
};
}
|