Files
openhab.nix/jdk.nix
Bartłomiej Pluta 206e975368
Some checks failed
Update the version / update (push) Has been cancelled
Fix JDK build
2025-12-05 13:01:04 +01:00

23 lines
509 B
Nix
Raw Permalink 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.
{
stdenv,
jdk21,
which,
zip,
buildPackages,
}:
if stdenv.buildPlatform == stdenv.hostPlatform
then jdk21
else
jdk21.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"
"--with-build-jdk=${buildPackages.jdk21}"
];
})