mirror of
https://github.com/NixOS/nix
synced 2025-07-08 06:53:54 +02:00
Allow fixed-output derivations to depend on (floating) content-addressed ones
Fix an overlook of https://github.com/NixOS/nix/pull/4056
This commit is contained in:
parent
13c557fe82
commit
9bd8184f1f
3 changed files with 14 additions and 2 deletions
|
@ -63,4 +63,15 @@ rec {
|
|||
echo ${rootCA}/non-ca-hello > $out/dep
|
||||
'';
|
||||
};
|
||||
dependentFixedOutput = mkDerivation {
|
||||
name = "dependent-fixed-output";
|
||||
outputHashMode = "recursive";
|
||||
outputHashAlgo = "sha256";
|
||||
outputHash = "sha256-QvtAMbUl/uvi+LCObmqOhvNOapHdA2raiI4xG5zI5pA=";
|
||||
buildCommand = ''
|
||||
cat ${dependentCA}/dep
|
||||
echo foo > $out
|
||||
'';
|
||||
|
||||
};
|
||||
}
|
||||
|
|
|
@ -40,6 +40,7 @@ testCutoff () {
|
|||
#testDerivation dependentCA
|
||||
testCutoffFor transitivelyDependentCA
|
||||
testCutoffFor dependentNonCA
|
||||
testCutoffFor dependentFixedOutput
|
||||
}
|
||||
|
||||
testGC () {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue