Skip to content

Commit

Permalink
Merge pull request #219836 from wegank/leo2-darwin
Browse files Browse the repository at this point in the history
leo2, statverif: add darwin support
  • Loading branch information
Atemu authored Mar 7, 2023
2 parents 3bbd2ff + 6185e42 commit acdc303
Show file tree
Hide file tree
Showing 4 changed files with 17 additions and 17 deletions.
4 changes: 3 additions & 1 deletion pkgs/applications/science/logic/leo2/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,8 @@ stdenv.mkDerivation rec {

buildFlags = [ "opt" ];

env.NIX_CFLAGS_COMPILE = lib.optionalString stdenv.cc.isClang "-Wno-reserved-user-defined-literal";

preInstall = "mkdir -p $out/bin";

postInstall = ''
Expand All @@ -44,7 +46,7 @@ stdenv.mkDerivation rec {
meta = with lib; {
description = "A high-performance typed higher order prover";
maintainers = [ maintainers.raskin ];
platforms = platforms.linux;
platforms = platforms.unix;
license = licenses.bsd3;
homepage = "http://www.leoprover.org/";
};
Expand Down
4 changes: 1 addition & 3 deletions pkgs/tools/games/weidu/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,7 @@ let
# 1. Needs ocaml >= 4.04 and <= 4.11 (patched against 4.14)
# 2. ocaml 4.10 defaults to safe (immutable) strings so we need a version with
# that disabled as weidu is strongly dependent on mutable strings
ocaml' = ocaml-ng.ocamlPackages_4_14.ocaml.override {
unsafeStringSupport = true;
};
ocaml' = ocaml-ng.ocamlPackages_4_14_unsafe_string.ocaml;

in
stdenv.mkDerivation rec {
Expand Down
20 changes: 7 additions & 13 deletions pkgs/top-level/all-packages.nix
Original file line number Diff line number Diff line change
Expand Up @@ -13700,7 +13700,7 @@ with pkgs;
wvkbd = callPackage ../applications/accessibility/wvkbd { };

wyrd = callPackage ../tools/misc/wyrd {
ocamlPackages = ocaml-ng.ocamlPackages_4_05;
ocamlPackages = ocaml-ng.ocamlPackages_4_14_unsafe_string;
};

x86info = callPackage ../os-specific/linux/x86info { };
Expand Down Expand Up @@ -20193,9 +20193,7 @@ with pkgs;
glpk = callPackage ../development/libraries/glpk { };

glsurf = callPackage ../applications/science/math/glsurf {
ocamlPackages = ocaml-ng.mkOcamlPackages (ocaml-ng.ocamlPackages_4_14.ocaml.override {
unsafeStringSupport = true;
});
ocamlPackages = ocaml-ng.ocamlPackages_4_14_unsafe_string;
};

glui = callPackage ../development/libraries/glui {};
Expand Down Expand Up @@ -31564,9 +31562,7 @@ with pkgs;
mjpg-streamer = callPackage ../applications/video/mjpg-streamer { };

mldonkey = callPackage ../applications/networking/p2p/mldonkey {
ocamlPackages = ocaml-ng.mkOcamlPackages (ocaml-ng.ocamlPackages_4_14.ocaml.override {
unsafeStringSupport = true;
});
ocamlPackages = ocaml-ng.ocamlPackages_4_14_unsafe_string;
};

mlvwm = callPackage ../applications/window-managers/mlvwm { };
Expand Down Expand Up @@ -31626,7 +31622,7 @@ with pkgs;
};

monotoneViz = callPackage ../applications/version-management/monotone-viz {
ocamlPackages = ocaml-ng.ocamlPackages_4_05;
ocamlPackages = ocaml-ng.ocamlPackages_4_14_unsafe_string;
};

monitor = callPackage ../applications/system/monitor {
Expand Down Expand Up @@ -37104,9 +37100,7 @@ with pkgs;
drat-trim = callPackage ../applications/science/logic/drat-trim {};

ekrhyper = callPackage ../applications/science/logic/ekrhyper {
ocaml = ocaml-ng.ocamlPackages_4_14.ocaml.override {
unsafeStringSupport = true;
};
ocaml = ocaml-ng.ocamlPackages_4_14_unsafe_string.ocaml;
};

eprover = callPackage ../applications/science/logic/eprover { };
Expand Down Expand Up @@ -37174,7 +37168,7 @@ with pkgs;
mathlibtools = with python3Packages; toPythonApplication mathlibtools;

leo2 = callPackage ../applications/science/logic/leo2
{ inherit (ocaml-ng.ocamlPackages_4_05) ocaml camlp4; };
{ inherit (ocaml-ng.ocamlPackages_4_14_unsafe_string) ocaml camlp4; };

leo3-bin = callPackage ../applications/science/logic/leo3/binary.nix {};

Expand Down Expand Up @@ -37221,7 +37215,7 @@ with pkgs;
};

statverif = callPackage ../applications/science/logic/statverif {
inherit (ocaml-ng.ocamlPackages_4_05) ocaml;
ocaml = ocaml-ng.ocamlPackages_4_14_unsafe_string.ocaml;
};

tptp = callPackage ../applications/science/logic/tptp {};
Expand Down
6 changes: 6 additions & 0 deletions pkgs/top-level/ocaml-packages.nix
Original file line number Diff line number Diff line change
Expand Up @@ -1692,4 +1692,10 @@ in let inherit (pkgs) callPackage; in rec
ocamlPackages_latest = ocamlPackages_5_0;

ocamlPackages = ocamlPackages_4_14;

# We still have packages that rely on unsafe-string, which is deprecated in OCaml 4.06.0.
# Below are aliases for porting them to the latest versions of the OCaml 4 series.
ocamlPackages_4_14_unsafe_string = mkOcamlPackages (callPackage ../development/compilers/ocaml/4.14.nix {
unsafeStringSupport = true;
});
}

0 comments on commit acdc303

Please sign in to comment.