2016-06-26 12:47:22 +01:00
|
|
|
{ stdenv, fetchurl, unzip, jre }:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
name = "igv-${version}";
|
2019-03-02 15:15:11 +00:00
|
|
|
version = "2.4.19";
|
2016-06-26 12:47:22 +01:00
|
|
|
|
|
|
|
src = fetchurl {
|
2018-06-28 19:43:35 +01:00
|
|
|
url = "https://data.broadinstitute.org/igv/projects/downloads/2.4/IGV_${version}.zip";
|
2019-03-02 15:15:11 +00:00
|
|
|
sha256 = "048dgrhxcb854d24kyjkqz12bw04bsv49i5jawb75yzkswwfkb0z";
|
2016-06-26 12:47:22 +01: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 21:03:30 +01:00
|
|
|
homepage = https://www.broadinstitute.org/igv/;
|
2016-06-26 12:47:22 +01:00
|
|
|
description = "A visualization tool for interactive exploration of genomic datasets";
|
|
|
|
license = licenses.lgpl21;
|
|
|
|
platforms = platforms.unix;
|
|
|
|
maintainers = [ maintainers.mimadrid ];
|
|
|
|
};
|
|
|
|
}
|