nixpkgs/pkgs/tools/wayland/wlsunset/default.nix
Artturin d3c7ef80ef pkgs/tools/wayland: mark all linux only
on non-linux they all fail various variations of
meson.build:26:0: ERROR: Dependency "wayland-client" not found, tried pkgconfig and framework
fatal error: 'wayland-util.h' file not found
2023-03-05 15:11:44 +02:00

37 lines
1013 B
Nix

{ lib, stdenv, fetchFromSourcehut
, meson, pkg-config, ninja, wayland-scanner, scdoc
, wayland, wayland-protocols
}:
stdenv.mkDerivation rec {
pname = "wlsunset";
version = "0.2.0";
src = fetchFromSourcehut {
owner = "~kennylevinsen";
repo = pname;
rev = version;
sha256 = "0hhsddh3rs066rbsjksr8kcwg8lvglbvs67dq0r5wx5c1xcwb51w";
};
strictDeps = true;
depsBuildBuild = [
pkg-config
];
nativeBuildInputs = [ meson pkg-config ninja wayland-scanner scdoc ];
buildInputs = [ wayland wayland-protocols ];
meta = with lib; {
description = "Day/night gamma adjustments for Wayland";
longDescription = ''
Day/night gamma adjustments for Wayland compositors supporting
wlr-gamma-control-unstable-v1.
'';
homepage = "https://sr.ht/~kennylevinsen/wlsunset/";
changelog = "https://git.sr.ht/~kennylevinsen/wlsunset/refs/${version}";
license = licenses.mit;
platforms = platforms.linux;
maintainers = with maintainers; [ primeos ];
};
}