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

Support update of fetchers that use hash instead of sha256 #80

Open
katexochen opened this issue Oct 2, 2023 · 0 comments
Open

Support update of fetchers that use hash instead of sha256 #80

katexochen opened this issue Oct 2, 2023 · 0 comments

Comments

@katexochen
Copy link

Currently fetchers with a hash field are not updated by this tool:

{ stdenv, fetchgit }:

stdenv.mkDerivation rec {
  name = "foo-${version}";
  version = "2016-07-13";
  src = fetchgit {
    url = "git://midipix.org/slibtool";
    rev = "4f56fd184ef6020626492a6f954a486d54f8b7ba";
    hash = "";
  };
}
❯ update-nix-fetchgit --version
update-nix-fetchgit-0.2.11

❯ update-nix-fetchgit -v test.nix 
Made no updates

In nixpkgs, sha256 is more and more replaced with hash, so it would be super helpful to support this.

@katexochen katexochen changed the title Support update of fetchers that use hashinstead of sha256 Support update of fetchers that use hash instead of sha256 Oct 2, 2023
lordkekz added a commit to lordkekz/nix-yazi-plugins that referenced this issue Aug 25, 2024
This makes it possible to mass-upate plugins using
`update-nix-fetchgit`.
See: expipiplus1/update-nix-fetchgit#80
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