blob: 98e529f28f970138d958a5d218acb7972e4bbf4d (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
|
{ bionix
, nixpkgs
, flags ? null
, seed ? 42
}:
ref:
with nixpkgs;
with lib;
with bionix.types;
assert (matchFiletype "bowtie-index" { fa = _: true; } ref);
stdenv.mkDerivation {
name = "bowtie-index";
buildInputs = [ bowtie2 ];
buildCommand = ''
mkdir $out
bowtie2-build --seed ${toString seed} --threads $NIX_BUILD_CORES ${optionalString (flags != null) flags} ${ref} $out/ref
'';
}
|