mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-22 21:50:55 +00:00
ab535c2757
Semi-automatic update generated by https://github.com/ryantm/nixpkgs-update tools. This update was made based on information from https://repology.org/metapackage/igv/versions.
34 lines
884 B
Nix
34 lines
884 B
Nix
{ stdenv, fetchurl, unzip, jre }:
|
|
|
|
stdenv.mkDerivation rec {
|
|
name = "igv-${version}";
|
|
version = "2.4.13";
|
|
|
|
src = fetchurl {
|
|
url = "https://data.broadinstitute.org/igv/projects/downloads/2.4/IGV_${version}.zip";
|
|
sha256 = "0cl6fs1v9rqkzjq4syx0m1pr71hbhvidwa3ym57pvz8ardfs3qa1";
|
|
};
|
|
|
|
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 ];
|
|
};
|
|
}
|