This commit is contained in:
12
flake.lock
generated
12
flake.lock
generated
@@ -5,11 +5,11 @@
|
|||||||
"systems": "systems"
|
"systems": "systems"
|
||||||
},
|
},
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1710146030,
|
"lastModified": 1731533236,
|
||||||
"narHash": "sha256-SZ5L6eA7HJ/nmkzGG7/ISclqe6oZdOZTNoesiInkXPQ=",
|
"narHash": "sha256-l0KFg5HjrsfsO/JpG+r7fRrqm12kzFHyUHqHCVpMMbI=",
|
||||||
"owner": "numtide",
|
"owner": "numtide",
|
||||||
"repo": "flake-utils",
|
"repo": "flake-utils",
|
||||||
"rev": "b1d9ab70662946ef0850d488da1c9019f3a9752a",
|
"rev": "11707dc2f618dd54ca8739b309ec4fc024de578b",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
@@ -20,11 +20,11 @@
|
|||||||
},
|
},
|
||||||
"nixpkgs": {
|
"nixpkgs": {
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1720863214,
|
"lastModified": 1764934844,
|
||||||
"narHash": "sha256-i2MaeZlmE85eZtILHzZdb0blm15xcq7ASbhHa8ILiLI=",
|
"narHash": "sha256-P+MyCHPVEXUB7j1lQCjWo6Ke9/SGkKCWbyyVeXkude8=",
|
||||||
"owner": "NixOS",
|
"owner": "NixOS",
|
||||||
"repo": "nixpkgs",
|
"repo": "nixpkgs",
|
||||||
"rev": "267ce10433ba68de208074a2faf9d31f048593f3",
|
"rev": "1177aa56e17909379c74d86c60d51f92f2f1e8e4",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
|
|||||||
11
jdk.nix
11
jdk.nix
@@ -1,18 +1,14 @@
|
|||||||
{
|
{
|
||||||
buildPlatform,
|
stdenv,
|
||||||
hostPlatform,
|
|
||||||
jdk21,
|
jdk21,
|
||||||
which,
|
which,
|
||||||
zip,
|
zip,
|
||||||
buildPackages,
|
buildPackages,
|
||||||
}:
|
}:
|
||||||
if buildPlatform == hostPlatform
|
if stdenv.buildPlatform == stdenv.hostPlatform
|
||||||
then jdk21
|
then jdk21
|
||||||
else
|
else
|
||||||
(jdk21.override {
|
jdk21.overrideAttrs (old: {
|
||||||
# libIDL does not compile in cross-compile scenarios.
|
|
||||||
enableGnome2 = false;
|
|
||||||
}).overrideAttrs (old: {
|
|
||||||
# lol, nixpkgs can’t get pkgs right
|
# lol, nixpkgs can’t get pkgs right
|
||||||
# AUTOCONF = "${autoconf}/bin/autoconf";
|
# AUTOCONF = "${autoconf}/bin/autoconf";
|
||||||
nativeBuildInputs = old.nativeBuildInputs ++ [which zip];
|
nativeBuildInputs = old.nativeBuildInputs ++ [which zip];
|
||||||
@@ -21,7 +17,6 @@ else
|
|||||||
old.configureFlags
|
old.configureFlags
|
||||||
++ [
|
++ [
|
||||||
"--with-jtreg=no"
|
"--with-jtreg=no"
|
||||||
"--disable-hotspot-gtest"
|
|
||||||
"--with-build-jdk=${buildPackages.jdk21}"
|
"--with-build-jdk=${buildPackages.jdk21}"
|
||||||
];
|
];
|
||||||
})
|
})
|
||||||
|
|||||||
Reference in New Issue
Block a user