aboutsummaryrefslogtreecommitdiff
path: root/examples
diff options
context:
space:
mode:
authorJustin Bedo <cu@cua0.org>2019-07-04 14:26:52 +1000
committerJustin Bedo <cu@cua0.org>2019-07-08 15:06:58 +1000
commitbe187bfeb074e5c2b65f25f3dcdb82a98b15570d (patch)
tree692f706f37a13f3a4026d5a560a6973c09065bfd /examples
parente7a6aef11516c1330ae21610b4e14321b137fd04 (diff)
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.
Diffstat (limited to 'examples')
-rw-r--r--examples/ex-tnpair/tnpair.nix10
1 files changed, 5 insertions, 5 deletions
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;
+}