From 2aa33d5e994ca8553ea2522a76d6884eac5bc35f Mon Sep 17 00:00:00 2001 From: "kody.low" Date: Fri, 24 May 2024 21:12:59 -0700 Subject: [PATCH] fix: flake fixes + java_home --- flake.nix | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/flake.nix b/flake.nix index e8599e1..2b0aa0d 100644 --- a/flake.nix +++ b/flake.nix @@ -103,14 +103,13 @@ legacyPackages = outputs; packages = { default = outputs.fedimint-clientd; }; devShells = flakeboxLib.mkShells { - packages = with pkgs ; [ - jbang # For running the JBang script version of Schnorr.Java - jdk22 # JDK 22 will be in $JAVA_HOME (and in javaToolchains) - jextract # jextract (Nix package) contains a jlinked executable and bundles its own JDK 22 - (gradle.override { # Gradle 8.7 (Nix package) depends-on and directly uses JDK 21 to launch Gradle itself - javaToolchains = [ jdk22 ]; # Put JDK 22 in Gradle's javaToolchain configuration - }) - ]; + packages = with pkgs; [ + jdk21 # JDK 22 will be in $JAVA_HOME (and in javaToolchains) + jextract # jextract (Nix package) contains a jlinked executable and bundles its own JDK 22 + (gradle.override { # Gradle 8.7 (Nix package) depends-on and directly uses JDK 21 to launch Gradle itself + javaToolchains = [ jdk21 ]; + }) + ]; buildInputs = commonArgs.buildInputs; nativeBuildInputs = [ pkgs.mprocs @@ -127,6 +126,7 @@ fedimint.packages.${system}.fedimint-pkgs ]; shellHook = '' + export JAVA_HOME="${pkgs.jdk21}" export RUSTFLAGS="--cfg tokio_unstable" export RUSTDOCFLAGS="--cfg tokio_unstable" export RUST_LOG="info"