Zhaofeng Li
3af3751d8e
apply: Default to the "boot" goal if --reboot is passed
...
Fixes #113 .
2022-09-01 18:42:37 -06:00
Zhaofeng Li
e7356e2c5c
.github: Upgrade runner to macOS 12
2022-08-28 00:45:23 -06:00
Zhaofeng Li
e740a50b73
nix/assets: Use more descriptive prefix for temp dir
2022-08-28 00:45:23 -06:00
Zhaofeng Li
1a97f8d207
manual/release-notes: Update 0.3.1 release date
...
It's a month late :/
2022-08-28 00:45:23 -06:00
Zhaofeng Li
9d1beeadb3
manual: Add 0.3.1 release notes
2022-08-28 00:45:23 -06:00
Zhaofeng Li
3fbc5eeb11
repl: Add arguments depending on Nix version
2022-08-17 11:56:30 -06:00
Zhaofeng Li
741d5c4fbb
repl: Use a temporary file for the expression
...
This makes it compatible with Nix 2.3+.
2022-08-17 11:56:30 -06:00
Zhaofeng Li
797297b609
integration-tests/flakes: Check pure evaluation
2022-08-17 01:09:43 -06:00
Zhaofeng Li
4cdb21be0b
integration-tests/flakes: Eliminate slow nixpkgs copy
2022-08-17 01:09:43 -06:00
Zhaofeng Li
7aa1607a3c
nix_eval_jobs: Pass the expression on the command line
...
This gets rid of the temporary file.
2022-08-17 01:09:43 -06:00
Zhaofeng Li
976849028b
flake.nix: Add patched nix-eval-jobs with pure-eval fixes
2022-08-17 01:09:43 -06:00
Zhaofeng Li
06168dabf3
nix_eval_jobs: Remove --impure
...
Note that this still does not make flake evaluation pure in
nix-eval-jobs yet, since it forcibly resets `evalSettings.pureEval`
prior to starting the evaluation.
2022-08-16 20:38:42 -06:00
Zhaofeng Li
c540e00861
Add repl
subcommand
...
Fixes #115 .
2022-08-16 20:16:00 -06:00
Zhaofeng Li
11add6501e
exec: Set label width in output
2022-08-16 20:16:00 -06:00
Zhaofeng Li
247d5754db
integration-tests/flakes: Fix impure use of <nixpkgs>
...
Caught by pure eval :)
2022-08-16 20:16:00 -06:00
Zhaofeng Li
80426aa814
cli: Support passing --impure
2022-08-16 20:16:00 -06:00
Zhaofeng Li
8aca525788
Make flake evaluation pure
...
This seems to be the easiest way to get pure-eval working with
existing evaluation mechinery (nix-instantiate, nix-eval-jobs).
Now `--pure-eval` is forced for flakes with user being able to
add `--impure` as needed.
2022-08-16 20:16:00 -06:00
Zhaofeng Li
092e5848ab
Directly serialize Nix expressions as quoted strings
2022-08-16 20:16:00 -06:00
Zhaofeng Li
271d9ae576
nix/assets: Make assets a flake
...
Groundwork to make flake evaluation pure. `pure-eval` works when
the git workspace is clean.
2022-08-16 20:16:00 -06:00
Zhaofeng Li
a98d1f8963
nix/flake: Always resolve flake metadata
2022-08-16 20:16:00 -06:00
Zhaofeng Li
5e76e8ab26
.github: Restructure workflows
2022-08-16 20:16:00 -06:00
Zhaofeng Li
c99a8246c2
.github/manual: Remove github-pages-deploy-action for now
...
Does not work well with `matrix` et al which causes the actual
job name to change.
2022-08-16 20:16:00 -06:00
Zhaofeng Li
49eacdc31f
flake.nix: Add cargo-audit to devShell
2022-08-16 20:16:00 -06:00
Zhaofeng Li
81bda9d595
Update deps
2022-08-16 20:16:00 -06:00
Zhaofeng Li
63a981a6cb
flake.lock: Update
2022-08-16 20:16:00 -06:00
Zhaofeng Li
68d0036a2c
Thanks clippy
2022-08-16 20:16:00 -06:00
Zhaofeng Li
34bb2e4674
.github/linters: Add rustfmt check
2022-07-29 22:13:09 -07:00
Zhaofeng Li
62a3d1e6f8
Run rustfmt
2022-07-29 22:13:09 -07:00
Zhaofeng Li
e82993a83e
.github/manual: Fix github-pages-deploy-action version tag
2022-07-29 22:13:09 -07:00
Zhaofeng Li
5d2f128515
.github: Bump versions
2022-07-17 14:42:34 -07:00
Zhaofeng Li
7d0a6eed90
Apply quit::main to main function
...
This makes `quit::with_code` actually work with the correct exit code.
Fixes #111 .
2022-07-17 14:42:34 -07:00
Zhaofeng Li
16381e9213
.envrc: Bump bundled nix-direnv to 2.1.1
2022-07-17 14:42:34 -07:00
Zhaofeng Li
07efd5818d
Merge pull request #89 from blaggacao/ref/reduce-eval-nix-interface
...
ref/reduce eval nix interface
2022-07-13 08:45:43 +00:00
David Arnold
b3ca4b1c4d
ref: transparent eval.nix contract
...
- at least to my eyes, this code formatting gives a better view about
the gist of the eval.nix interface
2022-07-09 16:04:23 -05:00
David Arnold
e309b2d4b2
ref: reduce eval.nix contract even further
...
- meta and evalAll contracts are found to be not consumed
2022-07-09 15:41:17 -05:00
David Arnold
83a919bdb0
ref: reduce eval.nix contract forther
...
- module export contratcts can now bypass the eval.nix iface
- enabled by:9bd5e7bb2540664fe1c728c85f80375fe0cbf9fa
2022-07-09 15:41:17 -05:00
David Arnold
c82517fc12
ref: reduce eval.nix contract
...
- documentation contratcts can now bypass the eval.nix iface
- enabled by:9bd5e7bb2540664fe1c728c85f80375fe0cbf9fa
2022-07-09 15:41:15 -05:00
Zhaofeng Li
b8bdf5824c
hive: Use absolute paths for non-flake hives
...
Fixes #107 .
2022-07-04 14:05:50 -07:00
Zhaofeng Li
fbf25faa24
.github: Don't build manual on macOS
...
The following doesn't build on macOS:
```nix
pkgs.python3Minimal.override {
inherit self;
includeSiteCustomize = true;
}
```
Same error as in
<https://github.com/NixOS/nixpkgs/issues/101229#issuecomment-1086295309 >.
2022-07-01 17:41:09 -07:00
Zhaofeng Li
926d6a395b
manual/release-notes: Add issue link to allowApplyAll entry
2022-07-01 16:31:13 -07:00
Zhaofeng Li
005bfba5e2
manual/release-notes: Mention nodeSpecialArgs
2022-07-01 16:31:13 -07:00
Zhaofeng Li
ed89d02c1c
Cargo.toml: Use Rust 2021 edition
2022-07-01 16:31:13 -07:00
Zhaofeng Li
bde5f4878e
Bump flake deps
...
Stable is now at 22.05 as 21.11 is becoming EOL.
2022-07-01 16:31:13 -07:00
Zhaofeng Li
ea1e7684f1
hive: Add tests for nodeSpecialArgs
2022-07-01 16:31:13 -07:00
Zhaofeng Li
1b045eb38d
Merge pull request #100 from fooker/pr/specialArgs
...
eval.nix: per-node specialArgs
2022-07-01 16:29:59 -07:00
NeverBehave
dfe55ed461
fix: rename no-substitutes -> no-substitute
...
Fixes #59 .
2022-07-01 16:06:01 -07:00
Zhaofeng Li
432d4212fc
apply: Don't enforce meta.allowApplyAll
for builds
...
Fixes #99 .
2022-06-24 17:34:37 -07:00
Zhaofeng Li
0209b6dc40
Add name of key to key upload errors
...
> example | Key upload failed: Error processing key "meow": I/O Error: No such file or directory (os error 2)
Fixes #101 .
2022-06-24 17:34:37 -07:00
Zhaofeng Li
d37270f292
Apply flake8 to manual preprocessor
2022-06-24 17:34:37 -07:00
Dustin Frisch
07499a1eaf
eval.nix: per-node specialArgs
2022-06-23 12:09:29 +02:00