about summary refs log tree commit diff
path: root/pkgs/tools
diff options
context:
space:
mode:
authorrewine <luhongxu@deepin.org>2023-11-26 03:31:44 +0800
committerMatthieu Coudron <886074+teto@users.noreply.github.com>2023-11-27 09:53:20 +0100
commite92eba7c8d1e80c2303973c2267838ac8c7eed2f (patch)
tree63e4adb16317796c6d7c8f268818d9c2f575e2ad /pkgs/tools
parentbbb4adee2f9bb15d85ea0670db12f85ba85c94d3 (diff)
wl-gammactl: don't need wlroots
Diffstat (limited to 'pkgs/tools')
-rw-r--r--pkgs/tools/wayland/wl-gammactl/default.nix6
-rw-r--r--pkgs/tools/wayland/wl-gammactl/dont-need-wlroots.diff20
2 files changed, 24 insertions, 2 deletions
diff --git a/pkgs/tools/wayland/wl-gammactl/default.nix b/pkgs/tools/wayland/wl-gammactl/default.nix
index 3aae67b47359d..c6410872790df 100644
--- a/pkgs/tools/wayland/wl-gammactl/default.nix
+++ b/pkgs/tools/wayland/wl-gammactl/default.nix
@@ -1,6 +1,6 @@
 { lib, stdenv, fetchFromGitHub
 , meson, pkg-config, ninja
-, wayland, wayland-scanner, wlroots, wlr-protocols, gtk3, glib
+, wayland, wayland-scanner, wlr-protocols, gtk3, glib
 }:
 
 stdenv.mkDerivation rec {
@@ -16,13 +16,15 @@ stdenv.mkDerivation rec {
 
   strictDeps = true;
   nativeBuildInputs = [ meson pkg-config ninja glib wayland-scanner ];
-  buildInputs = [ wayland wlroots gtk3 ];
+  buildInputs = [ wayland gtk3 ];
 
   postUnpack = ''
     rmdir source/wlr-protocols
     ln -s ${wlr-protocols}/share/wlr-protocols source
   '';
 
+  patches = [ ./dont-need-wlroots.diff ];
+
   postPatch = ''
     substituteInPlace meson.build --replace "git = find_program('git')" "git = 'false'"
   '';
diff --git a/pkgs/tools/wayland/wl-gammactl/dont-need-wlroots.diff b/pkgs/tools/wayland/wl-gammactl/dont-need-wlroots.diff
new file mode 100644
index 0000000000000..a5eeab64a7bb6
--- /dev/null
+++ b/pkgs/tools/wayland/wl-gammactl/dont-need-wlroots.diff
@@ -0,0 +1,20 @@
+diff --git a/meson.build b/meson.build
+index 5253f52..f5ff82e 100644
+--- a/meson.build
++++ b/meson.build
+@@ -6,7 +6,6 @@ project(
+ 
+ # Define dependecies
+ dep_gtk3 = dependency('gtk+-3.0')
+-dep_wlroots = dependency('wlroots')
+ dep_wayland_client = dependency('wayland-client')
+ 
+ 
+@@ -75,7 +74,6 @@ executable(
+ 	'wl-gammactl',
+ 	sources,
+ 	dependencies : [
+-		dep_wlroots,
+ 		dep_wayland_client,
+ 		dep_gtk3
+ 	],