2024-11-04 00:22:12 +02:00
|
|
|
with import ./config.nix;
|
2021-05-02 18:24:14 +03:00
|
|
|
let
|
|
|
|
dep = mkDerivation {
|
|
|
|
name = "dep";
|
|
|
|
buildCommand = ''
|
|
|
|
mkdir $out; echo bla > $out/bla
|
|
|
|
'';
|
|
|
|
};
|
2021-05-18 16:07:30 +03:00
|
|
|
inherit (import ./shell.nix { inNixShell = true; }) stdenv;
|
2021-05-02 18:24:14 +03:00
|
|
|
in
|
|
|
|
mkDerivation {
|
|
|
|
name = "structured2";
|
|
|
|
__structuredAttrs = true;
|
2021-05-18 16:07:30 +03:00
|
|
|
inherit stdenv;
|
2021-05-02 18:24:14 +03:00
|
|
|
outputs = [ "out" "dev" ];
|
|
|
|
my.list = [ "a" "b" "c" ];
|
|
|
|
exportReferencesGraph.refs = [ dep ];
|
|
|
|
buildCommand = ''
|
|
|
|
touch ''${outputs[out]}; touch ''${outputs[dev]}
|
|
|
|
'';
|
|
|
|
}
|