2022-12-02 08:20:57 +00:00
|
|
|
{ lib
|
|
|
|
, stdenv
|
|
|
|
, fetchFromGitHub
|
|
|
|
, pkgs
|
|
|
|
, pam
|
|
|
|
, scdoc
|
|
|
|
, gtk3
|
|
|
|
, pkg-config
|
|
|
|
, gtk-layer-shell
|
|
|
|
, glib
|
|
|
|
, wayland
|
|
|
|
, wayland-scanner
|
|
|
|
}:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "gtklock";
|
2023-05-24 13:37:59 +00:00
|
|
|
version = "2.1.0";
|
2022-12-02 08:20:57 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "jovanlanik";
|
|
|
|
repo = pname;
|
|
|
|
rev = "v${version}";
|
2023-05-24 13:37:59 +00:00
|
|
|
sha256 = "sha256-Jh+BmtKGaLgAcTXc44ydV83dp/W4wzByehUWyeyBoFI=";
|
2022-12-02 08:20:57 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
strictDeps = true;
|
|
|
|
|
|
|
|
nativeBuildInputs = [
|
|
|
|
scdoc
|
|
|
|
pkg-config
|
|
|
|
wayland-scanner
|
|
|
|
glib
|
|
|
|
];
|
|
|
|
|
|
|
|
buildInputs = [
|
|
|
|
wayland
|
|
|
|
gtk3
|
|
|
|
pam
|
|
|
|
gtk-layer-shell
|
|
|
|
];
|
|
|
|
|
|
|
|
installFlags = [
|
|
|
|
"DESTDIR=$(out)"
|
|
|
|
"PREFIX="
|
|
|
|
];
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "GTK-based lockscreen for Wayland";
|
|
|
|
longDescription = ''
|
|
|
|
Important note: for gtklock to work you need to set "security.pam.services.gtklock = {};" manually.
|
|
|
|
''; # Following nixpkgs/pkgs/applications/window-managers/sway/lock.nix
|
|
|
|
homepage = "https://github.com/jovanlanik/gtklock";
|
|
|
|
license = licenses.gpl3;
|
|
|
|
maintainers = with maintainers; [ dit7ya ];
|
2023-03-08 16:32:21 +00:00
|
|
|
platforms = platforms.linux;
|
2022-12-02 08:20:57 +00:00
|
|
|
};
|
|
|
|
}
|