-
Notifications
You must be signed in to change notification settings - Fork 21
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
How to use it ? i get the error cargo: command not found
#52
Comments
Can you try using https://github.com/yusdacra/rust-nix-templater instead? |
Thanks, i didn't know the existence of the templater May i suggest to link to the templater or examples using the templater in the i adapted the script that test in with a fresh crate, but i get the same error What did I do wrong? #!/usr/bin/env sh
cd /tmp
rm -rf nix-cargo-integration-test
mkdir nix-cargo-integration-test
cd nix-cargo-integration-test
nix --version
nix_flake="nix --experimental-features 'nix-command flakes'"
nix-shell --pure --packages \
cargo \
nixUnstable \
curl \
cacert \
git \
--command "
cargo init
cargo run
${nix_flake} --version
${nix_flake} run github:yusdacra/rust-nix-templater
git init
git config user.name name
git config user.email email@domain.tld
git add .
git commit --allow-empty-message --no-edit
${nix_flake} run
"
|
Interesting... Can you upload the not working example to a repository on github and link it here? I should be able to test the script later, but I also need to look at the broken files. |
Here the generated repository https://github.com/pinage404/nix-cargo-integration-cargo-command-not-found |
Can you change the |
it seems to work on the fresh repository ! thanks ! =D i will try with my real project |
it works on my project, thanks |
I'm having the same issue without using rust-nix-templater. with create2nix: I got error with gcc not executing correctly.
|
okay managed to make it work after updating the hash manually in build.cargoVendorHash. |
The PR #56 should fix that issue, as it will stop using naersk / buildRustPackage or crate2nix directly but rather just use dream2nix, which abstracts away most of the work for us. So it would be appreciated if you could try that PR's branch 🙂 |
I think I have a similar problem:
Here is my attempt: https://github.com/a-kenji/zellij/blob/nci-example/nix/default.nix |
I fixed this just now by merging #62. It fails somewhere else now, I'm looking into that issue. It would be appreciated if you could try it and make an issue for it so we can investigate it. |
BTW I can reproduce your issue with just dream2nix, so I'll move the discussion there. |
Oh yeah, that is a good idea. And I tried the new fix and it is still happening. |
Made issue on |
Hello,
i'm trying to use this projet but i have this issue
/nix/store/lwcfw5vyjlzrs35k1hanv21j1q2s5c5w-stdenv-linux/setup: line 1364: cargo: command not found
What am i doing wrong ? How to use it ?
i tryied with a fresh crate using this script
i get this output
The text was updated successfully, but these errors were encountered: