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

nurl gives different hash than Nixpkgs #357

Open
Aleksanaa opened this issue Jul 16, 2024 · 0 comments
Open

nurl gives different hash than Nixpkgs #357

Aleksanaa opened this issue Jul 16, 2024 · 0 comments

Comments

@Aleksanaa
Copy link

nix run pkgs#nurl https://github.com/nix-community/nixd/archive/refs/tags/2.2.3.zip

(nurl 0.3.13) Gives me

$ nix flake prefetch --extra-experimental-features 'nix-command flakes' --json github:nix-community/nixd/38560011298ab5f955036ef0ff453d387a746044
fetchFromGitHub {
  owner = "nix-community";
  repo = "nixd";
  rev = "38560011298ab5f955036ef0ff453d387a746044";
  hash = "sha256-xi6iFd1DFR0g8TyJCOg5pkLHmXP0oyB4rMx5GvqwyKU=";
}

At the same time, by removing the hash (hash = "") from nixd and refetching, it gives me

error: hash mismatch in fixed-output derivation '/nix/store/nab810qn7l15xvsq1mhpr6d4gzw2zfx4-source.drv':
         specified: sha256-AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA=
            got:    sha256-1i4U012vqw84NuD5cjgfVX/he4vW9MyEeIetJ55g280=

I'm on Nixpkgs 74d38fdb308da734ea497aae3b98640b4d8265ca. I alternated between these two operations repeatedly and got the same results.

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

1 participant