mirror of
https://github.com/NixOS/nix.git
synced 2024-11-22 23:02:27 +00:00
Test string semantics a bit more
This commit is contained in:
parent
d7625b5c2d
commit
b08f4b0da9
@ -1,3 +1,6 @@
|
|||||||
|
[ "${input1: -2}" = /. ]
|
||||||
|
[ "${input2: -2}" = /. ]
|
||||||
|
|
||||||
mkdir $out
|
mkdir $out
|
||||||
echo $(cat $input1/foo)$(cat $input2/bar) > $out/foobar
|
echo $(cat $input1/foo)$(cat $input2/bar) > $out/foobar
|
||||||
|
|
||||||
|
@ -9,14 +9,14 @@ let {
|
|||||||
|
|
||||||
input2 = mkDerivation {
|
input2 = mkDerivation {
|
||||||
name = "dependencies-input-2";
|
name = "dependencies-input-2";
|
||||||
builder = ./dependencies.builder2.sh;
|
builder = "${./dependencies.builder2.sh}";
|
||||||
};
|
};
|
||||||
|
|
||||||
body = mkDerivation {
|
body = mkDerivation {
|
||||||
name = "dependencies";
|
name = "dependencies";
|
||||||
builder = ./dependencies.builder0.sh + "/FOOBAR/../.";
|
builder = ./dependencies.builder0.sh + "/FOOBAR/../.";
|
||||||
input1 = input1 + "/.";
|
input1 = input1 + "/.";
|
||||||
inherit input2;
|
input2 = "${input2}/.";
|
||||||
meta.description = "Random test package";
|
meta.description = "Random test package";
|
||||||
};
|
};
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user