git.iko.soy/typeable/nixpkgs
on master help sign in
gnumeric: fix darwin build by upstream patch
commit12bdb0dc3f3fca256c3874246b7e0d0da6dafad5 authorVladimír Čunát <v@cunat.cz> dateThu 20 Jun 2019, 07:43 (7 years ago) parent2f6023b
1 file changed+12−3
pkgs/applications/office/gnumeric/default.nix+12−3
pkgs/applications/office/gnumeric/default.nix+12−3
@@ -1,22 +1,31 @@
11{ stdenv, fetchurl, pkgconfig, intltool, perlPackages
22, goffice, gnome3, wrapGAppsHook, gtk3, bison, pythonPackages
3−, itstool
3+, itstool, autoreconfHook
44}:
55
66let
77 inherit (pythonPackages) python pygobject3;
88in stdenv.mkDerivation rec {
99 pname = "gnumeric";
10− version = "1.12.45";
10+ version = "1.12.45"; # TODO next release: remove gamma patch and autoreconfHook
1111
1212 src = fetchurl {
1313 url = "mirror://gnome/sources/${pname}/${stdenv.lib.versions.majorMinor version}/${pname}-${version}.tar.xz";
1414 sha256 = "0c8dl1kvnj3g32qy3s92qpqpqfy0in59cx005gjvvzsflahav61h";
1515 };
1616
17+ patches = stdenv.lib.optional stdenv.isDarwin
18+ # https://gitlab.gnome.org/GNOME/gnumeric/issues/402
19+ (fetchurl {
20+ name = "math-gamma.patch";
21+ url = "https://gitlab.gnome.org/GNOME/gnumeric/uploads/cf8d162bc719de92e97d01cb0ba5b637/ppp";
22+ sha256 = "17wiigs06qc86a1nghwcg3pcnpa28123jblgsxpy3j7drardgnlp";
23+ });
24+
1725 configureFlags = [ "--disable-component" ];
1826
19− nativeBuildInputs = [ pkgconfig intltool bison itstool wrapGAppsHook ];
27+ nativeBuildInputs = [ pkgconfig intltool bison itstool wrapGAppsHook ]
28+ ++ stdenv.lib.optional stdenv.isDarwin autoreconfHook;
2029
2130 # ToDo: optional libgda, introspection?
2231 buildInputs = [