about summary refs log tree commit diff
path: root/pkgs/applications/misc/freemind
diff options
context:
space:
mode:
authorMarc Weber <marco-oweber@gmx.de>2007-12-12 06:42:37 +0000
committerMarc Weber <marco-oweber@gmx.de>2007-12-12 06:42:37 +0000
commit152d8c77dab9000cacdd1004a4a15cefa33829a7 (patch)
treedd0780ec417b3e00422c2a27199fb114740e8f10 /pkgs/applications/misc/freemind
parent11978272ae3c5eeb36c6a4502694da796dbf26b1 (diff)
freemind (mind mapping tool) added
svn path=/nixpkgs/trunk/; revision=9921
Diffstat (limited to 'pkgs/applications/misc/freemind')
-rw-r--r--pkgs/applications/misc/freemind/default.nix45
1 files changed, 45 insertions, 0 deletions
diff --git a/pkgs/applications/misc/freemind/default.nix b/pkgs/applications/misc/freemind/default.nix
new file mode 100644
index 0000000000000..79b00204fd401
--- /dev/null
+++ b/pkgs/applications/misc/freemind/default.nix
@@ -0,0 +1,45 @@
+args:
+args.stdenv.mkDerivation {
+  name = "freemind-0.9.0_Beta_13";
+
+  src = args.fetchurl {
+    url = http://downloads.sourceforge.net/freemind/freemind-src-0.9.0_Beta_13_icon_butterfly.tar.gz;
+    sha256 = "00389bhg73qknydrq0f3bskb5lyrdg2p58mnnp19wdvzzmfbic4w";
+  };
+
+  buildInputs =(with args; [jdk ant]);
+
+  inherit (args) jre;
+
+  phases="buildPhase installPhase";
+
+  buildPhase="ant dist";
+# LIBXCB_ALLOW_SLOPPY_LOCK=true :
+# don't know yet what this option really means but I'm no longer getting
+#   Checking Java Version...
+#   Locking assertion failure.  Backtrace:
+#   java: xcb_xlib.c:82: xcb_xlib_unlock: Assertion `c->xlib.lock' failed
+# this way
+# reference and more info https://bugs.launchpad.net/ubuntu/+source/sun-java5/+bug/86103
+# JDK 7 beta seems to have fixed this (bug ?)
+
+  installPhase="
+    ensureDir \$out/{bin,nix-support}
+    cp -r ../bin/dist \$out/nix-support
+    sed -i 's/which/type -p/' \$out/nix-support/dist/freemind.sh
+    cat > \$out/bin/freemind << EOF
+#!/bin/sh
+export LIBXCB_ALLOW_SLOPPY_LOCK=true
+export JAVA_HOME=\$jre
+\$out/nix-support/dist/freemind.sh
+EOF
+
+    chmod +x \$out/{bin/freemind,nix-support/dist/freemind.sh}
+    ";
+
+  meta = {
+      description = "mind mapping software";
+      homepage = http://freemind.sourceforge.net/wiki/index.php/Main_Page;
+      license = "GPL";
+  }; 
+}