From be187bfeb074e5c2b65f25f3dcdb82a98b15570d Mon Sep 17 00:00:00 2001 From: Justin Bedo Date: Thu, 4 Jul 2019 14:26:52 +1000 Subject: linkOutputs: refactor output linking expression The existing linkDrv only has a singular output, making it difficult to separate the various types of output. The new functionality replaces the old with attribute sets defining the outputs. The old linkDrv is deprecated. --- examples/ex-tnpair/tnpair.nix | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'examples') diff --git a/examples/ex-tnpair/tnpair.nix b/examples/ex-tnpair/tnpair.nix index c42fe95..ada96c8 100644 --- a/examples/ex-tnpair/tnpair.nix +++ b/examples/ex-tnpair/tnpair.nix @@ -19,8 +19,8 @@ let (samtools.markdup {}) ]; -in linkDrv [ - (ln (strelka.callSomatic {} {normal = preprocess normal; tumour = preprocess tumour;}) "strelka") - (ln (preprocess normal) "normal.bam") - (ln (preprocess tumour) "tumour.bam") -] +in linkOutputs { + strelka = strelka.callSomatic {} {normal = preprocess normal; tumour = preprocess tumour;}; + "normal.bam" = preprocess normal; + "tumour.bam" = preprocess tumour; +} -- cgit v1.2.3