You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This follows the same search rules as the nix build cli, namely that the library will consider the first valid values within:
- InputPath
- "packages".system.InputPath
- "legacyPackages".system.InputPath
The text was updated successfully, but these errors were encountered:
Mh, I see how that comment can be misleading (and the error message a bit too, although that should be fixed by 7e6c7f8).
The search rules are a purely Nix-language level thing, they don't interact with the command-line – and .#foo only makes sense at the command-line. The current flake is referred to as self in the language — so you want organist.import_nix "self#foo".
I'll try to improve the wording to make this more explicit
Say you have a flake output called
foo
, such that the following works:I would expect
organist.import_nix ".#foo"
, say in aproject.ncl
, to evaluate to a Nix path. Actual:This is despite the fact that https://github.com/nickel-lang/organist/blob/main/lib/nix-interop/derivation.ncl#L258-L262 claims:
The text was updated successfully, but these errors were encountered: