picard-tools: init at 2.7.1

This commit is contained in:
Justin Bedo 2017-03-07 16:16:03 +11:00 committed by Robert Helgesson
parent 7f214e6410
commit 4bb50fd08c
No known key found for this signature in database
GPG Key ID: C3DB11069E65DC86
2 changed files with 32 additions and 0 deletions

View File

@ -0,0 +1,30 @@
{stdenv, fetchurl, jre, makeWrapper}:
stdenv.mkDerivation rec {
name = "picard-tools-${version}";
version = "2.7.1";
src = fetchurl {
url = "https://github.com/broadinstitute/picard/releases/download/${version}/picard.jar";
sha256 = "0rcfcvy9zacqmh7nyqlm93hzsx6gfygmcf8d2p02h5l69gvygnb9";
};
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;
};
}

View File

@ -16998,6 +16998,8 @@ with pkgs;
paml = callPackage ../applications/science/biology/paml { }; paml = callPackage ../applications/science/biology/paml { };
picard-tools = callPackage ../applications/science/biology/picard-tools/default.nix { };
platypus = callPackage ../applications/science/biology/platypus/default.nix { }; platypus = callPackage ../applications/science/biology/platypus/default.nix { };
plink = callPackage ../applications/science/biology/plink/default.nix { }; plink = callPackage ../applications/science/biology/plink/default.nix { };