diff options
author | Justin Bedo <cu@cua0.org> | 2018-12-05 10:48:05 +1100 |
---|---|---|
committer | Justin Bedo <cu@cua0.org> | 2018-12-10 16:26:37 +1100 |
commit | 86b1b192501eecc8a4e566795327772c32b1633d (patch) | |
tree | f06d78c11672b66e2655ab5f23cfe91a30fe5504 /tools/bowtie-index.nix | |
parent | 16951e6f99636a2c9d924d49c549a918e403f276 (diff) |
bowtie: init
Diffstat (limited to 'tools/bowtie-index.nix')
-rw-r--r-- | tools/bowtie-index.nix | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/tools/bowtie-index.nix b/tools/bowtie-index.nix new file mode 100644 index 0000000..98e529f --- /dev/null +++ b/tools/bowtie-index.nix @@ -0,0 +1,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 + ''; +} |