summaryrefslogtreecommitdiffstats
path: root/pkgs/development/compilers/flix
diff options
context:
space:
mode:
authorTroels Henriksen <athas@sigkill.dk>2023-04-19 11:43:39 +0200
committerTroels Henriksen <athas@sigkill.dk>2023-04-19 11:43:39 +0200
commit7425cd06fca780f559d4a5e9782c25232e59c83f (patch)
treef5ac581f8b942b9762409f1df0f7ffe5a7bf9467 /pkgs/development/compilers/flix
parente008c5ef8c5435645a5da1f912bde26884363dba (diff)
flix: init at 0.35.0
Diffstat (limited to 'pkgs/development/compilers/flix')
-rw-r--r--pkgs/development/compilers/flix/default.nix33
1 files changed, 33 insertions, 0 deletions
diff --git a/pkgs/development/compilers/flix/default.nix b/pkgs/development/compilers/flix/default.nix
new file mode 100644
index 000000000000..e4c21664b3ce
--- /dev/null
+++ b/pkgs/development/compilers/flix/default.nix
@@ -0,0 +1,33 @@
+{ lib, fetchurl, stdenvNoCC, makeWrapper, jre }:
+
+stdenvNoCC.mkDerivation rec {
+ pname = "flix";
+ version = "0.35.0";
+
+ src = fetchurl {
+ url = "https://github.com/flix/flix/releases/download/v${version}/flix.jar";
+ sha256 = "sha256-liPOAQfdAYc2JlUb+BXQ5KhTOYexC1vBCIuO0nT2jhk=";
+ };
+
+ dontUnpack = true;
+
+ nativeBuildInputs = [ makeWrapper ];
+
+ installPhase = ''
+ runHook preInstall
+ export JAR=$out/share/java/${pname}/${pname}.jar
+ install -D $src $JAR
+ makeWrapper ${jre}/bin/java $out/bin/${pname} \
+ --add-flags "-jar $JAR"
+ runHook postInstall
+ '';
+
+ meta = with lib; {
+ description = "The Flix Programming Language";
+ homepage = "https://github.com/flix/flix";
+ sourceProvenance = with sourceTypes; [ binaryBytecode ];
+ license = licenses.asl20;
+ maintainers = with maintainers; [ athas ];
+ platforms = platforms.all;
+ };
+}