Test string semantics a bit more

This commit is contained in:
Eelco Dolstra 2013-10-17 01:12:43 +02:00
parent d7625b5c2d
commit b08f4b0da9
2 changed files with 6 additions and 3 deletions

View file

@ -1,3 +1,6 @@
[ "${input1: -2}" = /. ]
[ "${input2: -2}" = /. ]
mkdir $out
echo $(cat $input1/foo)$(cat $input2/bar) > $out/foobar

View file

@ -9,14 +9,14 @@ let {
input2 = mkDerivation {
name = "dependencies-input-2";
builder = ./dependencies.builder2.sh;
builder = "${./dependencies.builder2.sh}";
};
body = mkDerivation {
name = "dependencies";
builder = ./dependencies.builder0.sh + "/FOOBAR/../.";
input1 = input1 + "/.";
inherit input2;
input2 = "${input2}/.";
meta.description = "Random test package";
};