forked from lix-project/lix
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'.
|
# Test 'nix print-dev-env'.
|
||||||
source <(nix print-dev-env -f shell.nix shellDrv)
|
source <(nix print-dev-env -f shell.nix shellDrv)
|
||||||
[[ -n $stdenv ]]
|
[[ -n $stdenv ]]
|
||||||
|
[[ ${arr1[2]} = "3 4" ]]
|
||||||
|
|
|
@ -20,6 +20,7 @@ let pkgs = rec {
|
||||||
for pkg in $buildInputs; do
|
for pkg in $buildInputs; do
|
||||||
export PATH=$PATH:$pkg/bin
|
export PATH=$PATH:$pkg/bin
|
||||||
done
|
done
|
||||||
|
declare -a arr1=(1 2 "3 4" 5)
|
||||||
'';
|
'';
|
||||||
|
|
||||||
stdenv = mkDerivation {
|
stdenv = mkDerivation {
|
||||||
|
|
Loading…
Reference in a new issue