2020-05-05 09:52:27 +01:00
|
|
|
{ stdenv, fetchurl, jre, makeWrapper, substituteAll, coreutils }:
|
2016-06-12 21:48:32 +01:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2019-08-15 13:41:18 +01:00
|
|
|
pname = "cytoscape";
|
2020-10-29 12:55:33 +00:00
|
|
|
version = "3.8.2";
|
2016-06-12 21:48:32 +01:00
|
|
|
|
|
|
|
src = fetchurl {
|
2020-05-05 09:52:27 +01:00
|
|
|
url = "https://github.com/cytoscape/cytoscape/releases/download/${version}/${pname}-unix-${version}.tar.gz";
|
2020-10-29 12:55:33 +00:00
|
|
|
sha256 = "0zgsq9qnyvmq96pgf7372r16rm034fd0r4qa72xi9zbd4f2r7z8w";
|
2016-06-12 21:48:32 +01:00
|
|
|
};
|
|
|
|
|
2020-05-05 09:52:27 +01:00
|
|
|
patches = [
|
|
|
|
# By default, gen_vmoptions.sh tries to store custom options in $out/share
|
|
|
|
# at run time. This patch makes sure $HOME is used instead.
|
|
|
|
(substituteAll {
|
|
|
|
src = ./gen_vmoptions_to_homedir.patch;
|
|
|
|
inherit coreutils;
|
|
|
|
})
|
|
|
|
];
|
|
|
|
|
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 = {
|
2020-04-01 02:11:51 +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
|
|
|
};
|
|
|
|
}
|