12 stdenv.mkDerivation (finalAttrs: {
17 url = "mirror://sourceforge/freemind/freemind-src-${finalAttrs.version}.tar.gz";
18 hash = "sha256-AYKFEmsn6uc5K4w7+1E/Jb1wuZB0QOXrggnyC0+9hhk=";
29 # disable the <buildnumer> task because it would edit version.properties
30 # and add a "last edited" header to it, which is non-deterministic
31 sed -i '/<buildnumber/d' build.xml
33 # replace dependency on `which`
34 substituteInPlace freemind.sh \
35 --replace-fail "which" "type -p"
43 # Workaround for javac encoding errors
44 # Note: not sure if this is still needed
45 env.JAVA_TOOL_OPTIONS = "-Dfile.encoding=UTF8";
55 ant dist -Ddist=$out/share/freemind
60 makeWrapper $out/share/freemind/freemind.sh $out/bin/freemind \
61 --set JAVA_HOME ${jre}
65 description = "Mind-mapping software";
66 homepage = "https://freemind.sourceforge.net/wiki/index.php/Main_Page";
67 mainProgram = "freemind";
68 maintainers = with lib.maintainers; [ tomasajt ];
69 license = lib.licenses.gpl2Plus;
70 platforms = lib.platforms.linux;
71 sourceProvenance = with lib.sourceTypes; [
73 binaryBytecode # source bundles dependencies as jars