diff --git a/pkgs/applications/office/gnucash/2.6.nix b/pkgs/applications/office/gnucash/2.6.nix new file mode 100644 index 000000000000..df6eabbcff0b --- /dev/null +++ b/pkgs/applications/office/gnucash/2.6.nix @@ -0,0 +1,100 @@ +{ 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 +}: + +/* +Two cave-ats right now: + 1. HTML reports are broken + 2. You need to have dconf installed (GNOME3 should have it automatically, + otherwise put it in environment.systemPackages), for settings +*/ + +stdenv.mkDerivation rec { + name = "gnucash-2.6.9"; + + src = fetchurl { + url = "mirror://sourceforge/gnucash/${name}.tar.bz2"; + sha256 = "0iw25l1kv60cg6fd2vg11mcvzmjqnc5p9lp3rjy06ghkjfrn3and"; + }; + + buildInputs = [ + # general + intltool pkgconfig libxml2 libxslt glibcLocales file gettext swig enchant + bzip2 isocodes + # glib, gtk... + glib gtk goffice webkit + # gnome... + dconf gconf libgnomecanvas gsettings_desktop_schemas + # financial + libofx aqbanking gwenhywfar + # perl + perl perlPackages.FinanceQuote perlPackages.DateManip + # guile + guile slibGuile + # build + makeWrapper + ]; + + patchPhase = '' + patchShebangs ./src + ''; + + configureFlags = "CFLAGS=-O3 CXXFLAGS=-O3 --disable-dbi --enable-ofx --enable-aqbanking"; + + + postInstall = '' + # Auto-updaters don't make sense in Nix. + rm $out/bin/gnc-fq-update + + #sed -i $out/bin/update-gnucash-gconf \ + # -e 's|--config-source=[^ ]* --install-schema-file|--makefile-install-rule|' + + for prog in $(echo "$out/bin/"*) + do + # Don't wrap the gnc-fq-* scripts, since gnucash calls them as + # "perl