nixpkgs/pkgs/applications/science/misc/cytoscape/default.nix
Anders Riutta c792fd107b
cytoscape: bump 3.6.1 -> 3.7.1
Needed to update URL, because `wget "http://chianti.ucsd.edu/cytoscape-3.7.1/cytoscape-3.7.1.tar.gz"` returns `404`.
2019-02-27 16:40:50 -08:00

35 lines
914 B
Nix

{ stdenv, fetchurl, jre, makeWrapper }:
stdenv.mkDerivation rec {
name = "cytoscape-${version}";
version = "3.7.1";
src = fetchurl {
url = "https://github.com/cytoscape/cytoscape/releases/download/${version}/${name}.tar.gz";
sha256 = "1mhsngbwbgdwl70wj7850zg94534lasihwv2ryifardm35mkh48k";
};
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.mimadrid];
platforms = stdenv.lib.platforms.unix;
};
}