forked from mirrors/nixpkgs
b9d13090a8
See https://cytoscape.org/release_notes_3_8_0.html for release information
44 lines
1.2 KiB
Nix
44 lines
1.2 KiB
Nix
{ stdenv, fetchurl, jre, makeWrapper, substituteAll, coreutils }:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "cytoscape";
|
|
version = "3.8.0";
|
|
|
|
src = fetchurl {
|
|
url = "https://github.com/cytoscape/cytoscape/releases/download/${version}/${pname}-unix-${version}.tar.gz";
|
|
sha256 = "0kksx12m83cjprdygmcc286990byf25yqfx5s7c07cizc21aavyg";
|
|
};
|
|
|
|
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;
|
|
})
|
|
];
|
|
|
|
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 \
|
|
--set JAVA_HOME "${jre}" \
|
|
--set JAVA "${jre}/bin/java"
|
|
|
|
chmod +x $out/bin/cytoscape
|
|
'';
|
|
|
|
meta = {
|
|
homepage = "http://www.cytoscape.org";
|
|
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;
|
|
};
|
|
}
|