git.iko.soy/typeable/nixpkgs
on master help sign in
gnucash2{4,6}: drop
commit370d08f0d2b2a14bcde66e985888ec4150d7bb44 authorJan Tojnar <jtojnar@gmail.com> dateTue 1 Jan 2019, 23:50 (8 years ago) parent38ca0c6
3 files changed−226
pkgs/applications/office/gnucash/2.4.nix−91 pkgs/applications/office/gnucash/2.6.nix−116 pkgs/top-level/all-packages.nix−19
pkgs/applications/office/gnucash/2.4.nixdeleted−91
@@ -1,91 +0,0 @@
1−{ fetchurl, stdenv, pkgconfig, libxml2, gconf, glib, gtk2, libgnomeui, libofx
2−, libgtkhtml, gtkhtml, libgnomeprint, goffice, enchant, gettext, libbonoboui
3−, intltool, perl, guile, slibGuile, swig, isocodes, bzip2, makeWrapper, libglade
4−, libgsf, libart_lgpl, perlPackages, aqbanking, gwenhywfar, hicolor-icon-theme
5−, pcre
6−}:
7−
8−/* If you experience GConf errors when running GnuCash on NixOS, see
9− * http://wiki.nixos.org/wiki/Solve_GConf_errors_when_running_GNOME_applications
10− * for a possible solution.
11− */
12−
13−stdenv.mkDerivation rec {
14− name = "gnucash-2.4.15";
15−
16− src = fetchurl {
17− url = "mirror://sourceforge/gnucash/${name}.tar.bz2";
18− sha256 = "058mgfwic6a2g7jq6iip5hv45md1qaxy25dj4lvlzjjr141wm4gx";
19− };
20−
21− nativeBuildInputs = [ pkgconfig ];
22− buildInputs = [
23− libxml2 gconf glib gtk2 libgnomeui libgtkhtml gtkhtml
24− libgnomeprint goffice enchant gettext intltool perl guile slibGuile
25− swig isocodes bzip2 makeWrapper libofx libglade libgsf libart_lgpl
26− perlPackages.DateManip perlPackages.FinanceQuote aqbanking gwenhywfar
27− hicolor-icon-theme pcre
28− ];
29− propagatedUserEnvPkgs = [ gconf ];
30−
31− configureFlags = [
32− "CFLAGS=-O3"
33− "CXXFLAGS=-O3"
34− "--disable-dbi"
35− "--enable-ofx"
36− "--enable-aqbanking"
37− ];
38−
39− postInstall = ''
40− # Auto-updaters don't make sense in Nix.
41− rm $out/bin/gnc-fq-update
42−
43− sed -i $out/bin/update-gnucash-gconf \
44− -e 's|--config-source=[^ ]* --install-schema-file|--makefile-install-rule|'
45−
46− for prog in $(echo "$out/bin/"*)
47− do
48− # Don't wrap the gnc-fq-* scripts, since gnucash calls them as
49− # "perl <script>', i.e. they must be Perl scripts.
50− if [[ $prog =~ gnc-fq ]]; then continue; fi
51− wrapProgram "$prog" \
52− --set SCHEME_LIBRARY_PATH "$SCHEME_LIBRARY_PATH" \
53− --prefix GUILE_LOAD_PATH ":" "$GUILE_LOAD_PATH" \
54− --prefix LD_LIBRARY_PATH ":" "${libgnomeui}/lib/libglade/2.0" \
55− --prefix LD_LIBRARY_PATH ":" "${libbonoboui}/lib/libglade/2.0" \
56− --prefix PERL5LIB ":" "$PERL5LIB" \
57− --set GCONF_CONFIG_SOURCE 'xml::~/.gconf' \
58− --prefix PATH ":" "$out/bin:${stdenv.lib.makeBinPath [ perl gconf ]}"
59− done
60− '';
61−
62− # The following settings fix failures in the test suite. It's not required otherwise.
63− NIX_LDFLAGS = "-rpath=${guile}/lib -rpath=${glib.out}/lib";
64− preCheck = "export GNC_DOT_DIR=$PWD/dot-gnucash";
65−
66− doCheck = false; # https://github.com/NixOS/nixpkgs/issues/11084
67−
68− enableParallelBuilding = true;
69−
70− meta = {
71− description = "Personal and small-business financial-accounting application";
72−
73− longDescription = ''
74− GnuCash is personal and small-business financial-accounting software,
75− freely licensed under the GNU GPL and available for GNU/Linux, BSD,
76− Solaris, macOS and Microsoft Windows.
77−
78− Designed to be easy to use, yet powerful and flexible, GnuCash allows
79− you to track bank accounts, stocks, income and expenses. As quick and
80− intuitive to use as a checkbook register, it is based on professional
81− accounting principles to ensure balanced books and accurate reports.
82− '';
83−
84− license = stdenv.lib.licenses.gpl2Plus;
85−
86− homepage = http://www.gnucash.org/;
87−
88− maintainers = [ stdenv.lib.maintainers.peti stdenv.lib.maintainers.domenkozar ];
89− platforms = stdenv.lib.platforms.gnu ++ stdenv.lib.platforms.linux;
90− };
91−}
pkgs/applications/office/gnucash/2.6.nixdeleted−116
@@ -1,116 +0,0 @@
1−{ fetchurl, fetchpatch, stdenv, intltool, pkgconfig, file, makeWrapper
2−, libxml2, libxslt, perl, perlPackages, gconf, guile
3−, glib, gtk2, libofx, aqbanking, gwenhywfar, libgnomecanvas, goffice
4−, webkit, glibcLocales, gsettings-desktop-schemas, dconf
5−, gettext, swig, slibGuile, enchant, bzip2, isocodes, libdbi, libdbiDrivers
6−, pango, gdk_pixbuf, hicolor-icon-theme
7−}:
8−
9−/*
10−Two cave-ats right now:
11− 1. HTML reports are broken
12− 2. You need to have dconf installed (GNOME3 should have it automatically,
13− otherwise put it in environment.systemPackages), for settings
14−*/
15−
16−stdenv.mkDerivation rec {
17− name = "gnucash-2.6.18-1";
18−
19− src = fetchurl {
20− url = "mirror://sourceforge/gnucash/${name}.tar.bz2";
21− sha256 = "1794qi7lkn1kbnhzk08wawacfcphbln3ngdl3q0qax5drv7hnwv8";
22− };
23−
24− patches = [
25− (fetchpatch {
26− sha256 = "11nlf9j7jm1i37mfcmmnkplxr3nlf257fxd01095vd65i2rn1m8h";
27− name = "fix-brittle-test.patch";
28− url = "https://github.com/Gnucash/gnucash/commit/42ac55e03a1a84739f4a5b7a247c31d91c0adc4a.patch";
29− })
30− ];
31−
32− nativeBuildInputs = [ intltool pkgconfig file makeWrapper ];
33−
34− buildInputs = [
35− # general
36− libxml2 libxslt glibcLocales gettext swig enchant
37− bzip2 isocodes
38− # glib, gtk...
39− glib gtk2 goffice webkit hicolor-icon-theme
40− # gnome...
41− dconf gconf libgnomecanvas gsettings-desktop-schemas
42− # financial
43− libofx aqbanking gwenhywfar
44− # perl
45− perl perlPackages.FinanceQuote perlPackages.DateManip
46− # guile
47− guile slibGuile
48− # database backends
49− libdbi libdbiDrivers
50− ];
51−
52− postPatch = ''
53− patchShebangs ./src
54− '';
55−
56− configureFlags = [
57− "CFLAGS=-O3"
58− "CXXFLAGS=-O3"
59− "--enable-dbi"
60− "--with-dbi-dbd-dir=${libdbiDrivers}/lib/dbd/"
61− "--enable-ofx"
62− "--enable-aqbanking"
63− ];
64−
65− postInstall = ''
66− # Auto-updaters don't make sense in Nix.
67− rm $out/bin/gnc-fq-update
68−
69− #sed -i $out/bin/update-gnucash-gconf \
70− # -e 's|--config-source=[^ ]* --install-schema-file|--makefile-install-rule|'
71−
72− for prog in $(echo "$out/bin/"*)
73− do
74− # Don't wrap the gnc-fq-* scripts, since gnucash calls them as
75− # "perl <script>', i.e. they must be Perl scripts.
76− if [[ $prog =~ gnc-fq ]]; then continue; fi
77− wrapProgram "$prog" \
78− --set SCHEME_LIBRARY_PATH "$SCHEME_LIBRARY_PATH" \
79− --prefix GUILE_LOAD_PATH ":" "$GUILE_LOAD_PATH" \
80− --prefix PERL5LIB ":" "$PERL5LIB" \
81− --set GCONF_CONFIG_SOURCE 'xml::~/.gconf' \
82− --prefix XDG_DATA_DIRS : "$GSETTINGS_SCHEMAS_PATH:$out/share/gsettings-schemas/${name}" \
83− --prefix GIO_EXTRA_MODULES : "${stdenv.lib.getLib dconf}/lib/gio/modules" \
84− --prefix PATH ":" "$out/bin:${stdenv.lib.makeBinPath [ perl gconf ]}"
85− done
86− '';
87−
88− # The following settings fix failures in the test suite. It's not required otherwise.
89− LD_LIBRARY_PATH = stdenv.lib.makeLibraryPath [ guile glib gtk2 pango gdk_pixbuf ];
90− preCheck = "export GNC_DOT_DIR=$PWD/dot-gnucash";
91− doCheck = true;
92−
93− enableParallelBuilding = true;
94−
95− meta = {
96− description = "Personal and small-business financial-accounting application";
97−
98− longDescription = ''
99− GnuCash is personal and small-business financial-accounting software,
100− freely licensed under the GNU GPL and available for GNU/Linux, BSD,
101− Solaris, macOS and Microsoft Windows.
102−
103− Designed to be easy to use, yet powerful and flexible, GnuCash allows
104− you to track bank accounts, stocks, income and expenses. As quick and
105− intuitive to use as a checkbook register, it is based on professional
106− accounting principles to ensure balanced books and accurate reports.
107− '';
108−
109− license = stdenv.lib.licenses.gpl2Plus;
110−
111− homepage = http://www.gnucash.org/;
112−
113− maintainers = [ stdenv.lib.maintainers.peti stdenv.lib.maintainers.domenkozar ];
114− platforms = stdenv.lib.platforms.gnu ++ stdenv.lib.platforms.linux;
115− };
116−}
pkgs/top-level/all-packages.nix−19
@@ -17322,25 +17322,6 @@ in
1732217322 inherit (gnome3) dconf;
1732317323 };
1732417324
17325− gnucash24 = callPackage ../applications/office/gnucash/2.4.nix {
17326− inherit (gnome2) libgnomeui libgtkhtml gtkhtml libbonoboui libgnomeprint libglade libart_lgpl;
17327− gconf = gnome2.GConf;
17328− guile = guile_1_8;
17329− slibGuile = slibGuile.override { scheme = guile_1_8; };
17330− goffice = goffice_0_8;
17331− };
17332−
17333− gnucash26 = lowPrio (callPackage ../applications/office/gnucash/2.6.nix {
17334− inherit (gnome2) libgnomecanvas;
17335− inherit (gnome3) dconf;
17336− gconf = gnome2.GConf;
17337− goffice = goffice_0_8;
17338− webkit = webkitgtk24x-gtk2;
17339− guile = guile_1_8;
17340− slibGuile = slibGuile.override { scheme = guile_1_8; };
17341− glib = glib;
17342− });
17343−
1734417325 goffice = callPackage ../development/libraries/goffice { };
1734517326
1734617327 goffice_0_8 = callPackage ../development/libraries/goffice/0.8.nix {