Files
openhab.nix/jdk.nix
2023-08-09 18:58:55 +03:00

19 lines
625 B
Nix
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
{ buildPlatform, hostPlatform, jdk17, which, zip, buildPackages }:
if buildPlatform == hostPlatform
then jdk17
else (jdk17.override {
# libIDL does not compile in cross-compile scenarios.
enableGnome2 = false;
}).overrideAttrs (old: {
# lol, nixpkgs cant get pkgs right
# AUTOCONF = "${autoconf}/bin/autoconf";
nativeBuildInputs = old.nativeBuildInputs ++ [ which zip ];
depsBuildBuild = with buildPackages; [ stdenv.cc autoconf ];
configureFlags = old.configureFlags ++ [
"--with-jtreg=no"
"--disable-hotspot-gtest"
"--with-build-jdk=${buildPackages.jdk17}"
];
})