2008-01-30 18:20:48 +01:00
|
|
|
args: with args;
|
|
|
|
stdenv.mkDerivation {
|
2007-12-12 07:42:37 +01:00
|
|
|
name = "freemind-0.9.0_Beta_13";
|
|
|
|
|
2008-01-30 18:20:48 +01:00
|
|
|
src = fetchurl {
|
2007-12-12 07:42:37 +01:00
|
|
|
url = http://downloads.sourceforge.net/freemind/freemind-src-0.9.0_Beta_13_icon_butterfly.tar.gz;
|
|
|
|
sha256 = "00389bhg73qknydrq0f3bskb5lyrdg2p58mnnp19wdvzzmfbic4w";
|
|
|
|
};
|
|
|
|
|
2008-01-30 18:20:48 +01:00
|
|
|
buildInputs = [jdk ant];
|
2007-12-12 07:42:37 +01:00
|
|
|
|
2008-01-30 18:20:48 +01:00
|
|
|
inherit jre;
|
2007-12-12 07:42:37 +01:00
|
|
|
|
2008-02-27 01:01:14 +01:00
|
|
|
phases="unpackPhase buildPhase installPhase";
|
2007-12-12 07:42:37 +01: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 ?)
|
|
|
|
|
|
|
|
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";
|
|
|
|
};
|
|
|
|
}
|