diff options
author | Justin Bedo <cu@cua0.org> | 2020-06-02 10:46:09 +1000 |
---|---|---|
committer | Justin Bedo <cu@cua0.org> | 2020-06-02 10:46:09 +1000 |
commit | 706a74ee9017192d5bb1cefb30b48aa189e85c88 (patch) | |
tree | 97fb0613d68f53d203190f0b266bb6d56962b99a /tools | |
parent | 4d18e71c24b099742fe57395a0e839a9fa962bd5 (diff) |
samtools-merge: noop if only a single file
Diffstat (limited to 'tools')
-rw-r--r-- | tools/samtools-merge.nix | 2 |
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 ]; |