diff options
author | Justin Bedo <cu@cua0.org> | 2018-10-26 07:59:04 +1100 |
---|---|---|
committer | Justin Bedo <cu@cua0.org> | 2018-10-26 07:59:04 +1100 |
commit | 4ee3f9f9c24b7dcdaa1be19aadd84454219c43f6 (patch) | |
tree | 371ba87474296c59d809e947dd41e8403a60fe4f /tools | |
parent | 759132aca8b954f8b78f74af9a1e01f411e4b1a6 (diff) |
init: samtools-dict
Diffstat (limited to 'tools')
-rw-r--r-- | tools/samtools-dict.nix | 20 | ||||
-rw-r--r-- | tools/samtools.nix | 1 |
2 files changed, 21 insertions, 0 deletions
diff --git a/tools/samtools-dict.nix b/tools/samtools-dict.nix new file mode 100644 index 0000000..80ec1e0 --- /dev/null +++ b/tools/samtools-dict.nix @@ -0,0 +1,20 @@ +{ bionix +, nixpkgs +, flags ? null +}: + +input: + +with nixpkgs; +with lib; +with bionix.types; + +assert (matchFiletype "samtools-dict" { fa = _: true; } input); + +stdenv.mkDerivation { + name = "samtools-dict"; + buildInputs = [ samtools ]; + buildCommand = '' + samtools dict ${optionalString (flags != null) flags} ${input} > $out + ''; +} diff --git a/tools/samtools.nix b/tools/samtools.nix index a05f53a..ea773eb 100644 --- a/tools/samtools.nix +++ b/tools/samtools.nix @@ -7,6 +7,7 @@ with bionix; faidx = callBionix ./samtools-faidx.nix; flagstat = callBionix ./samtools-flagstat.nix; index = callBionix ./samtools-index.nix; + dict = callBionix ./samtools-dict.nix; sort = callBionix ./samtools-sort.nix; merge = callBionix ./samtools-merge.nix; } |