forked from mirrors/nixpkgs
65e18bd38f
Semi-automatic update generated by https://github.com/ryantm/nixpkgs-update tools. This update was made based on information from https://repology.org/metapackage/cytoscape/versions. These checks were done: - built on NixOS - ran ‘/nix/store/87clhargb10b1aps6nq86k0xz6yqyydz-cytoscape-3.6.1/bin/cytoscape -h’ got 0 exit code - ran ‘/nix/store/87clhargb10b1aps6nq86k0xz6yqyydz-cytoscape-3.6.1/bin/cytoscape --help’ got 0 exit code - found 3.6.1 with grep in /nix/store/87clhargb10b1aps6nq86k0xz6yqyydz-cytoscape-3.6.1 - directory tree listing: https://gist.github.com/8bad808238fc034c5394a80d8a5c1554
35 lines
878 B
Nix
35 lines
878 B
Nix
{ stdenv, fetchurl, jre, makeWrapper }:
|
|
|
|
stdenv.mkDerivation rec {
|
|
name = "cytoscape-${version}";
|
|
version = "3.6.1";
|
|
|
|
src = fetchurl {
|
|
url = "http://chianti.ucsd.edu/${name}/${name}.tar.gz";
|
|
sha256 = "1pkdilv1nw6vvdxk71bwjngr8yafrsqwaqvlakhp8yb342r1jd4s";
|
|
};
|
|
|
|
buildInputs = [jre makeWrapper];
|
|
|
|
installPhase = ''
|
|
mkdir -pv $out/{share,bin}
|
|
cp -Rv * $out/share/
|
|
|
|
ln -s $out/share/cytoscape.sh $out/bin/cytoscape
|
|
|
|
wrapProgram $out/share/cytoscape.sh \
|
|
--set JAVA_HOME "${jre}" \
|
|
--set JAVA "${jre}/bin/java"
|
|
|
|
chmod +x $out/bin/cytoscape
|
|
'';
|
|
|
|
meta = {
|
|
homepage = http://www.cytoscape.org;
|
|
description = "A general platform for complex network analysis and visualization";
|
|
license = stdenv.lib.licenses.lgpl21;
|
|
maintainers = [stdenv.lib.maintainers.mimadrid];
|
|
platforms = stdenv.lib.platforms.unix;
|
|
};
|
|
}
|