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/samtools-dict.nix | |
parent | 759132aca8b954f8b78f74af9a1e01f411e4b1a6 (diff) |
init: samtools-dict
Diffstat (limited to 'tools/samtools-dict.nix')
-rw-r--r-- | tools/samtools-dict.nix | 20 |
1 files changed, 20 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 + ''; +} |