waylock: init at 0.4.2

When using, ensure to install a waylock pam.d file.
On NixOS use `security.pam.services.waylock = {}`.
This commit is contained in:
Jordan Isaacs 2022-11-20 18:03:15 -05:00
parent 4bc0392ec9
commit f525342399
No known key found for this signature in database
2 changed files with 54 additions and 0 deletions

View file

@ -0,0 +1,52 @@
{
lib,
stdenv,
fetchFromGitHub,
zig,
wayland,
pkg-config,
scdoc,
wayland-protocols,
libxkbcommon,
pam,
}:
stdenv.mkDerivation rec {
pname = "waylock";
version = "0.4.2";
src = fetchFromGitHub {
owner = "ifreund";
repo = pname;
rev = "v${version}";
sha256 = "sha256-yWjWcnGa4a+Dpc82H65yr8H7v88g/tDq0FSguubhbEI=";
fetchSubmodules = true;
};
nativeBuildInputs = [zig wayland scdoc pkg-config];
buildInputs = [
wayland-protocols
libxkbcommon
pam
];
dontConfigure = true;
preBuild = ''
export HOME=$TMPDIR
'';
installPhase = ''
runHook preInstall
zig build -Drelease-safe -Dman-pages --prefix $out install
runHook postInstall
'';
meta = with lib; {
homepage = "https://github.com/ifreund/waylock";
description = "A small screenlocker for Wayland compositors";
license = licenses.isc;
platforms = platforms.linux;
maintainers = with maintainers; [jordanisaacs];
};
}

View file

@ -29432,6 +29432,8 @@ with pkgs;
waybar = callPackage ../applications/misc/waybar {};
waylock = callPackage ../applications/misc/waylock {};
wayshot = callPackage ../tools/misc/wayshot { };
waylevel = callPackage ../tools/misc/waylevel { };