nixpkgs/pkgs/applications/science/biology/igv/default.nix
Ryan Mulligan d1dc4cae54 igv: 2.4.6 -> 2.4.8
Semi-automatic update. These checks were performed:

- built on NixOS
- found 2.4.8 with grep in /nix/store/3vwg5hpprkm3v345fy05gxdjicfakql7-igv-2.4.8
- found 2.4.8 in filename of file in /nix/store/3vwg5hpprkm3v345fy05gxdjicfakql7-igv-2.4.8

cc "@mimadrid"
2018-02-26 19:11:52 -08:00

34 lines
882 B
Nix

{ stdenv, fetchurl, unzip, jre }:
stdenv.mkDerivation rec {
name = "igv-${version}";
version = "2.4.8";
src = fetchurl {
url = "http://data.broadinstitute.org/igv/projects/downloads/2.4/IGV_${version}.zip";
sha256 = "1ca4lsb5j00066sd1gy8jr8jhzpd9142fhj4khb8nc45010wib0q";
};
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 ];
};
}