nix develop: Add a test for arrays
This commit is contained in:
parent
d2b8b23ae9
commit
b1cfe8f984
|
@ -98,3 +98,4 @@ nix_develop -f shell.nix shellDrv -c echo foo |& grep -q foo
|
|||
# Test 'nix print-dev-env'.
|
||||
source <(nix print-dev-env -f shell.nix shellDrv)
|
||||
[[ -n $stdenv ]]
|
||||
[[ ${arr1[2]} = "3 4" ]]
|
||||
|
|
|
@ -20,6 +20,7 @@ let pkgs = rec {
|
|||
for pkg in $buildInputs; do
|
||||
export PATH=$PATH:$pkg/bin
|
||||
done
|
||||
declare -a arr1=(1 2 "3 4" 5)
|
||||
'';
|
||||
|
||||
stdenv = mkDerivation {
|
||||
|
|
Loading…
Reference in a new issue