1 { lib, stdenv, fetchFromGitHub
2 , meson, ninja, pkg-config, scdoc, wayland-scanner
3 , wayland, wayland-protocols, libxkbcommon, cairo, gdk-pixbuf, pam
6 stdenv.mkDerivation rec {
10 src = fetchFromGitHub {
14 hash = "sha256-1+AXxw1gH0SKAxUa0JIhSzMbSmsfmBPCBY5IKaYtldg=";
18 depsBuildBuild = [ pkg-config ];
19 nativeBuildInputs = [ meson ninja pkg-config scdoc wayland-scanner ];
20 buildInputs = [ wayland wayland-protocols libxkbcommon cairo gdk-pixbuf pam ];
23 "-Dpam=enabled" "-Dgdk-pixbuf=enabled" "-Dman-pages=enabled"
27 description = "Screen locker for Wayland";
29 swaylock is a screen locking utility for Wayland compositors.
30 Important note: If you don't use the Sway module (programs.sway.enable)
31 you need to set "security.pam.services.swaylock = {};" manually.
33 inherit (src.meta) homepage;
34 mainProgram = "swaylock";
35 license = licenses.mit;
36 platforms = platforms.linux;
37 maintainers = with maintainers; [ primeos ];