aboutsummaryrefslogtreecommitdiff
path: root/tools/bwa-index.nix
blob: 8ca0eecb78264a784e22365f934259de54708365 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
{ stdenv
, lib
, bwa
}:

ref:

with lib;

stdenv.mkDerivation {
  name = "bwa-index";
  buildInputs = [ bwa ];
  buildCommand = ''
    ln -s ${ref} ref.fa
    bwa index ref.fa
    mkdir $out
    mv ref.fa.* $out
  '';
}