From ac6b477499a13d628e7901544a6e29b57843f3a0 Mon Sep 17 00:00:00 2001 From: "R. Ryantm" Date: Fri, 4 Feb 2022 12:19:55 +0000 Subject: [PATCH 1/2] wlroots: 0.15.0 -> 0.15.1 --- pkgs/development/libraries/wlroots/0.15.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/development/libraries/wlroots/0.15.nix b/pkgs/development/libraries/wlroots/0.15.nix index dda5a06e4420..e5785fab9f21 100644 --- a/pkgs/development/libraries/wlroots/0.15.nix +++ b/pkgs/development/libraries/wlroots/0.15.nix @@ -9,14 +9,14 @@ stdenv.mkDerivation rec { pname = "wlroots"; - version = "0.15.0"; + version = "0.15.1"; src = fetchFromGitLab { domain = "gitlab.freedesktop.org"; owner = "wlroots"; repo = "wlroots"; rev = version; - sha256 = "0wdzs0wpv61pxgy3mx3xjsndyfmbj30v47d3w9ymmnd4r479n41n"; + sha256 = "sha256-MFR38UuB/wW7J9ODDUOfgTzKLse0SSMIRYTpEaEdRwM="; }; # $out for the library and $examples for the example programs (in examples): From 2cff8bed2fe7f5729f42a792ba3358024d6e7157 Mon Sep 17 00:00:00 2001 From: Michael Weiss Date: Fri, 4 Feb 2022 21:24:15 +0100 Subject: [PATCH 2/2] labwc: Fix the build with wlroots 0.15.1 --- .../window-managers/labwc/default.nix | 5 ++++ ...x-the-version-constraint-for-wlroots.patch | 29 +++++++++++++++++++ 2 files changed, 34 insertions(+) create mode 100644 pkgs/applications/window-managers/labwc/relax-the-version-constraint-for-wlroots.patch 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 +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