Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
55 lines
1.0 KiB
Nix
55 lines
1.0 KiB
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;
|
|
|
|
depsBuildBuild = [
|
|
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;
|
|
mainProgram = "chayang";
|
|
};
|
|
})
|