summary refs log tree commit diff
diff options
context:
space:
mode:
authorBernardo Meurer <bernardo@meurer.org>2022-03-11 22:48:00 -0800
committerGitHub <noreply@github.com>2022-03-11 22:48:00 -0800
commit963a524d9313f84d640bf59868e8df3fb8141481 (patch)
tree5c8e470b06d628ffa9ab2f9151a81f467a78ed90
parent12769bc7e1098fc781f70c40f62c55d4673329fa (diff)
parent1b095174cc0f770854ea2a73e36db7e1d5bd4bf4 (diff)
downloadnixpkgs-963a524d9313f84d640bf59868e8df3fb8141481.tar
nixpkgs-963a524d9313f84d640bf59868e8df3fb8141481.tar.gz
nixpkgs-963a524d9313f84d640bf59868e8df3fb8141481.tar.bz2
nixpkgs-963a524d9313f84d640bf59868e8df3fb8141481.tar.lz
nixpkgs-963a524d9313f84d640bf59868e8df3fb8141481.tar.xz
nixpkgs-963a524d9313f84d640bf59868e8df3fb8141481.tar.zst
nixpkgs-963a524d9313f84d640bf59868e8df3fb8141481.zip
Merge pull request #163388 from lodi/wl-gammactl
wl-gammactl: init at unstable-2021-09-13
-rw-r--r--maintainers/maintainer-list.nix6
-rw-r--r--pkgs/tools/wayland/wl-gammactl/default.nix40
-rw-r--r--pkgs/top-level/all-packages.nix2
3 files changed, 48 insertions, 0 deletions
diff --git a/maintainers/maintainer-list.nix b/maintainers/maintainer-list.nix
index f141a9b06b6..dd22c099e68 100644
--- a/maintainers/maintainer-list.nix
+++ b/maintainers/maintainer-list.nix
@@ -7223,6 +7223,12 @@
     githubId = 1267527;
     name = "Daniel Firth";
   };
+  lodi = {
+    email = "anthony.lodi@gmail.com";
+    github = "lodi";
+    githubId = 918448;
+    name = "Anthony Lodi";
+  };
   lopsided98 = {
     email = "benwolsieffer@gmail.com";
     github = "lopsided98";
diff --git a/pkgs/tools/wayland/wl-gammactl/default.nix b/pkgs/tools/wayland/wl-gammactl/default.nix
new file mode 100644
index 00000000000..98bfc40169a
--- /dev/null
+++ b/pkgs/tools/wayland/wl-gammactl/default.nix
@@ -0,0 +1,40 @@
+{ lib, stdenv, fetchFromGitHub
+, meson, pkg-config, ninja
+, wayland, wayland-scanner, wlroots, wlr-protocols, gtk3
+}:
+
+stdenv.mkDerivation rec {
+  pname = "wl-gammactl";
+  version = "unstable-2021-09-13";
+
+  src = fetchFromGitHub {
+    owner = "mischw";
+    repo = pname;
+    rev = "e2385950d97a3baf1b6e2f064dd419ccec179586";
+    sha256 = "8iMJK4O/sNIGPOBZQEfK47K6OjT6sxYFe19O2r/VSr8=";
+  };
+
+  nativeBuildInputs = [ meson pkg-config ninja ];
+  buildInputs = [ wayland wlroots gtk3 ];
+
+  postUnpack = ''
+    rmdir source/wlr-protocols
+    ln -s ${wlr-protocols}/share/wlr-protocols source
+  '';
+
+  postPatch = ''
+    substituteInPlace meson.build --replace "git = find_program('git')" "git = 'false'"
+  '';
+
+  meta = with lib; {
+    description = "Contrast, brightness, and gamma adjustments for Wayland";
+    longDescription = ''
+      Small GTK GUI application to set contrast, brightness, and gamma for wayland compositors which
+      support the wlr-gamma-control protocol extension.
+    '';
+    homepage = "https://github.com/mischw/wl-gammactl";
+    license = licenses.mit;
+    platforms = platforms.linux;
+    maintainers = with maintainers; [ lodi ];
+  };
+}
diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix
index 6c6832ae054..2d3698945c8 100644
--- a/pkgs/top-level/all-packages.nix
+++ b/pkgs/top-level/all-packages.nix
@@ -2726,6 +2726,8 @@ with pkgs;
 
   wlsunset = callPackage ../tools/wayland/wlsunset { };
 
+  wl-gammactl = callPackage ../tools/wayland/wl-gammactl { };
+
   wluma = callPackage ../tools/wayland/wluma {  };
 
   wob = callPackage ../tools/wayland/wob { };