aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJustin Bedo <cu@cua0.org>2020-06-02 10:46:09 +1000
committerJustin Bedo <cu@cua0.org>2020-06-02 10:46:09 +1000
commit706a74ee9017192d5bb1cefb30b48aa189e85c88 (patch)
tree97fb0613d68f53d203190f0b266bb6d56962b99a
parent4d18e71c24b099742fe57395a0e839a9fa962bd5 (diff)
samtools-merge: noop if only a single file
-rw-r--r--tools/samtools-merge.nix2
1 files changed, 2 insertions, 0 deletions
diff --git a/tools/samtools-merge.nix b/tools/samtools-merge.nix
index 81b0c15..792ee52 100644
--- a/tools/samtools-merge.nix
+++ b/tools/samtools-merge.nix
@@ -16,6 +16,8 @@ in
assert inputIsHomogenous;
+if length inputs == 1 then head inputs else
+
stage {
name = "samtools-merge";
buildInputs = with pkgs; [ samtools ];