mirror of
https://github.com/NixOS/nix
synced 2025-07-07 18:31:49 +02:00
Test derivation options with content-addressing too
Now, both the unit and functional tests relating to derivation options
are tested both ways -- with input addressing and content-addressing
derivations.
(cherry picked from commit 307dbe9914
)
This commit is contained in:
parent
37bcd29e5f
commit
f19184191e
37 changed files with 560 additions and 94 deletions
|
@ -1,6 +1,24 @@
|
|||
derivation {
|
||||
name = "advanced-attributes-structured-attrs-defaults";
|
||||
{ contentAddress }:
|
||||
|
||||
let
|
||||
caArgs =
|
||||
if contentAddress then
|
||||
{
|
||||
__contentAddressed = true;
|
||||
outputHashMode = "recursive";
|
||||
outputHashAlgo = "sha256";
|
||||
}
|
||||
else
|
||||
{ };
|
||||
|
||||
derivation' = args: derivation (caArgs // args);
|
||||
|
||||
system = "my-system";
|
||||
|
||||
in
|
||||
derivation' {
|
||||
inherit system;
|
||||
name = "advanced-attributes-structured-attrs-defaults";
|
||||
builder = "/bin/bash";
|
||||
args = [
|
||||
"-c"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue