Files
nixpkgs/pkgs/by-name/cy/cytoscape/package.nix
Dark Steveneq 646b892680
Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
push sheeet
2025-10-09 14:15:47 +02:00

53 lines
1.2 KiB
Nix

{
lib,
stdenv,
fetchurl,
openjdk17,
makeWrapper,
replaceVars,
coreutils,
}:
stdenv.mkDerivation rec {
pname = "cytoscape";
version = "3.10.3";
src = fetchurl {
url = "https://github.com/cytoscape/cytoscape/releases/download/${version}/${pname}-unix-${version}.tar.gz";
sha256 = "sha256-62i3F6uGNoC8z55iUIYQDAimWcQocsZ52USdpruZRLQ=";
};
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.
(replaceVars ./gen_vmoptions_to_homedir.patch {
inherit coreutils;
})
];
nativeBuildInputs = [ makeWrapper ];
buildInputs = [ openjdk17 ];
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 "${openjdk17}" \
--set JAVA "${openjdk17}/bin/java"
chmod +x $out/bin/cytoscape
'';
meta = {
homepage = "http://www.cytoscape.org";
description = "General platform for complex network analysis and visualization";
mainProgram = "cytoscape";
license = lib.licenses.lgpl21;
maintainers = [ lib.maintainers.mimame ];
platforms = lib.platforms.unix;
};
}