tami5
March 16, 2021, 6:09pm
1
Hi there, I’ve been having issues with switching my build with flake. It just stopped working for me and I couldn’t not solve it
Basically running this command does nothing, shows newline and that’s it.
nix-shell -p nixUnstable --command "nix build --experimental-features 'nix-command flakes --show-trace' '.#desktop'"
Any ideas to debug this. Thanks
Is your current nix
from nixUnstable
or from nixStable
? By “does nothing”, did you check perhaps whether a result
symlink was created in the directory you ran the command?
tami5
March 17, 2021, 2:38am
3
doronbehar:
nixUnstable
My current nix is from nixUnstable
, here’s my nix config https://gist.github.com/tami5/83e142a65d32e0690ada4fce6dc544e6 .
No, it doesn’t create that directory any more.
tami5
March 17, 2021, 3:44am
4
It is fixed now, there was an issue with some package failing to build
If you want to see why a package fails to build, you can use nix build --print-build-logs
(or -L
) which is not document (see this issue ).
I’m also wondering why do you use nix-shell
if your nix
is supposed to be the nix
from nixUnstable
- why not use nix build
directly?