Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

wdomirror: fix build failure by applying patch from GH #5 #172441

Merged
merged 1 commit into from May 11, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 15 additions & 0 deletions pkgs/tools/wayland/wdomirror/configure-bounds.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
From https://github.com/progandy/wdomirror/issues/5#issuecomment-1103265438

--- a/main.c
+++ b/main.c
@@ -409,9 +409,12 @@ xdg_toplevel_handle_close(void *data, struct xdg_toplevel *xdg_toplevel)
ctx->quit = true;
}

+static void xdg_toplevel_handle_configure_bounds(void *data, struct xdg_toplevel *toplevel, int32_t width, int32_t height) {}
+
static const struct xdg_toplevel_listener xdg_toplevel_listener = {
xdg_toplevel_handle_configure,
xdg_toplevel_handle_close,
+ xdg_toplevel_handle_configure_bounds,
};
9 changes: 9 additions & 0 deletions pkgs/tools/wayland/wdomirror/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,15 @@ stdenv.mkDerivation {

buildInputs = [ wayland ];

patches = [
# A recent change to xdg-shell-client-protocol causes a build
# failure. This was reported upstream as GH #5. User @AlexBMJ
# posted the following two-line fix in that issue, but the
# developer has not yet responded:
# https://github.com/progandy/wdomirror/issues/5#issuecomment-1103265438
./configure-bounds.patch
];

installPhase = ''
runHook preInstall
install -m755 -D wdomirror $out/bin/wdomirror
Expand Down