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