diff --git a/fix-build.patch b/fix-build.patch new file mode 100644 index 0000000..f43de09 --- /dev/null +++ b/fix-build.patch @@ -0,0 +1,13 @@ +diff --git a/vendor/github.com/go-gl/glfw/v3.3/glfw/build.go b/vendor/github.com/go-gl/glfw/v3.3/glfw/build.go +index 14a7ef3..4a00f2e 100644 +--- a/vendor/github.com/go-gl/glfw/v3.3/glfw/build.go ++++ b/vendor/github.com/go-gl/glfw/v3.3/glfw/build.go +@@ -27,7 +27,7 @@ package glfw + // ---------------- + // GLFW Options: + #cgo linux,!wayland CFLAGS: -D_GLFW_X11 +-#cgo linux,wayland CFLAGS: -D_GLFW_WAYLAND ++#cgo linux,wayland CFLAGS: -D_GLFW_WAYLAND -D_GNU_SOURCE + + // Linker Options: + #cgo linux,!gles1,!gles2,!gles3,!vulkan LDFLAGS: -lGL diff --git a/xyz.rescribe.rescribe.yml b/xyz.rescribe.rescribe.yml index 3277797..3713126 100644 --- a/xyz.rescribe.rescribe.yml +++ b/xyz.rescribe.rescribe.yml @@ -2,7 +2,8 @@ app-id: xyz.rescribe.rescribe runtime: org.freedesktop.Platform runtime-version: '24.08' sdk: org.freedesktop.Sdk -sdk-extensions: org.freedesktop.Sdk.Extension.golang +sdk-extensions: + - org.freedesktop.Sdk.Extension.golang build-options: append-path: /usr/lib/sdk/golang/bin finish-args: @@ -40,6 +41,8 @@ modules: url: https://rescribe.xyz/rescribe/embeds/tessdata.20220322.zip sha256: 725fd570a3c3dc0eba9463248ce47a8646db8bafb198d428d6bb8f0be18540ee dest: cmd/rescribe + - type: patch + path: fix-build.patch - name: leptonica sources: - type: git