From e9831074efb92b0f9314e1d2ff34e3d8b3a830c0 Mon Sep 17 00:00:00 2001 From: Vincent Laporte Date: Wed, 3 Aug 2022 22:24:37 +0200 Subject: [PATCH] ocamlPackages_4_06.num: fix after #110571 --- pkgs/development/ocaml-modules/num/default.nix | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/pkgs/development/ocaml-modules/num/default.nix b/pkgs/development/ocaml-modules/num/default.nix index 1f978a90df45..023b327cc08e 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 {}) +)