1
0
Fork 0
mirror of https://github.com/NixOS/nix synced 2025-06-24 13:51:16 +02:00
nix/tests/functional/structured-attrs-shell.nix
Eelco Dolstra c66eb9cef7 Add test
2025-05-24 00:40:06 +02:00

28 lines
493 B
Nix

with import ./config.nix;
let
dep = mkDerivation {
name = "dep";
buildCommand = ''
mkdir $out; echo bla > $out/bla
'';
};
inherit (import ./shell.nix { inNixShell = true; }) stdenv;
in
mkDerivation {
name = "structured2";
__structuredAttrs = true;
inherit stdenv;
outputs = [
"out"
"dev"
];
my.list = [
"a"
"b"
"c"
];
exportReferencesGraph.refs = dep;
buildCommand = ''
touch ''${outputs[out]}; touch ''${outputs[dev]}
'';
}