diff options
author | Sandro <sandro.jaeckel@gmail.com> | 2021-04-12 02:26:00 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-04-12 02:26:00 +0200 |
commit | 36d6015eedd00948416cacf057b049a6ba20f848 (patch) | |
tree | 3f01855e4fe9f5172e45f28fa9c82a2385119778 /pkgs/development/compilers | |
parent | 567960e5e89bb84651e11b69ba90320c9bbc3f5a (diff) | |
parent | ddb3399c3ab9f8c2ad9cdfbbf33287e7dde90fa2 (diff) | |
download | nixpkgs-36d6015eedd00948416cacf057b049a6ba20f848.tar nixpkgs-36d6015eedd00948416cacf057b049a6ba20f848.tar.gz nixpkgs-36d6015eedd00948416cacf057b049a6ba20f848.tar.bz2 nixpkgs-36d6015eedd00948416cacf057b049a6ba20f848.tar.lz nixpkgs-36d6015eedd00948416cacf057b049a6ba20f848.tar.xz nixpkgs-36d6015eedd00948416cacf057b049a6ba20f848.tar.zst nixpkgs-36d6015eedd00948416cacf057b049a6ba20f848.zip |
Merge pull request #116576 from wunderbrick/juniper
Diffstat (limited to 'pkgs/development/compilers')
-rw-r--r-- | pkgs/development/compilers/juniper/default.nix | 41 |
1 files changed, 41 insertions, 0 deletions
diff --git a/pkgs/development/compilers/juniper/default.nix b/pkgs/development/compilers/juniper/default.nix new file mode 100644 index 00000000000..3db60dc17bc --- /dev/null +++ b/pkgs/development/compilers/juniper/default.nix @@ -0,0 +1,41 @@ +{ lib, stdenv, fetchzip, makeWrapper, mono }: + +stdenv.mkDerivation rec { + pname = "juniper"; + version = "2.3.0"; + + src = fetchzip { + url = "http://www.juniper-lang.org/installers/Juniper-${version}.zip"; + sha256 = "10am6fribyl7742yk6ag0da4rld924jphxja30gynzqysly8j0vg"; + stripRoot = false; + }; + + doCheck = true; + + nativeBuildInputs = [ makeWrapper ]; + + buildInputs = [ mono ]; + + installPhase = '' + runHook preInstall + rm juniper # original script with regular Linux assumptions + mkdir -p $out/bin + cp -r ./* $out + makeWrapper ${mono}/bin/mono $out/bin/juniper \ + --add-flags "$out/Juniper.exe \$@" + runHook postInstall + ''; + + meta = with lib; { + description = "Functional reactive programming language for programming Arduino"; + longDescription = '' + Juniper targets Arduino and supports many features typical of functional programming languages, including algebraic data types, tuples, records, + pattern matching, immutable data structures, parametric polymorphic functions, and anonymous functions (lambdas). + Some imperative programming concepts are also present in Juniper, such as for, while and do while loops, the ability to mark variables as mutable, and mutable references. + ''; + homepage = "https://www.juniper-lang.org/"; + license = licenses.mit; + maintainers = with maintainers; [ wunderbrick ]; + platforms = platforms.linux; + }; +} |