Quickly add a non-leaf path to the nix store #555
Labels
No labels
Area/build-packaging
Area/cli
Area/evaluator
Area/fetching
Area/flakes
Area/language
Area/profiles
Area/protocol
Area/releng
Area/remote-builds
Area/repl
Area/store
bug
Cross Compilation
devx
docs
Downstream Dependents
E/easy
E/hard
E/help wanted
E/reproducible
E/requires rearchitecture
imported
Needs Langver
OS/Linux
OS/macOS
performance
regression
release-blocker
RFD
stability
Status
blocked
Status
invalid
Status
postponed
Status
wontfix
testing
testing/flakey
ux
No milestone
No project
No assignees
2 participants
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: lix-project/lix#555
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
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?
Is your feature request related to a problem? Please describe.
I am the developer of nix-inst. one of the primary goals of the project is performance, however, there is a major bottleneck:
the only way to create a store object that contains references to other store objects is to build a derivation.
simply using
nix-store --add
with a directory containing symlinks to the nix store will not work correctly with garbage collection.Describe the solution you'd like
A
nix-store
flag that makes--add
recurse into the directory and look for symlinks to store pathsDescribe alternatives you've considered
change the default behavior of
nix-store
, add a new subcommand, or gate this feature behind the new cli.Additional context
this would allow me to nearly double the performance of nix-inst on lix systems.
you are looking for
nix-store --import
. you will have to create the format it expects manually because we have no writers for it, and considering that the thing we think you are asking for (scanning any directory for references and adding those as dependencies) is fundamentally unsound that's about as good as it gets.