nixpkgs/pkgs/development/compilers/bs-platform/ocaml.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

24 lines
652 B
Nix
Raw Normal View History

{ lib, stdenv, src, version }:
2019-12-05 20:41:34 +01:00
stdenv.mkDerivation rec {
inherit src version;
2022-03-01 11:39:32 +01:00
pname = "ocaml-bs";
2019-12-05 20:41:34 +01:00
configurePhase = ''
./configure -prefix $out
'';
# Workaround ocaml-4.06 limitation of duplicate definitions.
# ld: libcamlrun.a(minor_gc.o):/build/ocaml/byterun/caml/major_gc.h:67: multiple definition of
# `caml_major_ring'; libcamlrun.a(stacks.o):/build/ocaml/byterun/caml/major_gc.h:67: first defined here
# Match -fcommon workaround in ocaml-4.06 itself.
env.NIX_CFLAGS_COMPILE = "-fcommon";
2019-12-05 20:41:34 +01:00
buildPhase = ''
make -j9 world.opt
'';
meta = with lib; {
2019-12-05 20:41:34 +01:00
branch = "4.06";
platforms = platforms.all;
};
}