mirror of
https://github.com/NixOS/nix
synced 2025-06-24 13:51:16 +02:00
28 lines
493 B
Nix
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]}
|
|
'';
|
|
}
|