nixpkgs/pkgs/applications/science/biology/igv/default.nix
volth 46420bbaa3 treewide: name -> pname (easy cases) (#66585)
treewide replacement of

stdenv.mkDerivation rec {
  name = "*-${version}";
  version = "*";

to pname
2019-08-15 13:41:18 +01:00

33 lines
874 B
Nix

{ stdenv, fetchurl, unzip, jre }:
stdenv.mkDerivation rec {
pname = "igv";
version = "2.4.19";
src = fetchurl {
url = "https://data.broadinstitute.org/igv/projects/downloads/2.4/IGV_${version}.zip";
sha256 = "048dgrhxcb854d24kyjkqz12bw04bsv49i5jawb75yzkswwfkb0z";
};
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 ];
};
}