about summary refs log tree commit diff
path: root/overlays/patches/nixpkgs-wayland/pkgs/wl-gammactl/default.nix
blob: 0efa75221324af81c2aba7b1d76c39af6d4a9ed8 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
{ stdenv, fetchFromGitHub
, meson, ninja, pkgconfig
, wayland, wayland-protocols
, gtk3, wlroots
}:

let
  metadata = import ./metadata.nix;
in
stdenv.mkDerivation rec {
  pname = "wl-gammactl";
  version = metadata.rev;

  src = fetchFromGitHub {
    owner = "mischw";
    repo = pname;
    inherit (metadata) rev sha256;
    fetchSubmodules = true;
  };

  nativeBuildInputs = [ meson ninja pkgconfig ];
  buildInputs = [
    gtk3 wlroots
    wayland wayland-protocols
  ];

  preConfigure = ''
    sed -i 32,46d ./meson.build
  '';

  meta = with stdenv.lib; {
    description = "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;
    maintainers = with maintainers; [ colemickens ];
    platforms = platforms.linux;
  };
}