3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/applications/science/misc/cytoscape/default.nix

35 lines
914 B
Nix
Raw Normal View History

2016-06-12 21:48:32 +01:00
{ stdenv, fetchurl, jre, makeWrapper }:
stdenv.mkDerivation rec {
pname = "cytoscape";
2019-09-14 09:52:46 +01:00
version = "3.7.2";
2016-06-12 21:48:32 +01:00
src = fetchurl {
url = "https://github.com/cytoscape/cytoscape/releases/download/${version}/${pname}-${version}.tar.gz";
2019-09-14 09:52:46 +01:00
sha256 = "125vgr8vqbmy2nsm1yl0h0q8p49lxxqfw5cmxzbx1caklcn4rryc";
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.mimame];
platforms = stdenv.lib.platforms.unix;
2016-06-12 21:48:32 +01:00
};
}