diff options
author | Vincent Laporte <Vincent.Laporte@gmail.com> | 2022-10-15 16:41:15 +0200 |
---|---|---|
committer | Vincent Laporte <vbgl@users.noreply.github.com> | 2022-10-22 12:09:49 +0200 |
commit | 7e591f949ecabda439f8b9a52ba764274a706412 (patch) | |
tree | 776b2bd357dd612cd73121c954500e2e45a785d0 /pkgs/development/compilers/ocaml | |
parent | eb569423a73c69031fe8964cc1bbe2e4297167e3 (diff) | |
download | nixlib-7e591f949ecabda439f8b9a52ba764274a706412.tar nixlib-7e591f949ecabda439f8b9a52ba764274a706412.tar.gz nixlib-7e591f949ecabda439f8b9a52ba764274a706412.tar.bz2 nixlib-7e591f949ecabda439f8b9a52ba764274a706412.tar.lz nixlib-7e591f949ecabda439f8b9a52ba764274a706412.tar.xz nixlib-7e591f949ecabda439f8b9a52ba764274a706412.tar.zst nixlib-7e591f949ecabda439f8b9a52ba764274a706412.zip |
ocaml-ng.ocamlPackages_5_0.ocaml: init at 5.0.0-β1
Diffstat (limited to 'pkgs/development/compilers/ocaml')
-rw-r--r-- | pkgs/development/compilers/ocaml/5.0.nix | 9 | ||||
-rw-r--r-- | pkgs/development/compilers/ocaml/generic.nix | 1 |
2 files changed, 10 insertions, 0 deletions
diff --git a/pkgs/development/compilers/ocaml/5.0.nix b/pkgs/development/compilers/ocaml/5.0.nix new file mode 100644 index 000000000000..a36b3e31a427 --- /dev/null +++ b/pkgs/development/compilers/ocaml/5.0.nix @@ -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"; + }; +} diff --git a/pkgs/development/compilers/ocaml/generic.nix b/pkgs/development/compilers/ocaml/generic.nix index 2c6045c13a62..7db0eca0ee4d 100644 --- a/pkgs/development/compilers/ocaml/generic.nix +++ b/pkgs/development/compilers/ocaml/generic.nix @@ -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: |