Skip to content

Commit

Permalink
ocamlPackages_4_06.num: fix after NixOS#110571
Browse files Browse the repository at this point in the history
  • Loading branch information
vbgl committed Aug 3, 2022
1 parent 3564e1b commit 2cae89e
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions pkgs/development/ocaml-modules/num/default.nix
Original file line number Diff line number Diff line change
@@ -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 {
Expand Down Expand Up @@ -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 {})
)

0 comments on commit 2cae89e

Please sign in to comment.