summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorregnat <rg@regnat.ovh>2020-11-25 11:20:03 +0100
committerregnat <rg@regnat.ovh>2020-11-25 11:33:00 +0100
commit13c557fe823549db75c3dc24c99c46e1c4e1378e (patch)
tree46bd9a929ef711743d9e6e23f87dc1017e83fb56 /tests
parent605bacdc929db4d820b8d5866450de7d1ec6e6cf (diff)
fix the hash rewriting for ca-derivations
Diffstat (limited to 'tests')
-rw-r--r--tests/content-addressed.nix9
1 files changed, 6 insertions, 3 deletions
diff --git a/tests/content-addressed.nix b/tests/content-addressed.nix
index 8ca96d4bf..985220f48 100644
--- a/tests/content-addressed.nix
+++ b/tests/content-addressed.nix
@@ -16,14 +16,16 @@ rec {
};
rootCA = mkDerivation {
name = "rootCA";
- outputs = [ "out" "dev" ];
+ outputs = [ "out" "dev" "foo"];
buildCommand = ''
echo "building a CA derivation"
echo "The seed is ${toString seed}"
mkdir -p $out
echo ${rootLegacy}/hello > $out/dep
- # test symlink at root
+ ln -s $out $out/self
+ # test symlinks at root
ln -s $out $dev
+ ln -s $out $foo
'';
__contentAddressed = true;
outputHashMode = "recursive";
@@ -34,7 +36,8 @@ rec {
buildCommand = ''
echo "building a dependent derivation"
mkdir -p $out
- echo ${rootCA}/hello > $out/dep
+ cat ${rootCA}/self/dep
+ echo ${rootCA}/self/dep > $out/dep
'';
__contentAddressed = true;
outputHashMode = "recursive";