mirror of
https://github.com/NixOS/nix
synced 2025-07-12 14:55:09 +02:00
Tagging release 2.26.2
-----BEGIN PGP SIGNATURE----- iQFHBAABCAAxFiEEtUHVUwEnDgvPFcpdgXC0cm1xmN4FAmetA5oTHGVkb2xzdHJh QGdtYWlsLmNvbQAKCRCBcLRybXGY3g2pB/9JAFyjmaXuccbMTO/6x9qwsWuuXNLk OQWzfbdUekvsihZZSFZg1r7KqqXHCi64f0nxLPsJ/0oeDWZktJ5KnbV630nuUlDj ulLCpKdvhWFa8dVx9LiziGwQw4KLx8PjOfwThtQ4DqCWxWEmu6lKkijag9cE+ai4 3mw9YtUjBRxlXyhYLzWz3whLbv37c/m+R8iGS8xm8W260pmei6D0beOIPdfXYBQF PzPlPORyI08A06uqyA3z7bTxzmSMnzvu0QInCPCKSHzFUnTZPHUYuYStFl28NrZS fXKK59L0G7QEfdTRAmqQkdHdtPj2RlYFiMN0kQiNLflvKfGGWdi/kvdx =rRix -----END PGP SIGNATURE----- Merge tag '2.26.2' into sync-2.26.2 Tagging release 2.26.2
This commit is contained in:
commit
4055239936
1395 changed files with 24694 additions and 16040 deletions
|
@ -1,40 +1,45 @@
|
|||
{ runCommand, nix, expect }:
|
||||
{
|
||||
runCommand,
|
||||
nix,
|
||||
expect,
|
||||
}:
|
||||
|
||||
# We only use expect when necessary, e.g. for testing tab completion in nix repl.
|
||||
# See also tests/functional/repl.sh
|
||||
|
||||
runCommand "repl-completion" {
|
||||
nativeBuildInputs = [
|
||||
expect
|
||||
nix
|
||||
];
|
||||
expectScript = ''
|
||||
# Regression https://github.com/NixOS/nix/pull/10778
|
||||
spawn nix repl --offline
|
||||
expect "nix-repl>"
|
||||
send "foo = import ./does-not-exist.nix\n"
|
||||
expect "nix-repl>"
|
||||
send "foo.\t"
|
||||
expect {
|
||||
"nix-repl>" {
|
||||
puts "Got another prompt. Good."
|
||||
runCommand "repl-completion"
|
||||
{
|
||||
nativeBuildInputs = [
|
||||
expect
|
||||
nix
|
||||
];
|
||||
expectScript = ''
|
||||
# Regression https://github.com/NixOS/nix/pull/10778
|
||||
spawn nix repl --offline
|
||||
expect "nix-repl>"
|
||||
send "foo = import ./does-not-exist.nix\n"
|
||||
expect "nix-repl>"
|
||||
send "foo.\t"
|
||||
expect {
|
||||
"nix-repl>" {
|
||||
puts "Got another prompt. Good."
|
||||
}
|
||||
eof {
|
||||
puts "Got EOF. Bad."
|
||||
exit 1
|
||||
}
|
||||
}
|
||||
eof {
|
||||
puts "Got EOF. Bad."
|
||||
exit 1
|
||||
}
|
||||
}
|
||||
exit 0
|
||||
'';
|
||||
passAsFile = [ "expectScript" ];
|
||||
}
|
||||
''
|
||||
export NIX_STORE=$TMPDIR/store
|
||||
export NIX_STATE_DIR=$TMPDIR/state
|
||||
export HOME=$TMPDIR/home
|
||||
mkdir $HOME
|
||||
exit 0
|
||||
'';
|
||||
passAsFile = [ "expectScript" ];
|
||||
}
|
||||
''
|
||||
export NIX_STORE=$TMPDIR/store
|
||||
export NIX_STATE_DIR=$TMPDIR/state
|
||||
export HOME=$TMPDIR/home
|
||||
mkdir $HOME
|
||||
|
||||
nix-store --init
|
||||
expect $expectScriptPath
|
||||
touch $out
|
||||
''
|
||||
nix-store --init
|
||||
expect $expectScriptPath
|
||||
touch $out
|
||||
''
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue