mirror of
https://github.com/privatevoid-net/nix-super.git
synced 2024-11-10 08:16:15 +02:00
20 lines
393 B
Nix
20 lines
393 B
Nix
|
with import ./config.nix;
|
||
|
let
|
||
|
dep = mkDerivation {
|
||
|
name = "dep";
|
||
|
buildCommand = ''
|
||
|
mkdir $out; echo bla > $out/bla
|
||
|
'';
|
||
|
};
|
||
|
in
|
||
|
mkDerivation {
|
||
|
name = "structured2";
|
||
|
__structuredAttrs = true;
|
||
|
outputs = [ "out" "dev" ];
|
||
|
my.list = [ "a" "b" "c" ];
|
||
|
exportReferencesGraph.refs = [ dep ];
|
||
|
buildCommand = ''
|
||
|
touch ''${outputs[out]}; touch ''${outputs[dev]}
|
||
|
'';
|
||
|
}
|