1 { lib, stdenv, fetchFromGitHub
2 , meson, pkg-config, ninja
3 , wayland, wayland-scanner, wlr-protocols, gtk3, glib
6 stdenv.mkDerivation rec {
8 version = "unstable-2021-09-13";
10 src = fetchFromGitHub {
13 rev = "e2385950d97a3baf1b6e2f064dd419ccec179586";
14 sha256 = "8iMJK4O/sNIGPOBZQEfK47K6OjT6sxYFe19O2r/VSr8=";
18 nativeBuildInputs = [ meson pkg-config ninja glib wayland-scanner ];
19 buildInputs = [ wayland gtk3 ];
22 rmdir source/wlr-protocols
23 ln -s ${wlr-protocols}/share/wlr-protocols source
26 patches = [ ./dont-need-wlroots.diff ];
29 substituteInPlace meson.build --replace "git = find_program('git')" "git = 'false'"
33 description = "Contrast, brightness, and gamma adjustments for Wayland";
35 Small GTK GUI application to set contrast, brightness, and gamma for wayland compositors which
36 support the wlr-gamma-control protocol extension.
38 homepage = "https://github.com/mischw/wl-gammactl";
39 license = licenses.mit;
40 platforms = platforms.linux;
41 maintainers = with maintainers; [ lodi ];
42 mainProgram = "wl-gammactl";