3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/applications/science/biology/igv/default.nix

34 lines
883 B
Nix
Raw Normal View History

2016-06-26 12:47:22 +01:00
{ stdenv, fetchurl, unzip, jre }:
stdenv.mkDerivation rec {
name = "igv-${version}";
version = "2.4.10";
2016-06-26 12:47:22 +01:00
src = fetchurl {
2018-01-21 21:07:44 +00:00
url = "http://data.broadinstitute.org/igv/projects/downloads/2.4/IGV_${version}.zip";
sha256 = "1wyv3ny06m6ipb83hi3pzcc50v49zms69c5714iixh0nqpd826f2";
2016-06-26 12:47:22 +01:00
};
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/;
2016-06-26 12:47:22 +01:00
description = "A visualization tool for interactive exploration of genomic datasets";
license = licenses.lgpl21;
platforms = platforms.unix;
maintainers = [ maintainers.mimadrid ];
};
}