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

install with flake: hash mismatch in fixed-output derivation #60

Open
GuillaumeDesforges opened this issue Apr 19, 2024 · 2 comments
Open

Comments

@GuillaumeDesforges
Copy link

The project looks very good for my use case. I tried using it via the flake but it failed.

$ nix shell github:tadfisher/gradle2nix
error: hash mismatch in fixed-output derivation '/nix/store/a56mz008i9cnfmxrqszlfcvb3ysjq79l-jackson-parent-2.12.pom.drv':
         specified: sha256-Z749r6r4zhcX56fefbkrpDPfkjtpekDJdDpUzJ/FNjc=
            got:    sha256-YqocFnmt4J8XPb8bbDLTXFXnWAAjj9XkjxOqQzfAh1s=
error: 1 dependencies of derivation '/nix/store/dgfnxv0as8q7f6qfc0slqw66wxg5c3ph-jackson-parent-2.12.pom.drv' failed to build
error: 1 dependencies of derivation '/nix/store/17sz3jbmcmsgd1hwqlzsm9bkl7amf9g5-gradle2nix-gradle-plugin-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
@GuillaumeDesforges
Copy link
Author

GuillaumeDesforges commented Apr 19, 2024

I fixed it locally, here's the patch:

From 1e33406c1650b4321b2a5ff2812154a30506f4bb Mon Sep 17 00:00:00 2001
From: Guillaume Desforges <[email protected]>
Date: Fri, 19 Apr 2024 15:59:14 +0200
Subject: [PATCH] Update dependency

---
 gradle-env.json | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/gradle-env.json b/gradle-env.json
index 6ff7a39..789837f 100644
--- a/gradle-env.json
+++ b/gradle-env.json
@@ -71,7 +71,7 @@
           "urls": [
             "https://plugins.gradle.org/m2/com/fasterxml/jackson/jackson-parent/2.12/jackson-parent-2.12.pom"
           ],
-          "sha256": "Z749r6r4zhcX56fefbkrpDPfkjtpekDJdDpUzJ/FNjc="
+          "sha256": "YqocFnmt4J8XPb8bbDLTXFXnWAAjj9XkjxOqQzfAh1s="
         },
         {
           "id": {
-- 
2.42.0

@c2vi
Copy link

c2vi commented Jun 30, 2024

duplicate of #51

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