mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-18 19:51:17 +00:00
gtklock: init at 2.0.1
This commit is contained in:
parent
e640389011
commit
edc3ece6df
56
pkgs/tools/wayland/gtklock/default.nix
Normal file
56
pkgs/tools/wayland/gtklock/default.nix
Normal file
|
@ -0,0 +1,56 @@
|
|||
{ lib
|
||||
, stdenv
|
||||
, fetchFromGitHub
|
||||
, pkgs
|
||||
, pam
|
||||
, scdoc
|
||||
, gtk3
|
||||
, pkg-config
|
||||
, gtk-layer-shell
|
||||
, glib
|
||||
, wayland
|
||||
, wayland-scanner
|
||||
}:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
pname = "gtklock";
|
||||
version = "2.0.1";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "jovanlanik";
|
||||
repo = pname;
|
||||
rev = "v${version}";
|
||||
sha256 = "sha256-W+GyeGxlfp1YZtSFEZYXuHmvTVZ8mU1oBcsrWN1yvjU=";
|
||||
};
|
||||
|
||||
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 ];
|
||||
};
|
||||
}
|
|
@ -27708,6 +27708,8 @@ with pkgs;
|
|||
|
||||
gtk2fontsel = callPackage ../applications/misc/gtk2fontsel { };
|
||||
|
||||
gtklock = callPackage ../tools/wayland/gtklock { };
|
||||
|
||||
guardian-agent = callPackage ../tools/networking/guardian-agent { };
|
||||
|
||||
gv = callPackage ../applications/misc/gv { };
|
||||
|
|
Loading…
Reference in a new issue