git.iko.soy/typeable/nixpkgs
on master help sign in
gimp: fix build on darwin

despite us currently having a gtk2 without `GDK_OSX_BIGSUR` defined, gimp have gone and spelt it `GDK_OSX_BIG_SUR` so define this manually anyway

commit67c0df93ead69f20418853fdbd1356671e869ed6 authorRobert Scott <code@humanleg.org.uk> dateSat 20 Nov 2021, 16:48 (5 years ago) parentbc9a53b
1 file changed+2
pkgs/applications/graphics/gimp/default.nix+2
pkgs/applications/graphics/gimp/default.nix+2
@@ -148,6 +148,8 @@ in stdenv.mkDerivation rec {
148148 # test-eevl.c:64:36: error: initializer element is not a compile-time constant
149149 doCheck = !stdenv.isDarwin;
150150
151+ NIX_CFLAGS_COMPILE = lib.optional stdenv.isDarwin "-DGDK_OSX_BIG_SUR=16";
152+
151153 # Check if librsvg was built with --disable-pixbuf-loader.
152154 PKG_CONFIG_GDK_PIXBUF_2_0_GDK_PIXBUF_MODULEDIR = "${librsvg}/${gdk-pixbuf.moduleDir}";
153155