diff options
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 + ''; +} |