Merge pull request #12975 from tlevine/gnucash

gnucash: enable dbi
This commit is contained in:
Peter Simons 2016-02-13 20:34:35 +01:00
commit b3f54c324c

View File

@ -1,7 +1,7 @@
{ fetchurl, stdenv, pkgconfig, libxml2, libxslt, perl, perlPackages, gconf, guile { fetchurl, stdenv, pkgconfig, libxml2, libxslt, perl, perlPackages, gconf, guile
, intltool, glib, gtk, libofx, aqbanking, gwenhywfar, libgnomecanvas, goffice , intltool, glib, gtk, libofx, aqbanking, gwenhywfar, libgnomecanvas, goffice
, webkit, glibcLocales, gsettings_desktop_schemas, makeWrapper, dconf, file , 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 perl perlPackages.FinanceQuote perlPackages.DateManip
# guile # guile
guile slibGuile guile slibGuile
# database backends
libdbi libdbiDrivers
# build # build
makeWrapper makeWrapper
]; ];
@ -41,8 +43,14 @@ stdenv.mkDerivation rec {
patchShebangs ./src 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 = '' postInstall = ''
# Auto-updaters don't make sense in Nix. # Auto-updaters don't make sense in Nix.