2024-11-01 13:56:50 +00:00
|
|
|
with import "${builtins.getEnv "_NIX_TEST_BUILD_DIR"}/config.nix";
|
2021-05-02 15:24:14 +00:00
|
|
|
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]}
|
|
|
|
'';
|
|
|
|
}
|