From 706a74ee9017192d5bb1cefb30b48aa189e85c88 Mon Sep 17 00:00:00 2001 From: Justin Bedo Date: Tue, 2 Jun 2020 10:46:09 +1000 Subject: samtools-merge: noop if only a single file --- tools/samtools-merge.nix | 2 ++ 1 file changed, 2 insertions(+) (limited to 'tools') 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 ]; -- cgit v1.2.3