2016-06-12 21:48:32 +01:00
|
|
|
{ stdenv, fetchurl, jre, makeWrapper }:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2019-08-15 13:41:18 +01:00
|
|
|
pname = "cytoscape";
|
2019-09-14 09:52:46 +01:00
|
|
|
version = "3.7.2";
|
2016-06-12 21:48:32 +01:00
|
|
|
|
|
|
|
src = fetchurl {
|
2019-08-15 13:41:18 +01:00
|
|
|
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
|
|
|
|
|
2017-03-01 20:46:49 +00:00
|
|
|
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 = {
|
2017-08-01 21:03:30 +01:00
|
|
|
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;
|
2019-09-14 11:15:46 +01:00
|
|
|
maintainers = [stdenv.lib.maintainers.mimame];
|
2016-08-02 18:50:55 +01:00
|
|
|
platforms = stdenv.lib.platforms.unix;
|
2016-06-12 21:48:32 +01:00
|
|
|
};
|
|
|
|
}
|