mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-09-11 15:08:33 +01:00
7d22bbe671
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.2 with grep in /nix/store/sp6gc6c6knpvpsmfdx8074qclcsgs931-picard-tools-2.18.2 - directory tree listing: https://gist.github.com/114857d15222eccda94501b5a871fb24
31 lines
914 B
Nix
31 lines
914 B
Nix
{stdenv, fetchurl, jre, makeWrapper}:
|
|
|
|
stdenv.mkDerivation rec {
|
|
name = "picard-tools-${version}";
|
|
version = "2.18.2";
|
|
|
|
src = fetchurl {
|
|
url = "https://github.com/broadinstitute/picard/releases/download/${version}/picard.jar";
|
|
sha256 = "0w3b2jz4n9irslsg85r4x9dc3y4ziykn8fs4iqqiq4sfdcz259fz";
|
|
};
|
|
|
|
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;
|
|
};
|
|
}
|