2022-12-02 08:20:57 +00:00
|
|
|
{ lib
|
|
|
|
, stdenv
|
|
|
|
, fetchFromGitHub
|
2024-05-15 15:35:15 +00:00
|
|
|
, meson
|
|
|
|
, ninja
|
2022-12-02 08:20:57 +00:00
|
|
|
, scdoc
|
|
|
|
, pkg-config
|
2024-05-15 15:35:15 +00:00
|
|
|
, wrapGAppsHook3
|
|
|
|
, gtk3
|
|
|
|
, pam
|
|
|
|
, gtk-session-lock
|
2022-12-02 08:20:57 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "gtklock";
|
2024-05-15 15:35:15 +00:00
|
|
|
version = "3.0.0";
|
2022-12-02 08:20:57 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "jovanlanik";
|
2024-05-15 15:35:15 +00:00
|
|
|
repo = "gtklock";
|
2022-12-02 08:20:57 +00:00
|
|
|
rev = "v${version}";
|
2024-05-15 15:35:15 +00:00
|
|
|
hash = "sha256-B6pySjiwPBRFb4avE9NHsS1KkWMPW81DAqYro/wtrmQ=";
|
2022-12-02 08:20:57 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [
|
2024-05-15 15:35:15 +00:00
|
|
|
meson
|
|
|
|
ninja
|
2022-12-02 08:20:57 +00:00
|
|
|
scdoc
|
|
|
|
pkg-config
|
2024-05-15 15:35:15 +00:00
|
|
|
wrapGAppsHook3
|
2022-12-02 08:20:57 +00:00
|
|
|
];
|
|
|
|
|
|
|
|
buildInputs = [
|
|
|
|
gtk3
|
|
|
|
pam
|
2024-05-15 15:35:15 +00:00
|
|
|
gtk-session-lock
|
2022-12-02 08:20:57 +00:00
|
|
|
];
|
|
|
|
|
2024-05-15 15:35:15 +00:00
|
|
|
strictDeps = true;
|
|
|
|
|
2022-12-02 08:20:57 +00:00
|
|
|
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";
|
2024-05-15 15:35:15 +00:00
|
|
|
license = licenses.gpl3Only;
|
|
|
|
maintainers = with maintainers; [ dit7ya aleksana ];
|
2023-03-08 16:32:21 +00:00
|
|
|
platforms = platforms.linux;
|
2023-08-04 22:07:22 +00:00
|
|
|
mainProgram = "gtklock";
|
2022-12-02 08:20:57 +00:00
|
|
|
};
|
|
|
|
}
|