1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
error:
       … while calling the 'getAttr' builtin
         at «internal»:1:500:
       … while evaluating the second argument passed to builtins.getAttr

       … while calling the 'derivationStrict' builtin
         at «internal»:1:208:
       … while evaluating derivation 'package-you-care-about'
         whose name attribute is located at /pwd/in.nix:22:5
         at /pwd/in.nix:22:5:
           21|   package-you-care-about = derivation {
           22|     name = "package-you-care-about";
             |     ^
           23|     __structuredAttrs = true;

       … while evaluating attribute 'buildInputs' of derivation 'package-you-care-about'
         at /pwd/in.nix:25:5:
           24|
           25|     buildInputs = [
             |     ^
           26|       direct-dependency

       … while evaluating list element at index 0

       … while calling the 'getAttr' builtin
         at «internal»:1:500:
       … while evaluating the second argument passed to builtins.getAttr

       … while calling the 'derivationStrict' builtin
         at «internal»:1:208:
       … while evaluating derivation 'direct-dependency'
         whose name attribute is located at /pwd/in.nix:15:5
         at /pwd/in.nix:15:5:
           14|   direct-dependency = derivation {
           15|     name = "direct-dependency";
             |     ^
           16|     __structuredAttrs = true;

       … while evaluating attribute 'libtrans' of derivation 'direct-dependency'
         at /pwd/in.nix:18:5:
           17|
           18|     libtrans = transitive-dependency;
             |     ^
           19|   };

       … while calling the 'getAttr' builtin
         at «internal»:1:500:
       … while evaluating the second argument passed to builtins.getAttr

       … while calling the 'derivationStrict' builtin
         at «internal»:1:208:
       … while evaluating derivation 'transitive-dependency'
         whose name attribute is located at /pwd/in.nix:4:5
         at /pwd/in.nix:4:5:
            3|   transitive-dependency = mkDerivation {
            4|     name = "transitive-dependency";
             |     ^
            5|     __structuredAttrs = true;

       … while evaluating attribute 'nativeBuildInputs' of derivation 'transitive-dependency'
         at /pwd/in.nix:7:5:
            6|
            7|     nativeBuildInputs = [
             |     ^
            8|       null

       … while evaluating list element at index 1

       … caused by explicit throw
         at /pwd/in.nix:9:8:
            8|       null
            9|       (throw "transitive dependency growls")
             |        ^
           10|     ];

       error: transitive dependency growls

       note: trace involved the following derivations:
       derivation 'package-you-care-about'
       derivation 'direct-dependency'
       derivation 'transitive-dependency'