Skip to content

Commit

Permalink
swaylock-fprintd: init at unstable-20230130
Browse files Browse the repository at this point in the history
  • Loading branch information
SebTM committed Apr 16, 2023
1 parent 85b0815 commit 193e7f8
Showing 1 changed file with 42 additions and 0 deletions.
42 changes: 42 additions & 0 deletions pkgs/applications/window-managers/sway/lock-fprintd.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
{ lib, stdenv, fetchFromGitHub, meson, ninja, pkg-config, scdoc, wayland-scanner
, wayland, wayland-protocols, libxkbcommon, cairo, gdk-pixbuf, pam
, dbus, glib, fprintd }:

stdenv.mkDerivation rec {
pname = "swaylock-fprintd";
version = "unstable-20230130";

src = fetchFromGitHub {
owner = "SL-RU";
repo = "swaylock-fprintd";
rev = "ffd639a785df0b9f39e9a4d77b7c0d7ba0b8ef79";
hash = "sha256-2VklrbolUV00djPt+ngUyU+YMnJLAHhD+CLZD1wH4ww=";
};

postPatch = ''
sed -i fingerprint/meson.build \
-e 's|/usr/share/dbus-1/interfaces/|'${ fprintd }'/share/dbus-1/interfaces/|'
'';

strictDeps = true;
depsBuildBuild = [ pkg-config ];
nativeBuildInputs = [ meson ninja pkg-config scdoc wayland-scanner dbus glib ];
buildInputs = [ wayland wayland-protocols libxkbcommon cairo gdk-pixbuf pam fprintd ];

mesonFlags = [
"-Dpam=enabled" "-Dgdk-pixbuf=enabled" "-Dman-pages=enabled"
];

meta = with lib; {
description = "Screen locker for Wayland";
longDescription = ''
swaylock is a screen locking utility for Wayland compositors.
Important note: If you don't use the Sway module (programs.sway.enable)
you need to set "security.pam.services.swaylock = {};" manually.
'';
inherit (src.meta) homepage;
license = licenses.mit;
platforms = platforms.linux;
maintainers = with maintainers; [ sebtm ];
};
}

0 comments on commit 193e7f8

Please sign in to comment.