nixpkgs/pkgs/applications/science/biology/igv/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

36 lines
1.0 KiB
Nix
Raw Normal View History

{ lib, stdenv, fetchzip, jdk11 }:
2016-06-26 11:47:22 +00:00
stdenv.mkDerivation rec {
pname = "igv";
version = "2.13.2";
src = fetchzip {
url = "https://data.broadinstitute.org/igv/projects/downloads/${lib.versions.majorMinor version}/IGV_${version}.zip";
sha256 = "sha256-S0EoZAqjElrM/bp1p69jLuclXeUzSIuH8VsgCO6F04U=";
2016-06-26 11:47:22 +00:00
};
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
2016-06-26 11:47:22 +00:00
ln -s $out/share/igv.sh $out/bin/igv
ln -s $out/share/igvtools $out/bin/igvtools
2016-06-26 11:47:22 +00:00
chmod +x $out/bin/igv
chmod +x $out/bin/igvtools
2016-06-26 11:47:22 +00:00
'';
meta = with lib; {
homepage = "https://www.broadinstitute.org/igv/";
2016-06-26 11:47:22 +00:00
description = "A visualization tool for interactive exploration of genomic datasets";
license = licenses.mit;
2016-06-26 11:47:22 +00:00
platforms = platforms.unix;
maintainers = [ maintainers.mimame ];
2016-06-26 11:47:22 +00:00
};
}