If copySourceTreeToStore is false, don't copy inputs of type path to store #79
No reviewers
Labels
No labels
bug
documentation
duplicate
enhancement
good first issue
help wanted
invalid
question
wontfix
No milestone
No project
No assignees
2 participants
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
lix-project/flake-compat!79
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "lillecarl/flake-compat:evalPathTypeFromFS"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
If you configure
and set copySourceTreeToStore to false we evaluate inputs with type "path" from filesystem
instead of running it through a fetcher and evaluate from store.
Should make hacking on nixpkgs easy with flake-compat
NOTE: I've tested that inputs.nixpkgs.outPath is a filesystem path and modulesPath is a filesystem path. However on my system it seems I still copy nixpkgs somewhere in my convoluted setup. (Help appreciated 😄)
(I've set nixpkgs.flake.source = null, nix.channel.enable = false; and nix.registry = {};)
Feedback would be appreciated! 😄
If copySourceTreeToStore is false, don't copy inputs of type path to storeto WIP: If copySourceTreeToStore is false, don't copy inputs of type path to storeWIP: If copySourceTreeToStore is false, don't copy inputs of type path to storeto If copySourceTreeToStore is false, don't copy inputs of type path to storeOops! Sorry that I missed this PR.
Could you write a test for this behaviour? The test framework should let you write such a thing with a generated flake.nix with an inserted path.
Probably the easiest way to test this is to make the imported flake return
builtins.toString ./.and determine whether that's a store path.7bb742d1f5toa2a447189ba2a447189btoc1e5a702fdc1e5a702fdto86e8569136@jade Turned out to be easier than expected, you've done some good plumbing there. Feel free to refactor the tests into one if you want but let's get this shipping! 😄
86e8569136to83acc2af80I have fixed the tests for this, they were missing a
nix flake lockand were running into a lockless flake bug (#81).Thanks! 😄