|
|
|
@ -1,4 +1,4 @@ |
|
|
|
|
{ lib, stdenv, fetchurl, ncurses, xlibsWrapper }: |
|
|
|
|
{ lib, stdenv, fetchurl, fetchpatch, ncurses, xlibsWrapper }: |
|
|
|
|
|
|
|
|
|
let |
|
|
|
|
useX11 = !stdenv.isAarch32 && !stdenv.isMips; |
|
|
|
@ -15,6 +15,12 @@ stdenv.mkDerivation rec { |
|
|
|
|
sha256 = "33c3f4acff51685f5bfd7c260f066645e767d4e865877bf1613c176a77799951"; |
|
|
|
|
}; |
|
|
|
|
|
|
|
|
|
# Compatibility with Glibc 2.34 |
|
|
|
|
patches = [ (fetchpatch { |
|
|
|
|
url = "https://github.com/ocaml/ocaml/commit/60b0cdaf2519d881947af4175ac4c6ff68901be3.patch"; |
|
|
|
|
sha256 = "sha256:07g9q9sjk4xsbqix7jxggfp36v15pmqw4bms80g5car0hfbszirn"; |
|
|
|
|
})]; |
|
|
|
|
|
|
|
|
|
prefixKey = "-prefix "; |
|
|
|
|
configureFlags = [ "-no-tk" ] ++ optionals useX11 [ "-x11lib" xlibsWrapper ]; |
|
|
|
|
buildFlags = [ "world" ] ++ optionals useNativeCompilers [ "bootstrap" "world.opt" ]; |
|
|
|
|