Why can't I run the phases out of nix develop
?
#9415
Replies: 2 comments 2 replies
-
this appears to be unrelated to crates.io. might be better to ask for help on the nix project. |
Beta Was this translation helpful? Give feedback.
1 reply
-
I could share the flake.nix I used if you're interested https://gist.github.com/eth3lbert/c93e70dc44f80d81d993b75cb91e05bc. (Ah, just noticed the problem has nothing to do with crates.io.😅) |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I'm trying to debug a flake (since it doesn't build with
nix build
, but does when runningcargo build
inside the dev shell), by executing the exact phases. But the devShell environment seems to be different from the build environment. For example, none of the phases seem to be populated:I'm unsure if this is a general nix concept I'm not understanding, but I'm pretty sure that I could execute
eval "$buildPhase"
when building a simple "Hello World C" flake.My flake is pretty much the one from the simple template I think, but here is the shell part if it's of any use:
Help and pointers greatly appreciated.
In case anyone is interested, what isn't working when running
nix build
: Pretty sure the issue is that the translation files do not get copied to the build environment due to thecleanCargoSource
. But I would like to confirm that before just trying, so I can learn something. Thus, I'm trying to get the phases to work, which possible might get me thesrc
if I run unpack(?).Beta Was this translation helpful? Give feedback.
All reactions