Wrap building applet, reader and common with Nix - #38
Conversation
|
|
I've tried cherry-picking 8c1bcb8, but building 2.2.1 version was failing anyways. The error was (both with However, the 2.2.1 built successfully for me, when I used the # set JAVA_HOME for gradle2nix
# this is faster, but requires openjdk-21 in /nix/store
# export JAVA_HOME=$(ls -d /nix/store/*-openjdk-21* | grep -v '.drv$' | sort -V | tail -n1)
export JAVA_HOME=$(nix-build --no-out-link '<nixpkgs>' -A jdk21)
# nix run github:tadfisher/gradle2nix/v2
function gradle2nix() {
nix run github:tadfisher/gradle2nix/v2 -- "$@"
} |
I've prefix the build path with a dot (`'.?submodules=1'` instead of `'?submodules=1'`). With an older Nix, the dot was needed. Also, the whole submodules part might not be necessary anymore, but I need it on my local machines and thus prefer to keep it for now.
|
Can we merge this? Then epare can be merged afterwards and we can work out what is the issue with the 2.2.1. |
Yes, it can be merged. |
Added simple wrappers around the Gradle build targets to build via Nix. The updates in the README.md are a bit lacking.