-
Notifications
You must be signed in to change notification settings - Fork 49
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
generateNixPathFromInputs
should check for default.nix
file instead of for package set
#107
Comments
I hacked this together myself, and I can confirm that |
Yeah, good point. Will implement it this weekend |
I think it's fixed by #105? |
nix.generateNixPathFromInputs
only adds inputs toNIX_PATH
if they have apackages
orlegacyPackages
output. This is a rather curious restriction, as the existence of such a package set does not prove that the flake source can be imported directly. It also means that flakes that can be imported, such as nix-darwin, don't end up inNIX_PATH
as they don't have a package set.Instead of testing for the package set, it should check if the flake has a
default.nix
file. Unfortunately I don't think Nix lets you test if a file exists, so this might require using an activation script instead ofconfig.environment.etc
. Though perhaps settingenvironment.etc."nix/input".source
to a derivation whoseoutPath
is a directory of symlinks might work? That way the derivation build script can test the inputs for adefault.nix
.The text was updated successfully, but these errors were encountered: