-
Notifications
You must be signed in to change notification settings - Fork 72
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
Cannot nixpkgs.callPackage the default.nix #32
Comments
The There are two types of
In other words, you should be able to just remove |
@Radvendii Hi. I'm glad I've found your comment. I had the same issues as OP. However when I apply your suggestion I get another error:
I had to remove |
After playing with repl I'm even more confused: https://discourse.nixos.org/t/different-result-on-import-path-default-nix-in-flake-nix-vs-repl/19997 - I'm able to get the derivation in |
I think it is breaking because Edit: I was right! Here is the workaround that worked for me: rustshop/rustshop@26824e3 |
In case it helps someone else, I ran into both of the error messages in this thread trying to figure out how to use the default flake output in a normal lilgit = (builtins.getFlake (toString ./.)).packages.${builtins.currentSystem}.default; |
Thanks so much for helping with this
worked perfectly! I'm new to nix so I don't know what's obvious to others, but adding that I had gotten it to work via Do you think it'd be worth adding this secondary usage syntax to the readme more prominently |
I put
in my default.nix and also
in my flake.nix. But when I try putting this in my configuration.nix
and doing
sudo nixos-rebuild switch
I get the following error:nix-build
works fine. But callPackage does not work. How can I fix this?The text was updated successfully, but these errors were encountered: