mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-18 15:56:50 +01:00
OCaml-4.02: fix ocamlbuild
This addresses the issue described at http://caml.inria.fr/mantis/view.php?id=6605
This commit is contained in:
parent
af3f91085a
commit
d440059e7d
1 changed files with 6 additions and 0 deletions
|
@ -9,6 +9,10 @@ assert useX11 -> !stdenv.isArm && !stdenv.isMips;
|
|||
let
|
||||
useNativeCompilers = !stdenv.isMips;
|
||||
inherit (stdenv.lib) optionals optionalString;
|
||||
patchOcamlBuild = fetchurl {
|
||||
url = https://github.com/ocaml/ocaml/pull/117.patch;
|
||||
sha256 = "0x2cdn2sgzq29qzqg5y2ial0jqy8gjg5a7jf8qqch55dc4vkyjw0";
|
||||
};
|
||||
in
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
|
@ -24,6 +28,8 @@ stdenv.mkDerivation rec {
|
|||
sha256 = "1p7lqvh64xpykh99014mz21q8fs3qyjym2qazhhbq8scwldv1i38";
|
||||
};
|
||||
|
||||
patches = [ patchOcamlBuild ];
|
||||
|
||||
prefixKey = "-prefix ";
|
||||
configureFlags = optionals useX11 [ "-x11lib" x11lib
|
||||
"-x11include" x11inc ];
|
||||
|
|
Loading…
Reference in a new issue