mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-28 01:43:15 +00:00
f9fdf2d402
with structuredAttrs lists will be bash arrays which cannot be exported which will be a issue with some patches and some wrappers like cc-wrapper this makes it clearer that NIX_CFLAGS_COMPILE must be a string as lists in env cause a eval failure
24 lines
652 B
Nix
24 lines
652 B
Nix
{ lib, stdenv, src, version }:
|
|
stdenv.mkDerivation rec {
|
|
inherit src version;
|
|
pname = "ocaml-bs";
|
|
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";
|
|
|
|
buildPhase = ''
|
|
make -j9 world.opt
|
|
'';
|
|
|
|
meta = with lib; {
|
|
branch = "4.06";
|
|
platforms = platforms.all;
|
|
};
|
|
}
|