2021-01-11 07:54:33 +00:00
|
|
|
{ lib, stdenv, fetchzip, jdk11 }:
|
2016-06-26 12:47:22 +01:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2019-08-15 13:41:18 +01:00
|
|
|
pname = "igv";
|
2020-11-28 02:18:00 +00:00
|
|
|
version = "2.8.13";
|
2020-02-26 13:42:47 +00:00
|
|
|
src = fetchzip {
|
|
|
|
url = "https://data.broadinstitute.org/igv/projects/downloads/2.8/IGV_${version}.zip";
|
2020-11-28 02:18:00 +00:00
|
|
|
sha256 = "0sab478jq96iw3fv0560hrrj8qbh40r8m4ncypdb7991j9haxl09";
|
2016-06-26 12:47:22 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
installPhase = ''
|
|
|
|
mkdir -pv $out/{share,bin}
|
|
|
|
cp -Rv * $out/share/
|
|
|
|
|
|
|
|
sed -i "s#prefix=.*#prefix=$out/share#g" $out/share/igv.sh
|
2020-02-26 13:42:47 +00:00
|
|
|
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
|
2016-06-26 12:47:22 +01:00
|
|
|
|
|
|
|
ln -s $out/share/igv.sh $out/bin/igv
|
2020-02-26 13:42:47 +00:00
|
|
|
ln -s $out/share/igvtools $out/bin/igvtools
|
2016-06-26 12:47:22 +01:00
|
|
|
|
|
|
|
chmod +x $out/bin/igv
|
2020-02-26 13:42:47 +00:00
|
|
|
chmod +x $out/bin/igvtools
|
2016-06-26 12:47:22 +01:00
|
|
|
'';
|
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2020-04-01 02:11:51 +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";
|
2020-02-26 13:42:47 +00:00
|
|
|
license = licenses.mit;
|
2016-06-26 12:47:22 +01:00
|
|
|
platforms = platforms.unix;
|
2019-09-14 11:15:46 +01:00
|
|
|
maintainers = [ maintainers.mimame ];
|
2016-06-26 12:47:22 +01:00
|
|
|
};
|
|
|
|
}
|