Eelco Dolstra
93ad6430ed
nix store prefetch-tarball -> nix flake prefetch
2021-01-11 12:36:39 +01:00
Eelco Dolstra
7480f2bf20
Merge pull request #4435 from DanilaFe/flake-input-types
...
Allow Flake inputs to accept boolean and integer attributes
2021-01-11 11:38:53 +01:00
Eelco Dolstra
fdcd62eec5
Add 'nix store gc' command
2021-01-10 23:29:14 +01:00
Danila
1db3f84bac
Upcase "Boolean" in Flake attribute type error
...
Co-authored-by: Eelco Dolstra <edolstra@gmail.com>
2021-01-08 16:12:21 -08:00
Eelco Dolstra
e21aee58f6
Fix tests
2021-01-08 14:17:06 +01:00
Eelco Dolstra
17beae299d
Support binary unit prefixes in command line arguments
2021-01-08 12:51:19 +01:00
Eelco Dolstra
6548b89cc4
string2Int(): Return std::optional
2021-01-08 12:22:21 +01:00
Eelco Dolstra
29a445840a
Remove unused mkFlag1
2021-01-08 11:42:44 +01:00
Eelco Dolstra
1d4954e73e
Remove mkFlag integer specialisation
2021-01-08 11:40:36 +01:00
Eelco Dolstra
48a9be2aab
Remove mkIntFlag
2021-01-08 10:44:55 +01:00
Danila Fedorin
ba0f841a07
Use switch statement instead of sequence of ifs
2021-01-08 03:13:42 +00:00
Danila Fedorin
93f1678ec6
Allow Flake inputs to accept boolean and integer attributes
...
I believe that this makes it possible to do things like
Git inputs with submodules, but it also likely applies
to other input types from libfetchers.
2021-01-08 01:53:57 +00:00
Eelco Dolstra
0813350349
Add 'nix store prefetch-{file,tarball}'
...
These replace nix-prefetch-url and nix-prefetch-url --unpack,
respectively.
2021-01-07 21:51:46 +01:00
Eelco Dolstra
0df69d96e0
Make sodium a required dependency
2021-01-06 17:56:53 +01:00
Eelco Dolstra
9374c2baea
Add commands for generating secret/public keys
2021-01-06 17:49:31 +01:00
Eelco Dolstra
555152ffe8
crypto.cc: API cleanup and add generate() / to_string() methods
2021-01-06 17:04:46 +01:00
Eelco Dolstra
146af4ee9b
Move sodium_init() call
2021-01-06 16:43:09 +01:00
Eelco Dolstra
3edcb198e5
Merge pull request #4310 from matthewbauer/rosetta2-extra-platforms
...
Add x86_64-darwin and aarch64 to "extra-platforms" automatically when Rosetta2 is detected
2021-01-06 11:31:13 +01:00
Eelco Dolstra
1af0a165d4
nix build: Add outro message
2021-01-05 12:00:23 +01:00
Eelco Dolstra
491ba8d1c4
Log fast builds/substitutions with a lower priority
2021-01-05 12:00:23 +01:00
Eelco Dolstra
101b15663b
Log build/substitution finishes
2021-01-05 12:00:23 +01:00
Eelco Dolstra
846c028609
Fix prompting
2021-01-05 12:00:23 +01:00
Eelco Dolstra
07ba1eb67e
Progress bar: Handle verify
2021-01-05 12:00:23 +01:00
Eelco Dolstra
2f512dd29f
Move actEvaluate so it doesn't include actLockFlake
2021-01-05 12:00:23 +01:00
Eelco Dolstra
e6ca275e23
Show queryMissing() in the progress bar
2021-01-05 12:00:23 +01:00
Eelco Dolstra
562a6d2361
Spinner
2021-01-05 12:00:23 +01:00
Eelco Dolstra
966256c507
Show flake lock file updating in the progress bar
2021-01-05 12:00:23 +01:00
Eelco Dolstra
ed80589a07
Progress bar: Add a key to show what paths remain to be built/substituted
2021-01-05 12:00:23 +01:00
Eelco Dolstra
2392688a2d
Move method
2021-01-05 12:00:23 +01:00
Eelco Dolstra
4979bd468a
Replace LogFormat::barWithLogs with a setting
...
This will make it easier to add more settings to the progress bar.
2021-01-05 12:00:23 +01:00
Eelco Dolstra
99bb7aaf80
Fix resetting the terminal with '-L'
...
Using '-L' caused another call to setLogFormat(), which caused another
ProgressBar to be created. But the ProgressBar should be a singleton.
To do: remove LogFormat::barWithLogs. '-L' should be a setting of the
ProgressBar, not a different log format.
2021-01-05 12:00:23 +01:00
Eelco Dolstra
29ada5105b
Disable the progress bar if stdout is redirected
2021-01-05 12:00:23 +01:00
Eelco Dolstra
4b711bf3ce
Fix crash, tweaks
2021-01-05 12:00:23 +01:00
Eelco Dolstra
f90b12098d
Show downloads
2021-01-05 12:00:23 +01:00
Eelco Dolstra
208425bd12
Show duration of running builds
2021-01-05 12:00:23 +01:00
Eelco Dolstra
256d6427fa
Put builds/substitutes under the right progress bar
2021-01-05 12:00:23 +01:00
Eelco Dolstra
83f47e7fb1
Show failure / evaluation
2021-01-05 12:00:23 +01:00
Eelco Dolstra
dc0bac99dd
Add activity for evaluation
2021-01-05 12:00:23 +01:00
Eelco Dolstra
8f92b7f0a1
Style change
2021-01-05 12:00:23 +01:00
Eelco Dolstra
55d3bdd8f0
Cleanup
2021-01-05 12:00:23 +01:00
Eelco Dolstra
e314119d14
Doh
2021-01-05 12:00:23 +01:00
Eelco Dolstra
82bbb3a66e
Add separate progress bars for substituting and building
2021-01-05 12:00:23 +01:00
Eelco Dolstra
304715d5f3
Support multi-line status
2021-01-05 12:00:23 +01:00
Eelco Dolstra
2a2df85fbd
Interactive progress bar
...
During a build you can hit 'L' to enable/disable printing of build
logs, 'v' or '+' to increase verbosity, and '-' to decrease verbosity.
2021-01-05 12:00:22 +01:00
Eelco Dolstra
8af4f886e2
Fix deadlock in LocalStore::addSignatures()
...
Fixes #4367 .
2021-01-05 11:47:29 +01:00
Danila Fedorin
988dd0a65f
Fix conversion from JSON to fetch attributes
...
It appears as through the fetch attribute, which
is simply a variant with 3 elements, implicitly
converts boolean arguments to integers. One must
use Explicit<bool> to correctly populate it with
a boolean. This was missing from the implementation,
and resulted in clearly boolean JSON fields being
treated as numbers.
2021-01-05 02:06:25 +00:00
Eelco Dolstra
368a972a38
Merge pull request #4411 from corngood/env-assert-fix
...
Fix insufficent attribute capacity in user profile
2020-12-30 21:47:21 +01:00
David McFarland
d27eb0ef57
Fix insufficent attribute capacity in user profile
2020-12-30 16:20:03 -04:00
Eelco Dolstra
bff706e27c
Merge pull request #4397 from matthewbauer/support-libcxx10
...
Cast variants fully for libc++10
2020-12-30 21:07:09 +01:00
Matthew Bauer
64904b9d5d
Fixup
2020-12-28 19:40:04 -06:00