Project import generated by Copybara.
GitOrigin-RevId: 5bb20f9dc70e9ee16e21cc404b6508654931ce41
This commit is contained in:
parent
4d2dc97f77
commit
07fdb608f7
1 changed files with 2 additions and 1 deletions
|
@ -69,7 +69,8 @@ let
|
|||
set -e
|
||||
set +o pipefail
|
||||
NIX_CONF_DIR=$PWD \
|
||||
${cfg.package}/bin/nix show-config ${optionalString (isNixAtLeast "2.3pre") "--no-net --option experimental-features nix-command"} \
|
||||
${cfg.package}/bin/nix show-config ${optionalString (isNixAtLeast "2.3pre") "--no-net"} \
|
||||
${optionalString (isNixAtLeast "2.4pre") "--option experimental-features nix-command"} \
|
||||
|& sed -e 's/^warning:/error:/' \
|
||||
| (! grep '${if cfg.checkConfig then "^error:" else "^error: unknown setting"}')
|
||||
set -o pipefail
|
||||
|
|
Loading…
Reference in a new issue