Merge pull request #81129 from scalavision/igv-update-28x

igv: 2.4.19 -> 2.8.0
This commit is contained in:
Silvan Mosberger 2020-08-23 19:24:33 +02:00 committed by GitHub
commit cf47ba66fb
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1,32 +1,34 @@
{ stdenv, fetchurl, unzip, jre }:
{ stdenv, fetchzip, jdk11 }:
stdenv.mkDerivation rec {
pname = "igv";
version = "2.4.19";
src = fetchurl {
url = "https://data.broadinstitute.org/igv/projects/downloads/2.4/IGV_${version}.zip";
sha256 = "048dgrhxcb854d24kyjkqz12bw04bsv49i5jawb75yzkswwfkb0z";
version = "2.8.9";
src = fetchzip {
url = "https://data.broadinstitute.org/igv/projects/downloads/2.8/IGV_${version}.zip";
sha256 = "1874w1xprv91caz1ymfxilq6inhj36xzx8j9m0mcyp0qfvfvyjp7";
};
buildInputs = [ unzip jre ];
installPhase = ''
mkdir -pv $out/{share,bin}
cp -Rv * $out/share/
sed -i "s#prefix=.*#prefix=$out/share#g" $out/share/igv.sh
sed -i 's#java#${jre}/bin/java#g' $out/share/igv.sh
sed -i 's#java#${jdk11}/bin/java#g' $out/share/igv.sh
sed -i "s#prefix=.*#prefix=$out/share#g" $out/share/igvtools
sed -i 's#java#${jdk11}/bin/java#g' $out/share/igvtools
ln -s $out/share/igv.sh $out/bin/igv
ln -s $out/share/igvtools $out/bin/igvtools
chmod +x $out/bin/igv
chmod +x $out/bin/igvtools
'';
meta = with stdenv.lib; {
homepage = "https://www.broadinstitute.org/igv/";
description = "A visualization tool for interactive exploration of genomic datasets";
license = licenses.lgpl21;
license = licenses.mit;
platforms = platforms.unix;
maintainers = [ maintainers.mimame ];
};