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

Unable to use with nix that doesn't support flakes #6

Open
takeda opened this issue Mar 21, 2022 · 0 comments
Open

Unable to use with nix that doesn't support flakes #6

takeda opened this issue Mar 21, 2022 · 0 comments

Comments

@takeda
Copy link

takeda commented Mar 21, 2022

NixOS 21.11 still uses Nix 2.3 by default.

When trying to reference the repo I'm getting following error:

fetching Git repository '/nix/store/p04jlkgwqm5kiwphm12zbvb485xzpcd8-source'fatal: '/nix/store/p04jlkgwqm5kiwphm12zbvb485xzpcd8-source' does not appear to be a git repository
fatal: Could not read from remote repository.

Please make sure you have the correct access rights
and the repository exists.

I believe this has to do with the code in default.nix:

(import (fetchTarball https://github.com/edolstra/flake-compat/archive/master.tar.gz) {
  src = builtins.fetchGit ./.;
}).defaultNix

Instead of src = builtins.fetchGit ./.; it should be src = ./.;

Or even better use the new recommendations from https://github.com/edolstra/flake-compat

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