2024-05-15 15:35:15 +00:00
|
|
|
{ lib, stdenv, fetchzip, jdk17, testers, wrapGAppsHook3, igv }:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "igv";
|
2024-05-15 15:35:15 +00:00
|
|
|
version = "2.17.4";
|
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-05-15 15:35:15 +00:00
|
|
|
sha256 = "sha256-LF/rwm/XlLHAJjiAlQVTmx5l+5Np2b5rPjoCdN/qERU=";
|
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
|
2024-02-07 01:22:34 +00:00
|
|
|
sed -i 's#java#${jdk17}/bin/java#g' $out/share/igv.sh
|
2020-09-25 04:45:31 +00:00
|
|
|
|
|
|
|
sed -i "s#prefix=.*#prefix=$out/share#g" $out/share/igvtools
|
2024-02-07 01:22:34 +00:00
|
|
|
sed -i 's#java#${jdk17}/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-05-15 15:35:15 +00:00
|
|
|
nativeBuildInputs = [ wrapGAppsHook3 ];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2024-02-07 01:22:34 +00:00
|
|
|
passthru.tests.version = testers.testVersion {
|
|
|
|
package = igv;
|
|
|
|
};
|
|
|
|
|
|
|
|
|
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/";
|
2024-06-20 14:57:18 +00:00
|
|
|
description = "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 ];
|
|
|
|
};
|
|
|
|
}
|