f5fa5fa4d6
* pkgs: refactor needless quoting of homepage meta attribute A lot of packages are needlessly quoting the homepage meta attribute (about 1400, 22%), this commit refactors all of those instances. * pkgs: Fixing some links that were wrongfully unquoted in the previous commit * Fixed some instances
33 lines
879 B
Nix
33 lines
879 B
Nix
{ stdenv, fetchurl, unzip, jre }:
|
|
|
|
stdenv.mkDerivation rec {
|
|
name = "igv-${version}";
|
|
version = "2.3.98";
|
|
|
|
src = fetchurl {
|
|
url = "http://data.broadinstitute.org/igv/projects/downloads/IGV_${version}.zip";
|
|
sha256 = "1bjdsvx8jsbcry6v7yfclh3vrlsvaw38f3s9587lklj63zj638l2";
|
|
};
|
|
|
|
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 ];
|
|
};
|
|
}
|