about summary refs log tree commit diff
path: root/pkgs/applications/office
diff options
context:
space:
mode:
authorPeter Simons <simons@cryp.to>2011-07-10 14:04:14 +0000
committerPeter Simons <simons@cryp.to>2011-07-10 14:04:14 +0000
commit6ad966c8b8b86b88fa2fbaca303c2cd025846f0e (patch)
tree9ba8bdbd10ad46ce9bc8fab80f94d64c91ae4af5 /pkgs/applications/office
parent6b9ab942b50e044e09f439e7c9294ea1dd2157df (diff)
gnucash: re-enable the test suite
svn path=/nixpkgs/trunk/; revision=27691
Diffstat (limited to 'pkgs/applications/office')
-rw-r--r--pkgs/applications/office/gnucash/default.nix24
1 files changed, 6 insertions, 18 deletions
diff --git a/pkgs/applications/office/gnucash/default.nix b/pkgs/applications/office/gnucash/default.nix
index 880c749ea4461..e2cbd3e2d6f7b 100644
--- a/pkgs/applications/office/gnucash/default.nix
+++ b/pkgs/applications/office/gnucash/default.nix
@@ -3,6 +3,9 @@
 , gettext, intltool, perl, guile, slibGuile, swig, isocodes, bzip2
 , makeWrapper }:
 
+# TODO: Fix the gconf issue. The following posting might be the missing clue:
+# <http://osdir.com/ml/linux.distributions.nixos/2007-09/msg00003.html>.
+
 let
   name = "gnucash-2.4.7";
 in
@@ -20,15 +23,7 @@ stdenv.mkDerivation {
     gettext intltool perl guile slibGuile swig isocodes bzip2 makeWrapper
   ];
 
-  /* The test suite isn't enabled at the moment, so this setting
-     shouldn't be necessary.
-
-  preConfigure = ''
-    # The `.gnucash' directory, used by the test suite.
-    export GNC_DOT_DIR="$PWD/dot-gnucash"
-    echo "\$GNC_DOT_DIR set to \`$GNC_DOT_DIR'"
-  '';
-   */
+  NIX_LDFLAGS = "-rpath=${libgnomeui}/lib/libglade/2.0 -rpath=${libbonoboui}/lib/libglade/2.0 -rpath=${guile}/lib";
 
   configureFlags = "CPPFLAGS=-DNDEBUG CFLAGS=-O2 CXXFLAGS=-O2 --disable-dbi";
   /* More flags to figure out:
@@ -39,8 +34,6 @@ stdenv.mkDerivation {
        --enable-python-bindings  enable python bindings
    */
 
-  NIX_LDFLAGS = "-rpath=${libgnomeui}/lib/libglade/2.0 -rpath=${libbonoboui}/lib/libglade/2.0 -rpath=${guile}/lib";
-
   postInstall = ''
     for prog in "$out/bin/"*
     do
@@ -51,13 +44,8 @@ stdenv.mkDerivation {
     done
   '';
 
-  doCheck = false;
-  /* The test suite fails as follows:
-
-       /tmp/nix-build-y1mba6vkkscggnfigji57mwd0zhvnx1w-gnucash-2.4.7.drv-0/gnucash-2.4.7/src/import-export/test/.libs/lt-test-import-parse: error while loading shared libraries: libguile.so.17: cannot open shared object file: No such file or directory
-
-  */
-
+  preCheck = "export GNC_DOT_DIR=$PWD/dot-gnucash";
+  doCheck = true;
   enableParallelBuilding = true;
 
   meta = {