nixpkgs/pkgs/applications/science/biology/picard-tools/default.nix
R. RyanTM b3052440f6 picard-tools: 2.18.5 -> 2.18.7 (#41975)
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 invocation of /nix/store/siklhy9pl9xl9cq3nlqhln038554h72g-picard-tools-2.18.7/bin/picard had a zero exit code or showed the expected version
- 0 of 1 passed binary check by having a zero exit code.
- 0 of 1 passed binary check by having the new version present in output.
- found 2.18.7 with grep in /nix/store/siklhy9pl9xl9cq3nlqhln038554h72g-picard-tools-2.18.7
- directory tree listing: https://gist.github.com/a49ed5f2ff312ce6180174183901e38f
- du listing: https://gist.github.com/243f4d89d2100ef27d332e3562d5f173
2018-06-18 22:41:49 +02:00

30 lines
914 B
Nix

{stdenv, fetchurl, jre, makeWrapper}:
stdenv.mkDerivation rec {
name = "picard-tools-${version}";
version = "2.18.7";
src = fetchurl {
url = "https://github.com/broadinstitute/picard/releases/download/${version}/picard.jar";
sha256 = "00p5wmd3kb7pr3yvsqz660fsk845dwgj76bllwjfrbiscjdyhy9f";
};
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;
};
}