2021-01-19 09:50:56 +03:00
|
|
|
{ fetchurl, lib, stdenv, which, pkg-config, libxcb, xcbutilkeysyms, xcbutilimage,
|
2019-08-06 12:06:35 +03:00
|
|
|
xcbutilxrm, pam, libX11, libev, cairo, libxkbcommon, libxkbfile }:
|
2012-04-30 18:34:57 +04:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2019-08-15 15:41:18 +03:00
|
|
|
pname = "i3lock";
|
2020-11-02 12:12:23 +03:00
|
|
|
version = "2.13";
|
2012-04-30 18:34:57 +04:00
|
|
|
|
|
|
|
src = fetchurl {
|
2019-08-15 15:41:18 +03:00
|
|
|
url = "https://i3wm.org/i3lock/${pname}-${version}.tar.bz2";
|
2020-11-02 12:12:23 +03:00
|
|
|
sha256 = "02szjsaz7rqrdkd0r2nwgwa85c4hwfrcskxw7ryk695kmjcfhzv3";
|
2012-04-30 18:34:57 +04:00
|
|
|
};
|
|
|
|
|
2021-01-19 09:50:56 +03:00
|
|
|
nativeBuildInputs = [ pkg-config ];
|
2019-08-06 12:06:35 +03:00
|
|
|
buildInputs = [ which libxcb xcbutilkeysyms xcbutilimage xcbutilxrm
|
|
|
|
pam libX11 libev cairo libxkbcommon libxkbfile ];
|
2012-04-30 18:34:57 +04:00
|
|
|
|
2019-10-27 16:03:25 +03:00
|
|
|
makeFlags = [ "all" ];
|
|
|
|
installFlags = [ "PREFIX=\${out}" "SYSCONFDIR=\${out}/etc" ];
|
2015-01-28 07:44:09 +03:00
|
|
|
postInstall = ''
|
2015-01-28 21:56:13 +03:00
|
|
|
mkdir -p $out/share/man/man1
|
|
|
|
cp *.1 $out/share/man/man1
|
2015-01-28 07:44:09 +03:00
|
|
|
'';
|
2012-04-30 18:34:57 +04:00
|
|
|
|
2021-01-11 10:54:33 +03:00
|
|
|
meta = with lib; {
|
2015-04-30 18:05:14 +03:00
|
|
|
description = "A simple screen locker like slock";
|
2018-05-07 23:25:14 +03:00
|
|
|
longDescription = ''
|
|
|
|
Simple screen locker. After locking, a colored background (default: white) or
|
|
|
|
a configurable image is shown, and a ring-shaped unlock-indicator gives feedback
|
|
|
|
for every keystroke. After entering your password, the screen is unlocked again.
|
|
|
|
'';
|
2020-04-01 04:11:51 +03:00
|
|
|
homepage = "https://i3wm.org/i3lock/";
|
2019-07-03 12:27:39 +03:00
|
|
|
maintainers = with maintainers; [ malyn domenkozar ];
|
2015-01-28 07:44:09 +03:00
|
|
|
license = licenses.bsd3;
|
|
|
|
platforms = platforms.all;
|
2013-03-29 21:24:24 +04:00
|
|
|
};
|
2012-04-30 18:34:57 +04:00
|
|
|
|
|
|
|
}
|