depot/third_party/nixpkgs/pkgs/tools/wayland/chayang/default.nix
Default email d5f4a57cbf Project import generated by Copybara.
GitOrigin-RevId: ce5e4a6ef2e59d89a971bc434ca8ca222b9c7f5e
2023-08-10 09:59:29 +02:00

52 lines
986 B
Nix

{ lib
, stdenv
, fetchFromSourcehut
, meson
, ninja
, pkg-config
, wayland-scanner
, wayland-protocols
, wayland
}:
stdenv.mkDerivation (finalAttrs: {
pname = "chayang";
version = "0.1.0";
src = fetchFromSourcehut {
owner = "~emersion";
repo = "chayang";
rev = "v${finalAttrs.version}";
hash = "sha256-3Vu9/Bu2WQe2Yx/2BK25pEpuPNwX6g3qoFUMznCFHeI=";
};
strictDeps = true;
pkgsBuildBuild = [
pkg-config
];
nativeBuildInputs = [
meson
ninja
pkg-config
wayland-scanner
];
buildInputs = [
wayland-protocols
wayland
];
meta = with lib; {
description = "Gradually dim the screen on Wayland";
homepage = "https://git.sr.ht/~emersion/chayang/";
license = licenses.mit;
longDescription = ''
Gradually dim the screen on Wayland.
Can be used to implement a grace period before locking the session.
'';
maintainers = with maintainers; [ mxkrsv ];
platforms = platforms.linux;
};
})