nixpkgs/pkgs/applications/science/misc/cytoscape/default.nix

35 lines
878 B
Nix
Raw Normal View History

2016-06-12 21:48:32 +01:00
{ stdenv, fetchurl, jre, makeWrapper }:
stdenv.mkDerivation rec {
name = "cytoscape-${version}";
version = "3.6.1";
2016-06-12 21:48:32 +01:00
src = fetchurl {
url = "http://chianti.ucsd.edu/${name}/${name}.tar.gz";
sha256 = "1pkdilv1nw6vvdxk71bwjngr8yafrsqwaqvlakhp8yb342r1jd4s";
2016-06-12 21:48:32 +01:00
};
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 \
2016-06-12 21:48:32 +01:00
--set JAVA_HOME "${jre}" \
--set JAVA "${jre}/bin/java"
chmod +x $out/bin/cytoscape
'';
meta = {
homepage = http://www.cytoscape.org;
2016-06-12 21:48:32 +01:00
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;
2016-06-12 21:48:32 +01:00
};
}