2024-06-05 15:53:02 +00:00
|
|
|
{ lib, stdenv, fetchFromGitHub
|
2021-07-04 02:40:35 +00:00
|
|
|
, meson, ninja, pkg-config, scdoc, wayland-scanner
|
2020-04-24 23:36:52 +00:00
|
|
|
, wayland, wayland-protocols, libxkbcommon, cairo, gdk-pixbuf, pam
|
|
|
|
}:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "swaylock";
|
2024-09-19 14:19:46 +00:00
|
|
|
version = "1.8.0";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "swaywm";
|
|
|
|
repo = "swaylock";
|
2023-02-16 17:41:37 +00:00
|
|
|
rev = "v${version}";
|
2024-09-19 14:19:46 +00:00
|
|
|
hash = "sha256-1+AXxw1gH0SKAxUa0JIhSzMbSmsfmBPCBY5IKaYtldg=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2022-05-18 14:49:53 +00:00
|
|
|
strictDeps = true;
|
|
|
|
depsBuildBuild = [ pkg-config ];
|
2021-07-04 02:40:35 +00:00
|
|
|
nativeBuildInputs = [ meson ninja pkg-config scdoc wayland-scanner ];
|
2020-04-24 23:36:52 +00:00
|
|
|
buildInputs = [ wayland wayland-protocols libxkbcommon cairo gdk-pixbuf pam ];
|
|
|
|
|
|
|
|
mesonFlags = [
|
|
|
|
"-Dpam=enabled" "-Dgdk-pixbuf=enabled" "-Dman-pages=enabled"
|
|
|
|
];
|
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
meta = with lib; {
|
2020-04-24 23:36:52 +00:00
|
|
|
description = "Screen locker for Wayland";
|
|
|
|
longDescription = ''
|
|
|
|
swaylock is a screen locking utility for Wayland compositors.
|
2020-05-29 06:06:01 +00:00
|
|
|
Important note: If you don't use the Sway module (programs.sway.enable)
|
|
|
|
you need to set "security.pam.services.swaylock = {};" manually.
|
2020-04-24 23:36:52 +00:00
|
|
|
'';
|
|
|
|
inherit (src.meta) homepage;
|
2023-08-10 07:59:29 +00:00
|
|
|
mainProgram = "swaylock";
|
2020-04-24 23:36:52 +00:00
|
|
|
license = licenses.mit;
|
|
|
|
platforms = platforms.linux;
|
|
|
|
maintainers = with maintainers; [ primeos ];
|
|
|
|
};
|
|
|
|
}
|