lix/src
Eelco Dolstra 3c54e9ba01 Add 'nix flake archive' command
This copies a flake and all its inputs recursively to a store (e.g. a
binary cache). This is intended to enable long-term reproducibility
for flakes. However this will also require #3253.

Example:

  $ nix flake archive --json --to file:///tmp/my-cache nixops
  {"path":"/nix/store/272igzkgl1gdzmabsjvb2kb2zqbphb3p-source","inputs":{"nixops-aws":{"path":"/nix/store/ybcykw13gr7iq1pzg18iyibbcv8k9q1v-source","inputs":{}},"nixops-hetzner":{"path":"/nix/store/6yn0205x3nz55w8ms3335p2841javz2d-source","inputs":{}},"nixpkgs":{"path":"/nix/store/li3lkr2ajrzphqqz3jj2avndnyd3i5lc-source","inputs":{}}}}

  $ ll /tmp/my-cache
  total 16
  -rw-r--r-- 1 eelco users 403 Jan 30 01:01 272igzkgl1gdzmabsjvb2kb2zqbphb3p.narinfo
  -rw-r--r-- 1 eelco users 403 Jan 30 01:01 6yn0205x3nz55w8ms3335p2841javz2d.narinfo
  -rw-r--r-- 1 eelco users 408 Jan 30 01:01 li3lkr2ajrzphqqz3jj2avndnyd3i5lc.narinfo
  drwxr-xr-x 2 eelco users   6 Jan 30 01:01 nar
  -rw-r--r-- 1 eelco users  21 Jan 30 01:01 nix-cache-info
  -rw-r--r-- 1 eelco users 404 Jan 30 01:01 ybcykw13gr7iq1pzg18iyibbcv8k9q1v.narinfo

Fixes #3336.
2020-01-30 01:00:34 +01:00
..
build-remote Make the Store API more type-safe 2019-12-10 22:06:05 +01:00
cpptoml bump cpptoml to v0.1.1 2019-05-29 17:01:39 +08:00
libexpr Check LockedInput::computeStorePath() 2020-01-30 00:13:37 +01:00
libmain Make the Store API more type-safe 2019-12-10 22:06:05 +01:00
libstore Fix flake update check 2020-01-29 23:14:23 +01:00
libutil Pluggable fetchers 2020-01-21 22:56:04 +01:00
nix Add 'nix flake archive' command 2020-01-30 01:00:34 +01:00
nix-build nix-shell: don't check for "nix-shell" in shebang script name 2019-12-14 15:37:20 +00:00
nix-channel Make the Store API more type-safe 2019-12-10 22:06:05 +01:00
nix-collect-garbage Merge all nix-* binaries into nix 2018-10-26 12:54:00 +02:00
nix-copy-closure Make the Store API more type-safe 2019-12-10 22:06:05 +01:00
nix-daemon Make the Store API more type-safe 2019-12-10 22:06:05 +01:00
nix-env Merge remote-tracking branch 'origin/master' into flakes 2019-12-11 14:53:30 +01:00
nix-instantiate Make the Store API more type-safe 2019-12-10 22:06:05 +01:00
nix-prefetch-url build: fix sandboxing on darwin 2020-01-05 20:23:52 +01:00
nix-store nix-store -r: Handle symlinks to store paths 2019-12-16 19:11:47 +01:00
resolve-system-dependencies Make the Store API more type-safe 2019-12-10 22:06:05 +01:00