aboutsummaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
Diffstat (limited to 'tools')
-rw-r--r--tools/samtools-faidx.nix4
1 files changed, 3 insertions, 1 deletions
diff --git a/tools/samtools-faidx.nix b/tools/samtools-faidx.nix
index 0dc03ee..a399857 100644
--- a/tools/samtools-faidx.nix
+++ b/tools/samtools-faidx.nix
@@ -13,6 +13,8 @@ stdenv.mkDerivation {
name = "samtools-faidx";
buildInputs = [ samtools ];
buildCommand = ''
- samtools faidx ${optionalString (flags != null) flags} ${input} > $out
+ ln -s ${input} input.fasta
+ samtools faidx ${optionalString (flags != null) flags} input.fasta
+ cp input.fasta.fai $out
'';
}