Open freezeboy opened 5 years ago
Yeah - zulu should be the prebuilt version of openjdk. We should probably get rid of the openjdk/darwin/ as that is confusing to have.
It'd be great to get openjdk to build or darwin.
I'm also interested in looking into sharing / reusing the https://adoptopenjdk.net/ binaries.
Any movement on this? What needs to be done?
Currently on unstable, zulu8
refuses to install, while jdk
seems to work fine.
❯ nix-shell -p zulu8
error: Package ‘libpciaccess-0.16’ in /nix/store/5ihk0s5j4jlixwn282lpv9561q8xhcs4-nixpkgs-21.03pre243353.6d4b93323e7/nixpkgs/pkgs/servers/x11/xorg/default.nix:1135 is not supported on ‘x86_64-darwin’, refusing to evaluate.
a) For `nixos-rebuild` you can set
{ nixpkgs.config.allowUnsupportedSystem = true; }
in configuration.nix to override this.
b) For `nix-env`, `nix-build`, `nix-shell` or any other Nix command you can add
{ allowUnsupportedSystem = true; }
to ~/.config/nixpkgs/config.nix.
(use '--show-trace' to show detailed location information)
Yet jdk
seem to in fact be Zulu...
[nix-shell:~]$ java -version
openjdk version "1.8.0_202"
OpenJDK Runtime Environment (Zulu 8.36.0.1-CA-macosx) (build 1.8.0_202-b05)
OpenJDK 64-Bit Server VM (Zulu 8.36.0.1-CA-macosx) (build 25.202-b05, mixed mode)
I marked this as stale due to inactivity. → More info
I don't have a mac anymore so I could not work on it since then
I marked this as stale due to inactivity. → More info
Issue description
There are different ways to install java (zulu edition) on darwin. one is common with linux (but doesn't compile currently due to a link to
alsaLib
):pkgs/development/compilers/zulu
and another one that is specific todarwin
:pkgs/development/compilers/openjdk/darwin
.I see that the recipes are quite different, but I don't get the point :
Could we (I volunteer to help on that) try to merge or refactor the packages to avoid duplication, and maybe have an upgrade process that deals with the different variants?
Thanks
CC maintainers / authors: @nequissimus @fpletz @edwtjo @jerith666 @matthewbauer
Steps to reproduce
nix run nixpkgs.zulu8 nix run nixpkgs.zulu nix run nixpkgs.openjdk (on darwin)