nixpkgs/pkgs/applications/science/misc/cytoscape/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

45 lines
1.2 KiB
Nix
Raw Normal View History

2021-01-15 14:21:58 +01:00
{ lib, stdenv, fetchurl, jre, makeWrapper, substituteAll, coreutils }:
2016-06-12 22:48:32 +02:00
stdenv.mkDerivation rec {
pname = "cytoscape";
2022-02-11 10:21:06 +01:00
version = "3.9.1";
2016-06-12 22:48:32 +02:00
src = fetchurl {
url = "https://github.com/cytoscape/cytoscape/releases/download/${version}/${pname}-unix-${version}.tar.gz";
2022-02-11 10:21:06 +01:00
sha256 = "sha256-I4C2yGiIygnFUkRBC4LBSQFgjZlVKCoQGRphynVpscw=";
2016-06-12 22:48:32 +02: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;
})
];
nativeBuildInputs = [ makeWrapper ];
buildInputs = [ jre ];
2016-06-12 22:48:32 +02:00
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 22:48:32 +02:00
--set JAVA_HOME "${jre}" \
--set JAVA "${jre}/bin/java"
chmod +x $out/bin/cytoscape
'';
meta = {
homepage = "http://www.cytoscape.org";
2016-06-12 22:48:32 +02:00
description = "A general platform for complex network analysis and visualization";
2021-01-15 14:21:58 +01:00
license = lib.licenses.lgpl21;
maintainers = [lib.maintainers.mimame];
platforms = lib.platforms.unix;
2016-06-12 22:48:32 +02:00
};
}