-
-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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
How do I create static caches using nix 2.0 in the same way nix-push did? #2123
Comments
Note the EDIT: This doesn't answer the "sign on the fly" part of the question. Do you actually have a reason not to keep the signatures in the store? |
It would probably be nice if |
You can do the signing in the
Note that I added EDIT: Fixed code |
Adding this here for discoverability. (This confused me a lot.) The "file://" part of "nix copy --to file:// ..." is very important. Without it you get this
(Signing the path doesn't help.) |
Latest Nix (still) does not run in constant memory for file:// binary caches, ref #2774. This forces me to use nix-1.x to create binary caches at work. |
I marked this as stale due to inactivity. → More info |
I closed this issue due to inactivity. → More info |
Previously, I used a command like:
to push a derivation and its dependencies to a temp directory, which I then synced to AWS S3.
While the docs say "The command nix-push has been removed as part of the effort to eliminate Nix's dependency on Perl. You can use nix copy instead, e.g. nix copy --to file:///tmp/my-binary-cache paths…", I haven't been able to determine how to do this (after asking on #nixos).
How can I reproduce the original functionality of nix-push? In particular, the things that seem different are:
The text was updated successfully, but these errors were encountered: