tangled
alpha
login
or
join now
pyrox.dev
/
nixpkgs
lol
0
fork
atom
overview
issues
pulls
pipelines
Merge #173733: ber-metaocaml: apply glibc>=2.34 fix
Vladimír Čunát
3 years ago
f0d68829
f2db28ca
+12
1 changed file
expand all
collapse all
unified
split
pkgs
development
compilers
ocaml
ber-metaocaml.nix
+12
pkgs/development/compilers/ocaml/ber-metaocaml.nix
···
1
1
{ lib, stdenv, fetchurl
2
2
, ncurses
3
3
, libX11, xorgproto, buildEnv
4
4
+
, fetchpatch
4
5
}:
5
6
6
7
let
···
40
41
41
42
dontStrip = true;
42
43
buildInputs = [ ncurses ] ++ optionals useX11 x11deps;
44
44
+
45
45
+
patches = [
46
46
+
# glibc 2.34 changed SIGSTKSZ from a #define'd integer to an
47
47
+
# expression involving a function call. This broke all code that
48
48
+
# used SIGSTKSZ as the size of a statically-allocated array. This
49
49
+
# patch is also applied by the ocaml/4.07.nix expression.
50
50
+
(fetchpatch {
51
51
+
url = "https://github.com/ocaml/ocaml/commit/00b8c4d503732343d5d01761ad09650fe50ff3a0.patch";
52
52
+
sha256 = "sha256:02cfya5ff5szx0fsl5x8ax76jyrla9zmf3qxavf3adhwq5ssrfcv";
53
53
+
})
54
54
+
];
43
55
44
56
postConfigure = ''
45
57
tar -xvzf $metaocaml