aboutsummaryrefslogtreecommitdiff
path: root/tests/structured-attrs-shell.nix
blob: 0c01c25687b86ab421a9591ea89111b83bdd9d0b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
with import ./config.nix;
let
  dep = mkDerivation {
    name = "dep";
    buildCommand = ''
      mkdir $out; echo bla > $out/bla
    '';
  };
in
mkDerivation {
  name = "structured2";
  __structuredAttrs = true;
  outputs = [ "out" "dev" ];
  my.list = [ "a" "b" "c" ];
  exportReferencesGraph.refs = [ dep ];
  buildCommand = ''
    touch ''${outputs[out]}; touch ''${outputs[dev]}
  '';
}