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

36 lines
1.0 KiB
Nix
Raw Normal View History

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