2016-06-26 13:47:22 +02:00
|
|
|
{ stdenv, fetchurl, unzip, jre }:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
name = "igv-${version}";
|
2017-08-01 20:46:31 +02:00
|
|
|
version = "2.3.98";
|
2016-06-26 13:47:22 +02:00
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "http://data.broadinstitute.org/igv/projects/downloads/IGV_${version}.zip";
|
2017-08-01 20:46:31 +02:00
|
|
|
sha256 = "1bjdsvx8jsbcry6v7yfclh3vrlsvaw38f3s9587lklj63zj638l2";
|
2016-06-26 13:47:22 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
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
|
|
|
|
|
|
|
|
ln -s $out/share/igv.sh $out/bin/igv
|
|
|
|
|
|
|
|
chmod +x $out/bin/igv
|
|
|
|
'';
|
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
2017-08-01 22:03:30 +02:00
|
|
|
homepage = https://www.broadinstitute.org/igv/;
|
2016-06-26 13:47:22 +02:00
|
|
|
description = "A visualization tool for interactive exploration of genomic datasets";
|
|
|
|
license = licenses.lgpl21;
|
|
|
|
platforms = platforms.unix;
|
|
|
|
maintainers = [ maintainers.mimadrid ];
|
|
|
|
};
|
|
|
|
}
|