2016-06-12 21:48:32 +01:00
|
|
|
{ stdenv, fetchurl, jre, makeWrapper }:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
name = "cytoscape-${version}";
|
2019-02-28 00:40:50 +00:00
|
|
|
version = "3.7.1";
|
2016-06-12 21:48:32 +01:00
|
|
|
|
|
|
|
src = fetchurl {
|
2019-02-28 00:40:50 +00:00
|
|
|
url = "https://github.com/cytoscape/cytoscape/releases/download/${version}/${name}.tar.gz";
|
|
|
|
sha256 = "1mhsngbwbgdwl70wj7850zg94534lasihwv2ryifardm35mkh48k";
|
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;
|
|
|
|
maintainers = [stdenv.lib.maintainers.mimadrid];
|
2016-08-02 18:50:55 +01:00
|
|
|
platforms = stdenv.lib.platforms.unix;
|
2016-06-12 21:48:32 +01:00
|
|
|
};
|
|
|
|
}
|