diff options
Diffstat (limited to 'pkgs/tools/wayland/gtklock/default.nix')
-rw-r--r-- | pkgs/tools/wayland/gtklock/default.nix | 34 |
1 files changed, 16 insertions, 18 deletions
diff --git a/pkgs/tools/wayland/gtklock/default.nix b/pkgs/tools/wayland/gtklock/default.nix index 0b583ad8743ef..eac509c6b3d86 100644 --- a/pkgs/tools/wayland/gtklock/default.nix +++ b/pkgs/tools/wayland/gtklock/default.nix @@ -1,45 +1,43 @@ { lib , stdenv , fetchFromGitHub -, wrapGAppsHook -, pam +, meson +, ninja , scdoc -, gtk3 , pkg-config -, gtk-layer-shell -, glib -, librsvg -, wayland -, wayland-scanner +, wrapGAppsHook +, gtk3 +, pam +, gtk-session-lock }: stdenv.mkDerivation rec { pname = "gtklock"; - version = "2.1.0"; + version = "3.0.0"; src = fetchFromGitHub { owner = "jovanlanik"; - repo = pname; + repo = "gtklock"; rev = "v${version}"; - sha256 = "sha256-Jh+BmtKGaLgAcTXc44ydV83dp/W4wzByehUWyeyBoFI="; + hash = "sha256-B6pySjiwPBRFb4avE9NHsS1KkWMPW81DAqYro/wtrmQ="; }; nativeBuildInputs = [ + meson + ninja scdoc pkg-config - wayland-scanner - glib wrapGAppsHook ]; buildInputs = [ - wayland gtk3 pam - gtk-layer-shell - librsvg + gtk-session-lock ]; + strictDeps = true; + installFlags = [ "DESTDIR=$(out)" "PREFIX=" @@ -51,8 +49,8 @@ stdenv.mkDerivation rec { 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 ]; + license = licenses.gpl3Only; + maintainers = with maintainers; [ dit7ya aleksana ]; platforms = platforms.linux; mainProgram = "gtklock"; }; |