2024-02-07 01:22:34 +00:00
|
|
|
{ lib, stdenv, fetchzip, jdk17, testers, wrapGAppsHook, igv }:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "igv";
|
2024-04-21 15:54:59 +00:00
|
|
|
version = "2.17.3";
|
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-04-21 15:54:59 +00:00
|
|
|
sha256 = "sha256-SGqkWBv4nol0+lnGN7wBHJvndcIqZ5+Wt1wAcXA42cU=";
|
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-01-02 11:29:13 +00:00
|
|
|
nativeBuildInputs = [ wrapGAppsHook ];
|
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/";
|
|
|
|
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 ];
|
|
|
|
};
|
|
|
|
}
|