I have a sha256-based git repository with a flake.nix in it. I cannot properly use my flake:
$ use flake . --impure --show-trace
warning: Git tree '/home/zilti/projects/chicken6-flake' is dirty
warning: creating lock file '/home/zilti/projects/chicken6-flake/flake.lock'
error:
… while updating the lock file of flake 'git+file:///home/zilti/projects/chicken6-flake'
… while fetching the input 'git+file:///home/zilti/projects/chicken6-flake'
error: hash '198461b4bc842fde74f065402dcf42e3956eb36e8a990d2782e7b4bd861bc67a' has wrong length for hash type 'sha1'
direnv: nix-direnv: Evaluating current devShell failed. Falling back to previous environment!
direnv: export +NIX_DIRENV_DID_FALLBACK ~PATH
Same goes for when one's trying to use a flake as a template using nix flake new -t: This will result in fatal: mismatched algorithms: client sha1; server sha256.
I have a sha256-based git repository with a flake.nix in it. I cannot properly use my flake: