diff options
author | lodi <anthony.lodi@gmail.com> | 2022-03-11 18:24:37 -0500 |
---|---|---|
committer | lodi <anthony.lodi@gmail.com> | 2022-03-11 18:53:29 -0500 |
commit | 1b095174cc0f770854ea2a73e36db7e1d5bd4bf4 (patch) | |
tree | c0520debacbcd58afc6a959cd695c4397d3ac192 /pkgs/tools/wayland/wl-gammactl | |
parent | aff47e64c62d004a906149fb67cfc9024887ce22 (diff) | |
download | nixpkgs-1b095174cc0f770854ea2a73e36db7e1d5bd4bf4.tar nixpkgs-1b095174cc0f770854ea2a73e36db7e1d5bd4bf4.tar.gz nixpkgs-1b095174cc0f770854ea2a73e36db7e1d5bd4bf4.tar.bz2 nixpkgs-1b095174cc0f770854ea2a73e36db7e1d5bd4bf4.tar.lz nixpkgs-1b095174cc0f770854ea2a73e36db7e1d5bd4bf4.tar.xz nixpkgs-1b095174cc0f770854ea2a73e36db7e1d5bd4bf4.tar.zst nixpkgs-1b095174cc0f770854ea2a73e36db7e1d5bd4bf4.zip |
wl-gammactl: init at unstable-2021-09-13
Diffstat (limited to 'pkgs/tools/wayland/wl-gammactl')
-rw-r--r-- | pkgs/tools/wayland/wl-gammactl/default.nix | 40 |
1 files changed, 40 insertions, 0 deletions
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 ]; + }; +} |