Skip to content

nurl gives different hash than Nixpkgs #357

@Aleksanaa

Description

@Aleksanaa
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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions