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

Issue with page /start/nix-build/ #394

Closed
hknlof opened this issue Dec 12, 2024 · 3 comments
Closed

Issue with page /start/nix-build/ #394

hknlof opened this issue Dec 12, 2024 · 3 comments

Comments

@hknlof
Copy link

hknlof commented Dec 12, 2024

Hi Team,

thank you for your guide.

nix build fails for me with

error: path '/nix/store/0ccnxa25whszw7mgbgyzdm4nqc0zwnm8-source/nix-rust-pkg/flake.nix' does not exist

Everything up to that point worked as expected.

Commands leading up to nix build

➜  nix-rust-pkg git:(main) ✗ mkdir nix-rust-pkg && cd nix-rust-pkg
➜  nix-rust-pkg git:(main) ✗ nix flake init --template "github:DeterminateSystems/zero-to-nix#rust-pkg"

Versions

ProductName:            macOS
ProductVersion:         15.1.1
BuildVersion:           24B91
➜  nix-rust-pkg git:(main) ✗ arch
arm64
➜  nix-rust-pkg git:(main) ✗ zsh --version
zsh 5.9 (arm64-apple-darwin24.0)
➜  nix-rust-pkg git:(main) ✗ nix --version
nix (Nix) 2.25.3

Thanks!

@maxheld83
Copy link

I ran into the same problem *when placing nix-rust-pkg inside an existing git repo, as you also appear to have done @hknlof ( nix-rust-pkg git:(main) ✗ mkdir nix-rust-pkg).

For me, the problem goes away if I either:

  • git init a new repo at nix-rust-pkg/ or
  • start the whole mkdir ... from a path without a pre-existing repo

@hknlof can you confirm whether this is the same for you so we can narrow this down?

@maxheld83
Copy link

and if so, I suspect this is a duplicate of #345.

@hknlof
Copy link
Author

hknlof commented Jan 23, 2025

@maxheld83 Thank you for you response and great work on zero-to-nix. Using a non git directory resolves this for me.

Closing because, as mentioned, this being a duplicate #345

@hknlof hknlof closed this as completed Jan 23, 2025
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

2 participants