2023-07-15 17:15:38 +00:00
|
|
|
{ lib, fetchFromGitHub, jdk11, maven, javaPackages }:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
let
|
2023-07-15 17:15:38 +00:00
|
|
|
mavenJdk11 = maven.override {
|
|
|
|
jdk = jdk11;
|
|
|
|
};
|
|
|
|
in
|
|
|
|
mavenJdk11.buildMavenPackage rec {
|
|
|
|
pname = "gephi";
|
|
|
|
version = "0.10.1";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "gephi";
|
|
|
|
repo = "gephi";
|
|
|
|
rev = "v${version}";
|
2023-07-15 17:15:38 +00:00
|
|
|
hash = "sha256-ZNSEaiD32zFfF2ISKa1CmcT9Nq6r5i2rNHooQAcVbn4=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2023-07-15 17:15:38 +00:00
|
|
|
mvnHash = "sha256-/2/Yb26Ry0NHQQ3j0LXnjwC0wQqJiztvTgWixyMJqvg=";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2023-07-15 17:15:38 +00:00
|
|
|
nativeBuildInputs = [ jdk11 mavenJdk11 ];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
installPhase = ''
|
|
|
|
cp -r modules/application/target/gephi $out
|
|
|
|
|
|
|
|
# remove garbage
|
|
|
|
find $out -type f -name .lastModified -delete
|
|
|
|
find $out -type f -regex '.+\.exe' -delete
|
|
|
|
|
|
|
|
# use self-compiled JOGL to avoid patchelf'ing .so inside jars
|
|
|
|
rm $out/gephi/modules/ext/org.gephi.visualization/org-jogamp-{jogl,gluegen}/*.jar
|
2023-07-15 17:15:38 +00:00
|
|
|
cp ${javaPackages.jogl_2_4_0}/share/java/jogl*.jar $out/gephi/modules/ext/org.gephi.visualization/org-jogamp-jogl/
|
|
|
|
cp ${javaPackages.jogl_2_4_0}/share/java/glue*.jar $out/gephi/modules/ext/org.gephi.visualization/org-jogamp-gluegen/
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2023-07-15 17:15:38 +00:00
|
|
|
printf "\n\njdkhome=${jdk11}\n" >> $out/etc/gephi.conf
|
2020-04-24 23:36:52 +00:00
|
|
|
'';
|
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
meta = with lib; {
|
2020-04-24 23:36:52 +00:00
|
|
|
description = "A platform for visualizing and manipulating large graphs";
|
|
|
|
homepage = "https://gephi.org";
|
2022-06-16 17:23:12 +00:00
|
|
|
sourceProvenance = with sourceTypes; [
|
|
|
|
fromSource
|
|
|
|
binaryBytecode # deps
|
|
|
|
];
|
2020-04-24 23:36:52 +00:00
|
|
|
license = licenses.gpl3;
|
|
|
|
maintainers = [ maintainers.taeer ];
|
|
|
|
platforms = [ "x86_64-linux" ];
|
|
|
|
};
|
|
|
|
}
|