nix develop: Add a test for arrays

This commit is contained in:
Eelco Dolstra 2021-07-08 17:12:01 +02:00
parent d2b8b23ae9
commit b1cfe8f984
2 changed files with 2 additions and 0 deletions

View file

@ -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" ]]

View file

@ -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 {