Unverified Commit 963a524d authored by Bernardo Meurer's avatar Bernardo Meurer Committed by GitHub
Browse files

Merge pull request #163388 from lodi/wl-gammactl

wl-gammactl: init at unstable-2021-09-13
parents 12769bc7 1b095174
Loading
Loading
Loading
Loading
+6 −0
Original line number Diff line number Diff line
@@ -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";
+40 −0
Original line number Diff line number Diff line
{ 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 ];
  };
}
+2 −0
Original line number Diff line number Diff line
@@ -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 { };