nixpkgs-suyu/pkgs/applications/science/misc/gephi/default.nix

38 lines
777 B
Nix
Raw Normal View History

2016-06-26 22:40:00 +02:00
{stdenv, fetchurl, jdk}:
with stdenv.lib;
2018-01-13 23:18:26 +01:00
let version = "0.9.2"; in
2016-06-26 22:40:00 +02:00
stdenv.mkDerivation {
name = "gephi-${version}";
src = fetchurl {
url = "https://github.com/gephi/gephi/releases/download/v${version}/gephi-${version}-linux.tar.gz";
2018-01-13 23:18:26 +01:00
sha256 = "1wr3rka8j2y10nnwbg27iaxkbrp4d7d07ccs9n94yqv6wqawj5z8";
2016-06-26 22:40:00 +02:00
};
meta = {
inherit version;
description = "A platform for visualizing and manipulating large graphs";
homepage = https://gephi.org;
license = licenses.gpl3;
maintainers = [maintainers.taeer];
platforms = platforms.linux;
};
buildInputs = [jdk];
configurePhase = "
echo \"jdkhome=${jdk}\" >> etc/gephi.conf
";
dontBuild = true;
installPhase = "
mkdir $out
for a in ./*; do
mv $a $out
done
";
}