From dbed54656c61498e30530bb00a098b9b272d9c90 Mon Sep 17 00:00:00 2001 From: Alyssa Ross Date: Mon, 24 Apr 2023 20:28:51 +0000 Subject: [PATCH] river-tag-overlay: fix cross --- .../misc/river-tag-overlay/default.nix | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/pkgs/applications/misc/river-tag-overlay/default.nix b/pkgs/applications/misc/river-tag-overlay/default.nix index 4aa2a3c59a97..0cec751a199c 100644 --- a/pkgs/applications/misc/river-tag-overlay/default.nix +++ b/pkgs/applications/misc/river-tag-overlay/default.nix @@ -1,4 +1,6 @@ -{ lib, stdenv, fetchFromSourcehut, nixos, wayland, pixman, pkg-config }: +{ lib, stdenv, fetchFromSourcehut, fetchpatch +, wayland, pixman, pkg-config, wayland-scanner +}: stdenv.mkDerivation rec { pname = "river-tag-overlay"; @@ -11,8 +13,16 @@ stdenv.mkDerivation rec { hash = "sha256-hLyXdLi/ldvwPJ1oQQsH5wgflQJuXu6vhYw/qdKAV9E="; }; + patches = [ + # Backport cross fix. + (fetchpatch { + url = "https://git.sr.ht/~leon_plickat/river-tag-overlay/commit/791eaadf46482121a4c811ffba13d03168d74d8f.patch"; + sha256 = "CxSDcweHGup1EF3oD/2vhP6RFoeYorj0BwmlgA3tbPE="; + }) + ]; + buildInputs = [ pixman wayland ]; - nativeBuildInputs = [ pkg-config ]; + nativeBuildInputs = [ pkg-config wayland-scanner ]; makeFlags = [ "DESTDIR=${placeholder "out"}"