mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-12-29 06:45:54 +03:00
ocaml-ng.ocamlPackages_5_0.ocaml: init at 5.0.0-β1
This commit is contained in:
parent
eb569423a7
commit
7e591f949e
9
pkgs/development/compilers/ocaml/5.0.nix
Normal file
9
pkgs/development/compilers/ocaml/5.0.nix
Normal file
@ -0,0 +1,9 @@
|
||||
import ./generic.nix {
|
||||
major_version = "5";
|
||||
minor_version = "0";
|
||||
patch_version = "0-beta1";
|
||||
src = fetchTarball {
|
||||
url = "https://caml.inria.fr/pub/distrib/ocaml-5.0/ocaml-5.0.0~beta1.tar.xz";
|
||||
sha256 = "sha256:1kwb53ra5qbwiiyrx5da7l5mqkjf0fr3rqgkrm3wr83l25scimj4";
|
||||
};
|
||||
}
|
@ -73,6 +73,7 @@ stdenv.mkDerivation (args // {
|
||||
configurePlatforms = lib.optionals (lib.versionAtLeast version "4.08" && !(stdenv.isDarwin && stdenv.isAarch64)) [ "host" "target" ];
|
||||
# x86_64-unknown-linux-musl-ld: -r and -pie may not be used together
|
||||
hardeningDisable = lib.optional (lib.versionAtLeast version "4.09" && stdenv.hostPlatform.isMusl) "pie"
|
||||
++ lib.optional (lib.versionAtLeast version "5.0" && stdenv.cc.isClang) "strictoverflow"
|
||||
++ lib.optionals (args ? hardeningDisable) args.hardeningDisable;
|
||||
|
||||
# Older versions have some race:
|
||||
|
@ -1663,6 +1663,8 @@ in let inherit (pkgs) callPackage; in rec
|
||||
|
||||
ocamlPackages_4_14 = mkOcamlPackages (callPackage ../development/compilers/ocaml/4.14.nix { });
|
||||
|
||||
ocamlPackages_5_0 = mkOcamlPackages (callPackage ../development/compilers/ocaml/5.0.nix { });
|
||||
|
||||
ocamlPackages_latest = ocamlPackages_4_14;
|
||||
|
||||
ocamlPackages = ocamlPackages_4_14;
|
||||
|
Loading…
Reference in New Issue
Block a user