mirror of
https://github.com/NixOS/nix
synced 2025-06-25 06:31:14 +02:00
Make config.nix
shims
As requested in https://github.com/NixOS/nix/pull/11792#discussion_r1827034428
This commit is contained in:
parent
e70c9bb06a
commit
f7591bc6ed
56 changed files with 49 additions and 77 deletions
|
@ -343,15 +343,6 @@ count() {
|
|||
echo $#
|
||||
}
|
||||
|
||||
# Sometimes, e.g. due to pure eval, restricted eval, or sandboxing, we
|
||||
# cannot look up `config.nix` in the build dir, and have to instead get
|
||||
# it from the current directory. (In this case, the current directly
|
||||
# will be somewhere in `$TEST_ROOT`.)
|
||||
removeBuildDirRef() {
|
||||
# shellcheck disable=SC2016 # The ${} in this is Nix, not shell
|
||||
sed -i -e 's,"${builtins.getEnv "_NIX_TEST_BUILD_DIR"}/[^ ]*config.nix",./config.nix,' "$@"
|
||||
}
|
||||
|
||||
trap onError ERR
|
||||
|
||||
fi # COMMON_FUNCTIONS_SH_SOURCED
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue