|
1 | | -{ stdenv, lib, fetchurl, fetchFromGitHub, bash, pkg-config, autoconf, cpio |
| 1 | +{ stdenv, lib, fetchurl, fetchpatch, fetchFromGitHub, bash, pkg-config, autoconf, cpio |
2 | 2 | , file, which, unzip, zip, perl, cups, freetype, harfbuzz, alsa-lib, libjpeg, giflib |
3 | 3 | , libpng, zlib, lcms2, libX11, libICE, libXrender, libXext, libXt, libXtst |
4 | 4 | , libXi, libXinerama, libXcursor, libXrandr, fontconfig, openjdk17-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 |
|
29 | 26 | sha256 = "sha256-zPpINi++3Ct0PCwlwlfhceh/ploMkclw+MgeI9dULdc="; |
30 | 27 | }; |
31 | 28 |
|
32 | | - nativeBuildInputs = [ gnumake44 pkg-config autoconf unzip ]; |
| 29 | + nativeBuildInputs = [ pkg-config autoconf unzip ]; |
33 | 30 | buildInputs = [ |
34 | 31 | cpio file which zip perl zlib cups freetype harfbuzz alsa-lib libjpeg giflib |
35 | 32 | libpng zlib lcms2 libX11 libICE libXrender libXext libXtst libXt libXtst |
|
61 | 58 | url = "https://git.alpinelinux.org/aports/plain/community/openjdk17/FixNullPtrCast.patch?id=41e78a067953e0b13d062d632bae6c4f8028d91c"; |
62 | 59 | sha256 = "sha256-LzmSew51+DyqqGyyMw2fbXeBluCiCYsS1nCjt9hX6zo="; |
63 | 60 | }) |
| 61 | + |
| 62 | + # Fix build for gnumake-4.4.1: |
| 63 | + # https://github.com/openjdk/jdk/pull/12992 |
| 64 | + (fetchpatch { |
| 65 | + name = "gnumake-4.4.1"; |
| 66 | + url = "https://github.com/openjdk/jdk/commit/9341d135b855cc208d48e47d30cd90aafa354c36.patch"; |
| 67 | + hash = "sha256-Qcm3ZmGCOYLZcskNjj7DYR85R4v07vYvvavrVOYL8vg="; |
| 68 | + }) |
64 | 69 | ] ++ lib.optionals (!headless && enableGnome2) [ |
65 | 70 | ./swing-use-gtk-jdk13.patch |
66 | 71 | ]; |
|
0 commit comments