diff options
author | Vincent Laporte <Vincent.Laporte@gmail.com> | 2022-08-03 22:24:37 +0200 |
---|---|---|
committer | Vincent Laporte <vbgl@users.noreply.github.com> | 2022-08-09 15:09:20 +0200 |
commit | e9831074efb92b0f9314e1d2ff34e3d8b3a830c0 (patch) | |
tree | d7bc9fcb0ef1f43513de7cbae1d2882833258cbf /pkgs/development/ocaml-modules/num | |
parent | 65f39b913d0910907ea22be29f108402924644c2 (diff) |
ocamlPackages_4_06.num: fix after #110571
Diffstat (limited to 'pkgs/development/ocaml-modules/num')
-rw-r--r-- | pkgs/development/ocaml-modules/num/default.nix | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/pkgs/development/ocaml-modules/num/default.nix b/pkgs/development/ocaml-modules/num/default.nix index 1f978a90df45e..023b327cc08eb 100644 --- a/pkgs/development/ocaml-modules/num/default.nix +++ b/pkgs/development/ocaml-modules/num/default.nix @@ -1,6 +1,6 @@ { stdenv, lib, fetchFromGitHub, fetchpatch, ocaml, findlib, withStatic ? false }: -stdenv.mkDerivation rec { +stdenv.mkDerivation (rec { version = "1.1"; pname = "ocaml${ocaml.version}-num"; src = fetchFromGitHub { @@ -28,4 +28,7 @@ stdenv.mkDerivation rec { inherit (ocaml.meta) platforms; inherit (src.meta) homepage; }; -} +} // (if lib.versions.majorMinor ocaml.version == "4.06" then { + NIX_CFLAGS_COMPILE = "-fcommon"; + } else {}) +) |