From c9b077f296ecfcdc00c49822cac227bf10a471d2 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Llu=C3=ADs=20Batlle=20i=20Rossell?=
 <viric@vicerveza.homeunix.net>
Date: Tue, 16 Feb 2010 21:29:35 +0000
Subject: [PATCH] Updating freemind, and making it build. (A hack about
 mkdir... strange ant. I don't know how it is supposed to work)

svn path=/nixpkgs/trunk/; revision=20061
---
 pkgs/applications/misc/freemind/default.nix | 13 +++++++++----
 1 file changed, 9 insertions(+), 4 deletions(-)

diff --git a/pkgs/applications/misc/freemind/default.nix b/pkgs/applications/misc/freemind/default.nix
index 525b65caa693..f0e5f6ab0780 100644
--- a/pkgs/applications/misc/freemind/default.nix
+++ b/pkgs/applications/misc/freemind/default.nix
@@ -1,15 +1,20 @@
 args: with args;
 stdenv.mkDerivation {
-  name = "freemind-0.9.0_Beta_20";
+  name = "freemind-0.9.0_RC_6";
 
   src = fetchurl {
-    url = mirror://sourceforge/freemind/freemind-src-0.9.0_Beta_20.tar.gz;
-    sha256 = "1ja573n0g9zpdrljabgps20njg1p76hvsv8xjb56cii2dr77yspv";
+    url = mirror://sourceforge/freemind/freemind-src-0.9.0_RC_6.tar.gz;
+    sha256 = "0qxpwqmb4xd8c83zh76gczmx0hsx5m209k7p60kh7c4f25snhngf";
   };
 
   buildInputs = [jdk ant];
 
-  phases="unpackPhase buildPhase installPhase";
+  phases="unpackPhase patchPhase buildPhase installPhase";
+
+  patchPhase=''
+    # There is a complain about this. I don't understand it.
+    mkdir plugins/plugins
+  '';
 
   buildPhase="ant dist";
 # LIBXCB_ALLOW_SLOPPY_LOCK=true :