nixpkgs/pkgs/applications/science/biology/igv/default.nix
Ryan Mulligan 9b4c82d366 igv: 2.4.8 -> 2.4.9
Semi-automatic update generated by https://github.com/ryantm/nix-update tools. These checks were done:

- built on NixOS
- Warning: no binary found that responded to help or version flags. (This warning appears even if the package isn't expected to have binaries.)
- found 2.4.9 with grep in /nix/store/q5c9jyg6gc4v3ns7rw5lxj7v4v916a7f-igv-2.4.9
- found 2.4.9 in filename of file in /nix/store/q5c9jyg6gc4v3ns7rw5lxj7v4v916a7f-igv-2.4.9
2018-03-14 12:04:23 -07:00

34 lines
882 B
Nix

{ stdenv, fetchurl, unzip, jre }:
stdenv.mkDerivation rec {
name = "igv-${version}";
version = "2.4.9";
src = fetchurl {
url = "http://data.broadinstitute.org/igv/projects/downloads/2.4/IGV_${version}.zip";
sha256 = "0acyq7602g2pz6mc9ip1297c68kgl9pq9yzk3k2lli9l5qvxi3g1";
};
buildInputs = [ unzip jre ];
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#${jre}/bin/java#g' $out/share/igv.sh
ln -s $out/share/igv.sh $out/bin/igv
chmod +x $out/bin/igv
'';
meta = with stdenv.lib; {
homepage = https://www.broadinstitute.org/igv/;
description = "A visualization tool for interactive exploration of genomic datasets";
license = licenses.lgpl21;
platforms = platforms.unix;
maintainers = [ maintainers.mimadrid ];
};
}