diff options
author | Eelco Dolstra <eelco.dolstra@logicblox.com> | 2010-07-28 18:01:17 +0000 |
---|---|---|
committer | Eelco Dolstra <eelco.dolstra@logicblox.com> | 2010-07-28 18:01:17 +0000 |
commit | f1598a8941287ed25deca83cc71c72c256089362 (patch) | |
tree | b4735ba022095233ef2ea865de4145faead12f2e /pkgs/applications/misc/freemind | |
parent | d67aefc19d29a1522b21152f508b90a1c0261c3d (diff) | |
download | nixlib-f1598a8941287ed25deca83cc71c72c256089362.tar nixlib-f1598a8941287ed25deca83cc71c72c256089362.tar.gz nixlib-f1598a8941287ed25deca83cc71c72c256089362.tar.bz2 nixlib-f1598a8941287ed25deca83cc71c72c256089362.tar.lz nixlib-f1598a8941287ed25deca83cc71c72c256089362.tar.xz nixlib-f1598a8941287ed25deca83cc71c72c256089362.tar.zst nixlib-f1598a8941287ed25deca83cc71c72c256089362.zip |
* More cleanup.
svn path=/nixpkgs/trunk/; revision=22798
Diffstat (limited to 'pkgs/applications/misc/freemind')
-rw-r--r-- | pkgs/applications/misc/freemind/default.nix | 40 |
1 files changed, 21 insertions, 19 deletions
diff --git a/pkgs/applications/misc/freemind/default.nix b/pkgs/applications/misc/freemind/default.nix index f0e5f6ab0780..dd6f205eca88 100644 --- a/pkgs/applications/misc/freemind/default.nix +++ b/pkgs/applications/misc/freemind/default.nix @@ -1,4 +1,5 @@ -args: with args; +{ stdenv, fetchurl, jdk, jre, ant, coreutils, gnugrep }: + stdenv.mkDerivation { name = "freemind-0.9.0_RC_6"; @@ -7,43 +8,44 @@ stdenv.mkDerivation { sha256 = "0qxpwqmb4xd8c83zh76gczmx0hsx5m209k7p60kh7c4f25snhngf"; }; - buildInputs = [jdk ant]; + buildInputs = [ jdk ant ]; - phases="unpackPhase patchPhase buildPhase installPhase"; + phases = "unpackPhase patchPhase buildPhase installPhase"; - patchPhase='' + patchPhase = '' # There is a complain about this. I don't understand it. mkdir plugins/plugins ''; 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='' + + # 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 PATH=${args.coreutils}/bin:${args.gnugrep}/bin:"$PATH" + export PATH=${coreutils}/bin:${gnugrep}/bin:"$PATH" 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} - ''; + ''; meta = { - description = "mind mapping software"; - homepage = http://freemind.sourceforge.net/wiki/index.php/Main_Page; - license = "GPL"; + description = "Mind-mapping software"; + homepage = http://freemind.sourceforge.net/wiki/index.php/Main_Page; + license = "GPL"; }; } |