nixpkgs/pkgs/applications/science/biology/picard-tools/default.nix
R. RyanTM 4ea3841d7f picard-tools: 2.18.2 -> 2.18.3
Semi-automatic update generated by https://github.com/ryantm/nixpkgs-update tools.

This update was made based on information from https://repology.org/metapackage/picard-tools/versions.

These checks were done:

- built on NixOS
- Warning: no binary found that responded to help or version flags. (This warning appears even if the package isn't expected to have binaries.)
- found 2.18.3 with grep in /nix/store/q67hqz7716nf3c4f8rjmlpf2dqbb06rz-picard-tools-2.18.3
- directory tree listing: https://gist.github.com/6b71ce718f18ef6a48c05457cd0e583b
2018-04-30 11:43:21 -07:00

31 lines
914 B
Nix

{stdenv, fetchurl, jre, makeWrapper}:
stdenv.mkDerivation rec {
name = "picard-tools-${version}";
version = "2.18.3";
src = fetchurl {
url = "https://github.com/broadinstitute/picard/releases/download/${version}/picard.jar";
sha256 = "0w4v30vnyr549hd9lhj1sm69whssabqvhfrbavxfjbl2k9fw83qf";
};
buildInputs = [ jre makeWrapper ];
phases = [ "installPhase" ];
installPhase = ''
mkdir -p $out/libexec/picard
cp $src $out/libexec/picard/picard.jar
mkdir -p $out/bin
makeWrapper ${jre}/bin/java $out/bin/picard --add-flags "-jar $out/libexec/picard/picard.jar"
'';
meta = with stdenv.lib; {
description = "Tools for high-throughput sequencing (HTS) data and formats such as SAM/BAM/CRAM and VCF.";
license = licenses.mit;
homepage = https://broadinstitute.github.io/picard/;
maintainers = with maintainers; [ jbedo ];
platforms = platforms.all;
};
}