2008-01-30 17:20:48 +00:00
|
|
|
args: with args;
|
|
|
|
stdenv.mkDerivation {
|
2010-02-16 21:29:35 +00:00
|
|
|
name = "freemind-0.9.0_RC_6";
|
2007-12-12 06:42:37 +00:00
|
|
|
|
2008-01-30 17:20:48 +00:00
|
|
|
src = fetchurl {
|
2010-02-16 21:29:35 +00:00
|
|
|
url = mirror://sourceforge/freemind/freemind-src-0.9.0_RC_6.tar.gz;
|
|
|
|
sha256 = "0qxpwqmb4xd8c83zh76gczmx0hsx5m209k7p60kh7c4f25snhngf";
|
2007-12-12 06:42:37 +00:00
|
|
|
};
|
|
|
|
|
2008-01-30 17:20:48 +00:00
|
|
|
buildInputs = [jdk ant];
|
2007-12-12 06:42:37 +00:00
|
|
|
|
2010-02-16 21:29:35 +00:00
|
|
|
phases="unpackPhase patchPhase buildPhase installPhase";
|
|
|
|
|
|
|
|
patchPhase=''
|
|
|
|
# There is a complain about this. I don't understand it.
|
|
|
|
mkdir plugins/plugins
|
|
|
|
'';
|
2007-12-12 06:42:37 +00:00
|
|
|
|
|
|
|
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 ?)
|
|
|
|
|
2008-09-07 22:17:49 +01:00
|
|
|
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
|
2009-10-13 22:45:30 +01:00
|
|
|
export PATH=${args.coreutils}/bin:${args.gnugrep}/bin:"$PATH"
|
|
|
|
export JAVA_HOME="${jre}"
|
|
|
|
export LIBXCB_ALLOW_SLOPPY_LOCK=true
|
|
|
|
$out/nix-support/dist/freemind.sh
|
2008-09-07 22:17:49 +01:00
|
|
|
EOF
|
|
|
|
|
|
|
|
chmod +x $out/{bin/freemind,nix-support/dist/freemind.sh}
|
|
|
|
'';
|
2007-12-12 06:42:37 +00:00
|
|
|
|
|
|
|
meta = {
|
|
|
|
description = "mind mapping software";
|
|
|
|
homepage = http://freemind.sourceforge.net/wiki/index.php/Main_Page;
|
|
|
|
license = "GPL";
|
|
|
|
};
|
|
|
|
}
|