grim: patch for 32bit platforms

Due to -Werror the build would previously fail on the warning for a
mismatched format specifier on 32bit platforms.

+10 -1
+10 -1
pkgs/tools/graphics/grim/default.nix
··· 1 - { lib, stdenv, fetchFromSourcehut, pixman, libpng, libjpeg, meson, ninja, wayland, pkg-config, scdoc, wayland-protocols }: 2 3 stdenv.mkDerivation rec { 4 pname = "grim"; ··· 10 rev = "v${version}"; 11 sha256 = "sha256-lwJn1Lysv1qLauqmrduUlzdoKUrUM5uBjv+dWSsrM6w="; 12 }; 13 14 nativeBuildInputs = [ 15 meson
··· 1 + { lib, stdenv, fetchFromSourcehut, fetchpatch, pixman, libpng, libjpeg, meson, ninja, wayland, pkg-config, scdoc, wayland-protocols }: 2 3 stdenv.mkDerivation rec { 4 pname = "grim"; ··· 10 rev = "v${version}"; 11 sha256 = "sha256-lwJn1Lysv1qLauqmrduUlzdoKUrUM5uBjv+dWSsrM6w="; 12 }; 13 + 14 + patches = [ 15 + # Fixes build on 32bit platforms. Patch is upstream, but unreleased 16 + (fetchpatch { 17 + name = "grim-fix-32bit-printf.patch"; 18 + url = "https://git.sr.ht/~emersion/grim/commit/89e02e663fabc534b7e7039514f60a8c5d70070d.patch"; 19 + sha256 = "1gwb060v3q856p84y0mqqpkqmgb9jwn70y4mzv35y4b9xld8inci"; 20 + }) 21 + ]; 22 23 nativeBuildInputs = [ 24 meson