grim: patch for 32bit platforms

Due to -Werror the build would previously fail on the warning for a
mismatched format specifier on 32bit platforms.
This commit is contained in:
sternenseemann 2022-10-08 13:44:10 +02:00
parent 5d533d4aaf
commit 6c5808b962

View file

@ -1,4 +1,4 @@
{ lib, stdenv, fetchFromSourcehut, pixman, libpng, libjpeg, meson, ninja, wayland, pkg-config, scdoc, wayland-protocols }:
{ lib, stdenv, fetchFromSourcehut, fetchpatch, pixman, libpng, libjpeg, meson, ninja, wayland, pkg-config, scdoc, wayland-protocols }:
stdenv.mkDerivation rec {
pname = "grim";
@ -11,6 +11,15 @@ stdenv.mkDerivation rec {
sha256 = "sha256-lwJn1Lysv1qLauqmrduUlzdoKUrUM5uBjv+dWSsrM6w=";
};
patches = [
# Fixes build on 32bit platforms. Patch is upstream, but unreleased
(fetchpatch {
name = "grim-fix-32bit-printf.patch";
url = "https://git.sr.ht/~emersion/grim/commit/89e02e663fabc534b7e7039514f60a8c5d70070d.patch";
sha256 = "1gwb060v3q856p84y0mqqpkqmgb9jwn70y4mzv35y4b9xld8inci";
})
];
nativeBuildInputs = [
meson
ninja