2017-03-07 06:16:03 +01:00
|
|
|
{stdenv, fetchurl, jre, makeWrapper}:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
name = "picard-tools-${version}";
|
2019-08-05 08:04:42 +02:00
|
|
|
version = "2.20.4";
|
2017-03-07 06:16:03 +01:00
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "https://github.com/broadinstitute/picard/releases/download/${version}/picard.jar";
|
2019-08-05 08:04:42 +02:00
|
|
|
sha256 = "1z2zpwqhk8i7l9awajdrzxwij0vcmkwq7rajzjil7n65apj2hz9i";
|
2017-03-07 06:16:03 +01:00
|
|
|
};
|
|
|
|
|
2018-11-27 14:31:09 +01:00
|
|
|
nativeBuildInputs = [ makeWrapper ];
|
|
|
|
buildInputs = [ jre ];
|
2017-03-07 06:16:03 +01:00
|
|
|
|
|
|
|
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; {
|
2018-11-27 14:31:09 +01:00
|
|
|
description = "Tools for high-throughput sequencing (HTS) data and formats such as SAM/BAM/CRAM and VCF";
|
2017-03-07 06:16:03 +01:00
|
|
|
license = licenses.mit;
|
|
|
|
homepage = https://broadinstitute.github.io/picard/;
|
|
|
|
maintainers = with maintainers; [ jbedo ];
|
|
|
|
platforms = platforms.all;
|
|
|
|
};
|
|
|
|
}
|