Skip to content

Commit

Permalink
gtk3: compute DPI properly when Xft options are not used
Browse files Browse the repository at this point in the history
Taken from #25892

Fixes #25023
  • Loading branch information
abbradar authored and orivej committed Nov 17, 2017
1 parent ccb93ae commit 88105ee
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions pkgs/development/libraries/gtk+/3.x.nix
@@ -1,4 +1,4 @@
{ stdenv, fetchurl, pkgconfig, gettext, perl
{ stdenv, fetchurl, fetchpatch, pkgconfig, gettext, perl
, expat, glib, cairo, pango, gdk_pixbuf, atk, at_spi2_atk, gobjectIntrospection
, xorg, epoxy, json_glib, libxkbcommon, gmp
, waylandSupport ? stdenv.isLinux, wayland, wayland-protocols
Expand Down Expand Up @@ -29,7 +29,14 @@ stdenv.mkDerivation rec {

nativeBuildInputs = [ pkgconfig gettext gobjectIntrospection perl ];

patches = [ ./3.0-immodules.cache.patch ];
patches = [
./3.0-immodules.cache.patch
(fetchpatch {
name = "Xft-setting-fallback-compute-DPI-properly.patch";
url = "https://bug757142.bugzilla-attachments.gnome.org/attachment.cgi?id=344123";

This comment has been minimized.

Copy link
@kvtb

kvtb Sep 5, 2021

Contributor

https://bug757142.bugzilla-attachments.gnome.org/attachment.cgi?id=344123 answers with xz-compressed patch which should be unpacked first to match sha256

sha256 = "0g6fhqcv8spfy3mfmxpyji93k8d4p4q4fz1v9a1c1cgcwkz41d7p";
})
];

buildInputs = [ libxkbcommon epoxy json_glib ];
propagatedBuildInputs = with xorg; with stdenv.lib;
Expand Down

0 comments on commit 88105ee

Please sign in to comment.