@@ -0,0 +1,29 @@
1+{ stdenv, fetchurl, meson, pkg-config, ninja, wayland
2+, wayland-protocols
3+}:
4+
5+stdenv.mkDerivation rec {
6+ pname = "wlsunset";
7+ version = "0.1.0";
8+
9+ src = fetchurl {
10+ url = "https://git.sr.ht/~kennylevinsen/wlsunset/archive/${version}.tar.gz";
11+ sha256 = "0g7mk14hlbwbhq6nqr84452sbgcja3hdxsqf0vws4njhfjgqiv3q";
12+ };
13+
14+ nativeBuildInputs = [ meson pkg-config ninja wayland ];
15+ buildInputs = [ wayland wayland-protocols ];
16+
17+ meta = with stdenv.lib; {
18+ description = "Day/night gamma adjustments for Wayland";
19+ longDescription = ''
20+ Day/night gamma adjustments for Wayland compositors supporting
21+ wlr-gamma-control-unstable-v1.
22+ '';
23+ homepage = "https://sr.ht/~kennylevinsen/wlsunset/";
24+ changelog = "https://git.sr.ht/~kennylevinsen/wlsunset/refs/${version}";
25+ license = licenses.mit;
26+ platforms = platforms.unix;
27+ maintainers = with maintainers; [ primeos ];
28+ };
29+}