|
1 | | -{ stdenv, lib, fetchFromGitHub, bash, pkg-config, autoconf, cpio, file, which, unzip |
| 1 | +{ stdenv, lib, fetchpatch, fetchFromGitHub, bash, pkg-config, autoconf, cpio, file, which, unzip |
2 | 2 | , zip, perl, cups, freetype, harfbuzz, alsa-lib, libjpeg, giflib, libpng, zlib, lcms2 |
3 | 3 | , libX11, libICE, libXrender, libXext, libXt, libXtst, libXi, libXinerama |
4 | 4 | , libXcursor, libXrandr, fontconfig, openjdk11-bootstrap |
5 | 5 | , setJavaClassPath |
6 | 6 | , headless ? false |
7 | 7 | , enableJavaFX ? false, openjfx |
8 | 8 | , enableGnome2 ? true, gtk3, gnome_vfs, glib, GConf |
9 | | -# Hold back make-4.4 as 4.4.1 breaks the build: |
10 | | -# https://github.com/NixOS/nixpkgs/issues/219513 |
11 | | -, gnumake44 |
12 | 9 | }: |
13 | 10 |
|
14 | 11 | let |
|
28 | 25 | sha256 = "sha256-QGOpMIrWwOtIcUY/CLbTRDvcVTG2xioZu46v+n+IIQ4="; |
29 | 26 | }; |
30 | 27 |
|
31 | | - nativeBuildInputs = [ gnumake44 pkg-config autoconf unzip ]; |
| 28 | + nativeBuildInputs = [ pkg-config autoconf unzip ]; |
32 | 29 | buildInputs = [ |
33 | 30 | cpio file which zip perl zlib cups freetype harfbuzz alsa-lib libjpeg giflib |
34 | 31 | libpng zlib lcms2 libX11 libICE libXrender libXext libXtst libXt libXtst |
|
43 | 40 | ./currency-date-range-jdk10.patch |
44 | 41 | ./increase-javadoc-heap.patch |
45 | 42 | ./fix-library-path-jdk11.patch |
| 43 | + |
| 44 | + # Fix build for gnumake-4.4.1: |
| 45 | + # https://github.com/openjdk/jdk/pull/12992 |
| 46 | + (fetchpatch { |
| 47 | + name = "gnumake-4.4.1"; |
| 48 | + url = "https://github.com/openjdk/jdk/commit/9341d135b855cc208d48e47d30cd90aafa354c36.patch"; |
| 49 | + hash = "sha256-Qcm3ZmGCOYLZcskNjj7DYR85R4v07vYvvavrVOYL8vg="; |
| 50 | + }) |
46 | 51 | ] ++ lib.optionals (!headless && enableGnome2) [ |
47 | 52 | ./swing-use-gtk-jdk10.patch |
48 | 53 | ]; |
|
0 commit comments