updated freemind to 0.9.0_Beta_20, purified env sto make it work for everyone a

svn path=/nixpkgs/trunk/; revision=12819
This commit is contained in:
Marc Weber 2008-09-07 21:17:49 +00:00
parent 958ea79a78
commit 1aea0c12a3
2 changed files with 20 additions and 16 deletions

View File

@ -1,10 +1,10 @@
args: with args;
stdenv.mkDerivation {
name = "freemind-0.9.0_Beta_13";
name = "freemind-0.9.0_Beta_20";
src = fetchurl {
url = http://downloads.sourceforge.net/freemind/freemind-src-0.9.0_Beta_13_icon_butterfly.tar.gz;
sha256 = "00389bhg73qknydrq0f3bskb5lyrdg2p58mnnp19wdvzzmfbic4w";
url = mirror://sourceforge/freemind/freemind-src-0.9.0_Beta_20.tar.gz;
sha256 = "1ja573n0g9zpdrljabgps20njg1p76hvsv8xjb56cii2dr77yspv";
};
buildInputs = [jdk ant];
@ -23,19 +23,23 @@ stdenv.mkDerivation {
# 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
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
# using pure env has removed the segfault for me :-)
exec env -i sh -c "
export PATH=\"${args.coreutils}/bin:${args.gnugrep}/bin\";
export DISPLAY=\"\$DISPLAY\";
export JAVA_HOME=\"$jre\";
export LIBXCB_ALLOW_SLOPPY_LOCK=true;
$out/nix-support/dist/freemind.sh"
EOF
chmod +x \$out/{bin/freemind,nix-support/dist/freemind.sh}
";
chmod +x $out/{bin/freemind,nix-support/dist/freemind.sh}
'';
meta = {
description = "mind mapping software";

View File

@ -6201,7 +6201,7 @@ let
};
freemind = import ../applications/misc/freemind {
inherit fetchurl stdenv ant;
inherit fetchurl stdenv ant coreutils gnugrep;
jdk = jdk;
jre = jdk;
};