2021-01-11 08:54:33 +01:00
|
|
|
{ lib, stdenv, fetchFromGitHub
|
2021-07-03 10:57:02 +02:00
|
|
|
, meson, ninja, pkg-config, scdoc, wayland-scanner
|
2019-05-22 13:03:39 +02:00
|
|
|
, wayland, wayland-protocols, libxkbcommon, cairo, gdk-pixbuf, pam
|
2019-01-15 13:28:44 +01:00
|
|
|
}:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2019-08-15 14:41:18 +02:00
|
|
|
pname = "swaylock";
|
2020-01-22 20:36:38 +01:00
|
|
|
version = "1.5";
|
2019-01-15 13:28:44 +01:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "swaywm";
|
|
|
|
repo = "swaylock";
|
|
|
|
rev = version;
|
2020-01-22 20:36:38 +01:00
|
|
|
sha256 = "0r95p4w11dwm5ra614vddz83r8j7z6gd120z2vcchy7m9b0f15kf";
|
2019-01-15 13:28:44 +01:00
|
|
|
};
|
|
|
|
|
2019-05-03 22:05:07 +02:00
|
|
|
postPatch = ''
|
2020-01-22 20:36:38 +01:00
|
|
|
substituteInPlace meson.build \
|
|
|
|
--replace "version: '1.4'" "version: '${version}'"
|
2019-05-03 22:05:07 +02:00
|
|
|
'';
|
|
|
|
|
2021-07-03 10:57:02 +02:00
|
|
|
nativeBuildInputs = [ meson ninja pkg-config scdoc wayland-scanner ];
|
2019-05-22 13:03:39 +02:00
|
|
|
buildInputs = [ wayland wayland-protocols libxkbcommon cairo gdk-pixbuf pam ];
|
2019-01-15 13:28:44 +01:00
|
|
|
|
2019-05-03 22:05:07 +02:00
|
|
|
mesonFlags = [
|
2019-02-05 23:29:36 +01:00
|
|
|
"-Dpam=enabled" "-Dgdk-pixbuf=enabled" "-Dman-pages=enabled"
|
|
|
|
];
|
2019-01-15 13:28:44 +01:00
|
|
|
|
2021-01-11 08:54:33 +01:00
|
|
|
meta = with lib; {
|
2019-01-15 13:28:44 +01:00
|
|
|
description = "Screen locker for Wayland";
|
|
|
|
longDescription = ''
|
|
|
|
swaylock is a screen locking utility for Wayland compositors.
|
2020-05-28 00:06:35 +02:00
|
|
|
Important note: If you don't use the Sway module (programs.sway.enable)
|
|
|
|
you need to set "security.pam.services.swaylock = {};" manually.
|
2019-01-15 13:28:44 +01:00
|
|
|
'';
|
|
|
|
inherit (src.meta) homepage;
|
|
|
|
license = licenses.mit;
|
|
|
|
platforms = platforms.linux;
|
|
|
|
maintainers = with maintainers; [ primeos ];
|
|
|
|
};
|
|
|
|
}
|