diff options
author | Orivej Desh <orivej@gmx.fr> | 2017-10-03 17:46:39 +0000 |
---|---|---|
committer | Orivej Desh <orivej@gmx.fr> | 2017-10-03 17:46:39 +0000 |
commit | f1370041799b17454dc252d137795810edf37594 (patch) | |
tree | c3a8dce88803a52060fe88c73fe7d2af4afa1cba /pkgs/development/compilers | |
parent | 3c3d8710b5d61baace6e412fd4b765a3a50e4188 (diff) | |
parent | b465d9c1fff4e92d6790e10dafc6a578c44ac98e (diff) | |
download | nixlib-f1370041799b17454dc252d137795810edf37594.tar nixlib-f1370041799b17454dc252d137795810edf37594.tar.gz nixlib-f1370041799b17454dc252d137795810edf37594.tar.bz2 nixlib-f1370041799b17454dc252d137795810edf37594.tar.lz nixlib-f1370041799b17454dc252d137795810edf37594.tar.xz nixlib-f1370041799b17454dc252d137795810edf37594.tar.zst nixlib-f1370041799b17454dc252d137795810edf37594.zip |
Merge branch 'master' into staging
* master: (81 commits) Add NixOS 17.09 AMIs gradle: 4.2 -> 4.2.1 maintainers.nix: use my GitHub handle as maintainer name fcitx-engines.rime: init at 0.3.2 brise: init at 2017-09-16 librime: init at 1.2.9 marisa: init at 0.2.4 opencc: build shared library and programs josm: 12712 -> 12914 exa: 0.7.0 -> 0.8.0 krb5: add deprecation date for old configuration rustRegistry: 2017-09-10 -> 2017-10-03 go-ethereum: Fix libusb segmentation faults on Darwin tor-browser-bundle-bin: 7.0.5 -> 7.0.6 libsodium: 1.0.13 -> 1.0.15 tor-browser-bundle: geoip support tor-browser-bundle: support transports obfs2,obfs3 tor-browser-bundle: bump https-everywhere to 2017.9.12 tint2: limit platforms to Linux since macOS is not supported and fails the tests eclipse-plugin-vrapper: init at 0.72.0 ...
Diffstat (limited to 'pkgs/development/compilers')
-rw-r--r-- | pkgs/development/compilers/crystal/default.nix | 2 | ||||
-rw-r--r-- | pkgs/development/compilers/fstar/default.nix | 65 |
2 files changed, 10 insertions, 57 deletions
diff --git a/pkgs/development/compilers/crystal/default.nix b/pkgs/development/compilers/crystal/default.nix index 62a504ef9668..ae94a76ab237 100644 --- a/pkgs/development/compilers/crystal/default.nix +++ b/pkgs/development/compilers/crystal/default.nix @@ -97,7 +97,7 @@ stdenv.mkDerivation rec { description = "A compiled language with Ruby like syntax and type inference"; homepage = https://crystal-lang.org/; license = stdenv.lib.licenses.asl20; - maintainers = with stdenv.lib.maintainers; [ mingchuan ]; + maintainers = with stdenv.lib.maintainers; [ sifmelcara ]; platforms = [ "x86_64-linux" "i686-linux" "x86_64-darwin" ]; }; } diff --git a/pkgs/development/compilers/fstar/default.nix b/pkgs/development/compilers/fstar/default.nix index 0887dd992526..3aef4e3ba89d 100644 --- a/pkgs/development/compilers/fstar/default.nix +++ b/pkgs/development/compilers/fstar/default.nix @@ -1,78 +1,30 @@ -{ stdenv, fetchFromGitHub, mono, fsharp, dotnetPackages, z3, ocamlPackages, openssl, makeWrapper, pkgconfig, file }: +{ stdenv, fetchFromGitHub, z3, ocamlPackages, makeWrapper }: stdenv.mkDerivation rec { name = "fstar-${version}"; - version = "0.9.4.0"; + version = "0.9.5.0"; src = fetchFromGitHub { owner = "FStarLang"; repo = "FStar"; rev = "v${version}"; - sha256 = "130779p5plsgvz0dkcqycns3vwrvyfl138nq2xdhd3rkdsbyyvb7"; + sha256 = "1pi2ny3kpmvm85x8w98anhjf0hp0wccc51m7v697qypn5cl4ydqk"; }; nativeBuildInputs = [ makeWrapper ]; buildInputs = with ocamlPackages; [ - mono fsharp z3 dotnetPackages.FsLexYacc ocaml findlib ocaml_batteries - zarith camlp4 yojson pprint openssl pkgconfig file + z3 ocaml findlib ocaml_batteries menhir stdint + zarith camlp4 yojson pprint ]; - preBuild = '' - substituteInPlace src/Makefile --replace "\$(RUNTIME) VS/.nuget/NuGet.exe" "true" \ - --replace Darwin xyz - substituteInPlace src/VS/.nuget/NuGet.targets --replace "mono" "true" + makeFlags = [ "PREFIX=$(out)" ]; - # Fails with bad interpreter otherwise + preBuild = '' patchShebangs src/tools patchShebangs bin - - export FSharpTargetsPath="$(dirname $(pkg-config FSharp.Core --variable=Libraries))/Microsoft.FSharp.Targets" - # remove hardcoded windows paths - sed -i '/<FSharpTargetsPath/d' src/*/*.fsproj - - mkdir -p src/VS/packages/FsLexYacc.6.1.0 - ln -s ${dotnetPackages.FsLexYacc}/lib/dotnet/FsLexYacc src/VS/packages/FsLexYacc.6.1.0/build - ''; - - makeFlags = [ - "FSYACC=${dotnetPackages.FsLexYacc}/bin/fsyacc" - "FSLEX=${dotnetPackages.FsLexYacc}/bin/fslex" - "NUGET=true" - "PREFIX=$(out)" - ]; - - buildFlags = "-C src"; - - # Now that the .NET fstar.exe is built, use it to build the native OCaml binary - postBuild = '' - patchShebangs bin/fstar.exe - - # Workaround for fsharp/fsharp#419 - cp ${fsharp}/lib/mono/4.5/FSharp.Core.dll bin/ - - # Use the built .NET binary to extract the sources of itself from F* to OCaml - make ''${enableParallelBuilding:+-j''${NIX_BUILD_CORES} -l''${NIX_BUILD_CORES}} \ - $makeFlags "''${makeFlagsArray[@]}" \ - ocaml -C src - - # Build the extracted OCaml sources - make ''${enableParallelBuilding:+-j''${NIX_BUILD_CORES} -l''${NIX_BUILD_CORES}} \ - $makeFlags "''${makeFlagsArray[@]}" \ - -C src/ocaml-output ''; - - # https://github.com/FStarLang/FStar/issues/676 - doCheck = false; - - preCheck = "ulimit -s unlimited"; - - # Basic test suite: - #checkFlags = "VERBOSE=y -C examples"; - - # Complete, but heavyweight test suite: - checkTarget = "regressions"; - checkFlags = "VERBOSE=y -C src"; + buildFlags = "-C src/ocaml-output"; installFlags = "-C src/ocaml-output"; @@ -85,5 +37,6 @@ stdenv.mkDerivation rec { homepage = https://www.fstar-lang.org; license = licenses.asl20; platforms = with platforms; darwin ++ linux; + maintainers = with maintainers; [ gebner ]; }; } |