aboutsummaryrefslogtreecommitdiff
path: root/tests/hash-check.nix
diff options
context:
space:
mode:
Diffstat (limited to 'tests/hash-check.nix')
-rw-r--r--tests/hash-check.nix29
1 files changed, 29 insertions, 0 deletions
diff --git a/tests/hash-check.nix b/tests/hash-check.nix
new file mode 100644
index 000000000..bbe4fe247
--- /dev/null
+++ b/tests/hash-check.nix
@@ -0,0 +1,29 @@
+let {
+
+ input1 = derivation {
+ name = "dependencies-input-1";
+ system = "i086-msdos";
+ builder = "/bar/sh";
+ args = ["-e" "-x" ./dependencies.builder1.sh];
+ };
+
+ input2 = derivation {
+ name = "dependencies-input-2";
+ system = "i086-msdos";
+ builder = "/bar/sh";
+ args = ["-e" "-x" ./dependencies.builder2.sh];
+ outputHashMode = "recursive";
+ outputHashAlgo = "md5";
+ outputHash = "ffffffffffffffffffffffffffffffff";
+ };
+
+ body = derivation {
+ name = "dependencies";
+ system = "i086-msdos";
+ builder = "/bar/sh";
+ args = ["-e" "-x" (./dependencies.builder0.sh + "/FOOBAR/../.")];
+ input1 = input1 + "/.";
+ inherit input2;
+ };
+
+} \ No newline at end of file