2016-09-11 22:24:51 +01:00
|
|
|
{ fetchurl, stdenv, pkgconfig, glib, gtk2, libglade, bzip2
|
2015-04-10 16:02:57 +01:00
|
|
|
, pango, libgsf, libxml2, libart, intltool, gettext
|
2015-06-11 19:50:43 +01:00
|
|
|
, cairo, gconf, libgnomeui, pcre, goffice/*just meta*/ }:
|
2015-04-10 16:02:57 +01:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
name = "goffice-0.8.17";
|
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "mirror://gnome/sources/goffice/0.8/${name}.tar.xz";
|
|
|
|
sha256 = "165070beb67b84580afe80a8a100b674a81d553ab791acd72ac0c655f4fadb15";
|
|
|
|
};
|
|
|
|
|
|
|
|
# fix linking error: undefined reference to pcre_info
|
|
|
|
patches = [ ./pcre_info.patch ]; # inspired by https://bugs.php.net/bug.php?id=60986
|
|
|
|
|
2017-09-14 20:24:37 +01:00
|
|
|
nativeBuildInputs = [ pkgconfig ];
|
2015-04-10 16:02:57 +01:00
|
|
|
buildInputs = [
|
2017-09-14 20:24:37 +01:00
|
|
|
libglade bzip2 libart intltool gettext
|
2015-04-10 16:02:57 +01:00
|
|
|
gconf libgnomeui pcre
|
|
|
|
];
|
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
|
|
|
# All these are in the "Requires:" field of `libgoffice-0.6.pc'.
|
2016-09-11 22:24:51 +01:00
|
|
|
glib libgsf libxml2 gtk2 libglade libart cairo pango
|
2015-04-10 16:02:57 +01:00
|
|
|
];
|
|
|
|
|
|
|
|
postInstall =
|
|
|
|
''
|
|
|
|
# Get GnuCash to build. Might be unnecessary if we upgrade pkgconfig.
|
|
|
|
substituteInPlace $out/lib/pkgconfig/libgoffice-*.pc --replace Requires.private Requires
|
|
|
|
'';
|
|
|
|
|
|
|
|
doCheck = true;
|
|
|
|
|
2015-06-11 19:50:43 +01:00
|
|
|
meta = goffice.meta // {
|
2015-04-10 16:02:57 +01:00
|
|
|
maintainers = [ ];
|
|
|
|
};
|
|
|
|
}
|