about summary refs log tree commit diff
path: root/pkgs/applications/office
diff options
context:
space:
mode:
authorThomas Levine <_@thomaslevine.com>2016-02-12 19:48:38 +0000
committerThomas Levine <_@thomaslevine.com>2016-02-13 17:47:19 +0000
commit70c339dd47e1fc67bb1e2319f5619e36ded45b59 (patch)
treebd3cf2b595292a0b5e1c22c97e824ea368849f8e /pkgs/applications/office
parent99b43a25dd041e96302fc9a001cedb94a61f3bb6 (diff)
downloadnixlib-70c339dd47e1fc67bb1e2319f5619e36ded45b59.tar
nixlib-70c339dd47e1fc67bb1e2319f5619e36ded45b59.tar.gz
nixlib-70c339dd47e1fc67bb1e2319f5619e36ded45b59.tar.bz2
nixlib-70c339dd47e1fc67bb1e2319f5619e36ded45b59.tar.lz
nixlib-70c339dd47e1fc67bb1e2319f5619e36ded45b59.tar.xz
nixlib-70c339dd47e1fc67bb1e2319f5619e36ded45b59.tar.zst
nixlib-70c339dd47e1fc67bb1e2319f5619e36ded45b59.zip
gnucash: enable dbi
My accounts are stored in the DBI backend (SQLite, specifically).
Before the present change, GnuCash would be compiled without DBI
 support (`--disable-dbi` flag), so I could only use the XML backend.
Now I can use either backend.

I made the change only for 2.6. It looks like 2.4 works the same way,
so maybe I'll enable DBI for that one later.

Making nix packages is delightful! It might replace my accounting hobby!
Diffstat (limited to 'pkgs/applications/office')
-rw-r--r--pkgs/applications/office/gnucash/2.6.nix14
1 files changed, 11 insertions, 3 deletions
diff --git a/pkgs/applications/office/gnucash/2.6.nix b/pkgs/applications/office/gnucash/2.6.nix
index df6eabbcff0b..3c2348bfa8b7 100644
--- a/pkgs/applications/office/gnucash/2.6.nix
+++ b/pkgs/applications/office/gnucash/2.6.nix
@@ -1,7 +1,7 @@
 { fetchurl, stdenv, pkgconfig, libxml2, libxslt, perl, perlPackages, gconf, guile
 , intltool, glib, gtk, libofx, aqbanking, gwenhywfar, libgnomecanvas, goffice
 , webkit, glibcLocales, gsettings_desktop_schemas, makeWrapper, dconf, file
-, gettext, swig, slibGuile, enchant, bzip2, isocodes
+, gettext, swig, slibGuile, enchant, bzip2, isocodes, libdbi, libdbiDrivers
 }:
 
 /*
@@ -33,6 +33,8 @@ stdenv.mkDerivation rec {
     perl perlPackages.FinanceQuote perlPackages.DateManip
     # guile
     guile slibGuile
+    # database backends
+    libdbi libdbiDrivers
     # build
     makeWrapper
   ];
@@ -41,8 +43,14 @@ stdenv.mkDerivation rec {
   patchShebangs ./src
   '';
 
-  configureFlags = "CFLAGS=-O3 CXXFLAGS=-O3 --disable-dbi --enable-ofx --enable-aqbanking";
-
+  configureFlags = [
+    "CFLAGS=-O3"
+    "CXXFLAGS=-O3"
+    "--enable-dbi"
+    "--with-dbi-dbd-dir=${libdbiDrivers}/lib/dbd/"
+    "--enable-ofx"
+    "--enable-aqbanking"
+  ];
 
   postInstall = ''
     # Auto-updaters don't make sense in Nix.