forked from lix-project/hydra
18 lines
457 B
Nix
18 lines
457 B
Nix
|
{ exposeUnderlyingJob, exposeDependentJob }:
|
||
|
with import ../config.nix;
|
||
|
let
|
||
|
underlyingJob = mkDerivation {
|
||
|
name = "underlying-job";
|
||
|
builder = ../empty-dir-builder.sh;
|
||
|
};
|
||
|
|
||
|
dependentJob = mkDerivation {
|
||
|
name = "dependent-job";
|
||
|
builder = ../empty-dir-builder.sh;
|
||
|
inherit underlyingJob;
|
||
|
};
|
||
|
in
|
||
|
(if exposeUnderlyingJob then { inherit underlyingJob; } else { }) //
|
||
|
(if exposeDependentJob then { inherit dependentJob; } else { }) //
|
||
|
{ }
|