9c6ee729d6
GitOrigin-RevId: 6cee3b5893090b0f5f0a06b4cf42ca4e60e5d222
35 lines
1 KiB
Nix
35 lines
1 KiB
Nix
{ lib, stdenv, fetchzip, jdk11 }:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "igv";
|
|
version = "2.16.1";
|
|
src = fetchzip {
|
|
url = "https://data.broadinstitute.org/igv/projects/downloads/${lib.versions.majorMinor version}/IGV_${version}.zip";
|
|
sha256 = "sha256-/3ielakIRdm9/iGBKSk+fTyzYRnsMTdCdsKghnziVwA=";
|
|
};
|
|
|
|
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#${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
|
|
|
|
ln -s $out/share/igv.sh $out/bin/igv
|
|
ln -s $out/share/igvtools $out/bin/igvtools
|
|
|
|
chmod +x $out/bin/igv
|
|
chmod +x $out/bin/igvtools
|
|
'';
|
|
|
|
meta = with lib; {
|
|
homepage = "https://www.broadinstitute.org/igv/";
|
|
description = "A visualization tool for interactive exploration of genomic datasets";
|
|
license = licenses.mit;
|
|
platforms = platforms.unix;
|
|
maintainers = [ maintainers.mimame ];
|
|
};
|
|
}
|