diff options
author | Troels Henriksen <athas@sigkill.dk> | 2023-04-19 11:43:39 +0200 |
---|---|---|
committer | Troels Henriksen <athas@sigkill.dk> | 2023-04-19 11:43:39 +0200 |
commit | 7425cd06fca780f559d4a5e9782c25232e59c83f (patch) | |
tree | f5ac581f8b942b9762409f1df0f7ffe5a7bf9467 | |
parent | e008c5ef8c5435645a5da1f912bde26884363dba (diff) | |
download | nixpkgs-7425cd06fca780f559d4a5e9782c25232e59c83f.tar nixpkgs-7425cd06fca780f559d4a5e9782c25232e59c83f.tar.gz nixpkgs-7425cd06fca780f559d4a5e9782c25232e59c83f.tar.bz2 nixpkgs-7425cd06fca780f559d4a5e9782c25232e59c83f.tar.lz nixpkgs-7425cd06fca780f559d4a5e9782c25232e59c83f.tar.xz nixpkgs-7425cd06fca780f559d4a5e9782c25232e59c83f.tar.zst nixpkgs-7425cd06fca780f559d4a5e9782c25232e59c83f.zip |
flix: init at 0.35.0
-rw-r--r-- | pkgs/development/compilers/flix/default.nix | 33 | ||||
-rw-r--r-- | pkgs/top-level/all-packages.nix | 2 |
2 files changed, 35 insertions, 0 deletions
diff --git a/pkgs/development/compilers/flix/default.nix b/pkgs/development/compilers/flix/default.nix new file mode 100644 index 00000000000..e4c21664b3c --- /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; + }; +} diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 89d0a2fae17..5d8938ad642 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -2208,6 +2208,8 @@ with pkgs; flycast = callPackage ../applications/emulators/flycast { }; + flix = callPackage ../development/compilers/flix { }; + fsrx = callPackage ../tools/misc/fsrx { }; fsuae = callPackage ../applications/emulators/fs-uae { }; |