about summary refs log tree commit diff
path: root/pkgs/applications/window-managers
diff options
context:
space:
mode:
authorMichael Weiss <dev.primeos@gmail.com>2022-02-04 21:24:15 +0100
committerMichael Weiss <dev.primeos@gmail.com>2022-02-04 21:27:02 +0100
commit2cff8bed2fe7f5729f42a792ba3358024d6e7157 (patch)
tree585545e86946d25ee3a5f80b16eaec15eb489edc /pkgs/applications/window-managers
parentac6b477499a13d628e7901544a6e29b57843f3a0 (diff)
downloadnixlib-2cff8bed2fe7f5729f42a792ba3358024d6e7157.tar
nixlib-2cff8bed2fe7f5729f42a792ba3358024d6e7157.tar.gz
nixlib-2cff8bed2fe7f5729f42a792ba3358024d6e7157.tar.bz2
nixlib-2cff8bed2fe7f5729f42a792ba3358024d6e7157.tar.lz
nixlib-2cff8bed2fe7f5729f42a792ba3358024d6e7157.tar.xz
nixlib-2cff8bed2fe7f5729f42a792ba3358024d6e7157.tar.zst
nixlib-2cff8bed2fe7f5729f42a792ba3358024d6e7157.zip
labwc: Fix the build with wlroots 0.15.1
Diffstat (limited to 'pkgs/applications/window-managers')
-rw-r--r--pkgs/applications/window-managers/labwc/default.nix5
-rw-r--r--pkgs/applications/window-managers/labwc/relax-the-version-constraint-for-wlroots.patch29
2 files changed, 34 insertions, 0 deletions
diff --git a/pkgs/applications/window-managers/labwc/default.nix b/pkgs/applications/window-managers/labwc/default.nix
index d34099be67c7..580fd29faa04 100644
--- a/pkgs/applications/window-managers/labwc/default.nix
+++ b/pkgs/applications/window-managers/labwc/default.nix
@@ -30,6 +30,11 @@ stdenv.mkDerivation rec {
     hash = "sha256-O9jVDR7UROt5u8inUsZjbzB3dQTosiLYqXkeOyGrbaM=";
   };
 
+  patches = [
+    # Required to fix the build with wlroots 0.15.1:
+    ./relax-the-version-constraint-for-wlroots.patch
+  ];
+
   nativeBuildInputs = [
     meson
     ninja
diff --git a/pkgs/applications/window-managers/labwc/relax-the-version-constraint-for-wlroots.patch b/pkgs/applications/window-managers/labwc/relax-the-version-constraint-for-wlroots.patch
new file mode 100644
index 000000000000..9a790f285164
--- /dev/null
+++ b/pkgs/applications/window-managers/labwc/relax-the-version-constraint-for-wlroots.patch
@@ -0,0 +1,29 @@
+From 21d8bfcf7899f5ec50b29f523ace4c19cbfbe919 Mon Sep 17 00:00:00 2001
+From: Michael Weiss <dev.primeos@gmail.com>
+Date: Fri, 4 Feb 2022 21:17:05 +0100
+Subject: [PATCH] build: Relax the version constraint for wlroots to accept
+ patch releases
+
+Patch releases only contain backwards compatible changes (mainly bug
+fixes) so we want to allow them. This fixes the build with the recently
+released wlroots 0.15.1 and uses the same version constraints as other
+projects that depend on wlroots (e.g., Sway).
+---
+ meson.build | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/meson.build b/meson.build
+index f950b8e..1905dda 100644
+--- a/meson.build
++++ b/meson.build
+@@ -37,7 +37,7 @@ if git.found()
+ endif
+ add_project_arguments('-DLABWC_VERSION=@0@'.format(version), language: 'c')
+
+-wlroots_version = ['=0.15.0']
++wlroots_version = ['>=0.15.0', '<0.16.0']
+ wlroots_proj = subproject(
+   'wlroots',
+   default_options: ['default_library=static', 'examples=false'],
+--
+2.34.1