Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

filepeek-0.1.2.jar no longer exists on the mirrors? #77

Open
fidgetingbits opened this issue Oct 15, 2024 · 2 comments
Open

filepeek-0.1.2.jar no longer exists on the mirrors? #77

fidgetingbits opened this issue Oct 15, 2024 · 2 comments

Comments

@fidgetingbits
Copy link

Seems the filepeek jar can't be downloaded anymore? Any suggestions for how to workaround that? I don't get far enough to hit the hash mismatch from #51 yet it seems ;)

nix run github:tadfisher/gradle2nix -- --help
error: builder for '/nix/store/mdwpinsxp8bp31mai8i14can53pp5041-filepeek-0.1.2.jar.drv' failed with exit code 1;
       last 14 log lines:
       >
       > trying https://jcenter.bintray.com/com/christophsturm/filepeek/0.1.2/filepeek-0.1.2.jar
       >   % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
       >                                  Dload  Upload   Total   Spent    Left  Speed
       > 100   162  100   162    0     0    182      0 --:--:-- --:--:-- --:--:--   182
       >   0     0    0     0    0     0      0      0 --:--:--  0:00:01 --:--:--     0
       > curl: (22) The requested URL returned error: 404
       >
       > trying https://repo.gradle.org/gradle/libs-releases/com/christophsturm/filepeek/0.1.2/filepeek-0.1.2.jar
       >   % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
       >                                  Dload  Upload   Total   Spent    Left  Speed
       >   0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
       > curl: (22) The requested URL returned error: 404
       > error: cannot download filepeek-0.1.2.jar from any mirror
       For full logs, run 'nix log /nix/store/mdwpinsxp8bp31mai8i14can53pp5041-filepeek-0.1.2.jar.drv'.
error: 1 dependencies of derivation '/nix/store/688srrldhh6158bbh7v09jyk76w74j3x-filepeek-0.1.2.jar.drv' failed to build
error: 1 dependencies of derivation '/nix/store/vh80sqnbh4sywbbfwn2w0lzshkzpbvnq-gradle2nix-gradle-project-env.drv' failed to build
error: 1 dependencies of derivation '/nix/store/a5zyny6vhxx4l2jiz812qwiysy1a54fx-init.gradle.drv' failed to build
error: 1 dependencies of derivation '/nix/store/s7rbzczmbqbwjkig6qk1p5m4g8n70nd8-gradle2nix-1.0.0-rc2.drv' failed to build
@fidgetingbits
Copy link
Author

FWIW just using the V2 branch works, so adding as a note for others.

You can use something like this https://github.com/BirdeeHub/birdeeSystems/blob/main/common/templates/gradle/flake.nix as a devshell using v2.

Or you will need to know where to point your JAVA_HOME (use find /nix/store -name openjdk-21* or similar) and then run:

JAVA_HOME=/nix/store/h8f0psz00bwjqqvbing2436h3g5rkk4d-openjdk-21.0.3+9 nix run github:tadfisher/gradle2nix/v2

@milahu
Copy link

milahu commented Oct 15, 2024

# 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 -- "$@"
}

gradle2nix --help

@fidgetingbits fidgetingbits changed the title filebeek-0.1.2.jar no longer exists on the mirrors? filepeek-0.1.2.jar no longer exists on the mirrors? Oct 15, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants