2024-01-02 11:29:13 +00:00
|
|
|
{ lib, stdenv, fetchzip, jdk11, wrapGAppsHook }:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "igv";
|
2024-01-13 08:15:51 +00:00
|
|
|
version = "2.17.0";
|
2020-09-25 04:45:31 +00:00
|
|
|
src = fetchzip {
|
2022-08-12 12:06:08 +00:00
|
|
|
url = "https://data.broadinstitute.org/igv/projects/downloads/${lib.versions.majorMinor version}/IGV_${version}.zip";
|
2024-01-13 08:15:51 +00:00
|
|
|
sha256 = "sha256-nOwaeVIvqfHrvykfTyOdnMN6+QpsvNN14jXBQx7THsE=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
installPhase = ''
|
|
|
|
mkdir -pv $out/{share,bin}
|
|
|
|
cp -Rv * $out/share/
|
|
|
|
|
|
|
|
sed -i "s#prefix=.*#prefix=$out/share#g" $out/share/igv.sh
|
2020-09-25 04:45:31 +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
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
ln -s $out/share/igv.sh $out/bin/igv
|
2020-09-25 04:45:31 +00:00
|
|
|
ln -s $out/share/igvtools $out/bin/igvtools
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
chmod +x $out/bin/igv
|
2020-09-25 04:45:31 +00:00
|
|
|
chmod +x $out/bin/igvtools
|
2020-04-24 23:36:52 +00:00
|
|
|
'';
|
2024-01-02 11:29:13 +00:00
|
|
|
nativeBuildInputs = [ wrapGAppsHook ];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
meta = with lib; {
|
2020-04-24 23:36:52 +00:00
|
|
|
homepage = "https://www.broadinstitute.org/igv/";
|
|
|
|
description = "A visualization tool for interactive exploration of genomic datasets";
|
2020-09-25 04:45:31 +00:00
|
|
|
license = licenses.mit;
|
2020-04-24 23:36:52 +00:00
|
|
|
platforms = platforms.unix;
|
|
|
|
maintainers = [ maintainers.mimame ];
|
|
|
|
};
|
|
|
|
}
|