2012-04-30 14:34:57 +00:00
|
|
|
{ fetchurl, stdenv, which, pkgconfig, libxcb, xcbutilkeysyms, xcbutilimage,
|
2013-07-07 23:18:12 +00:00
|
|
|
pam, libX11, libev, cairo, libxkbcommon, libxkbfile }:
|
2012-04-30 14:34:57 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2017-07-01 07:28:23 +00:00
|
|
|
name = "i3lock-${version}";
|
2018-01-28 15:34:24 +00:00
|
|
|
version = "2.10";
|
2012-04-30 14:34:57 +00:00
|
|
|
|
|
|
|
src = fetchurl {
|
2017-07-01 07:28:23 +00:00
|
|
|
url = "https://i3wm.org/i3lock/${name}.tar.bz2";
|
2018-01-28 15:34:24 +00:00
|
|
|
sha256 = "1vn8828ih7mpdl58znfnzpdwdgwksq16rghm5qlppbbz66zk5sr9";
|
2012-04-30 14:34:57 +00:00
|
|
|
};
|
|
|
|
|
2017-09-05 21:26:13 +00:00
|
|
|
nativeBuildInputs = [ pkgconfig ];
|
|
|
|
buildInputs = [ which libxcb xcbutilkeysyms xcbutilimage pam libX11
|
2013-07-07 23:18:12 +00:00
|
|
|
libev cairo libxkbcommon libxkbfile ];
|
2012-04-30 14:34:57 +00:00
|
|
|
|
|
|
|
makeFlags = "all";
|
|
|
|
installFlags = "PREFIX=\${out} SYSCONFDIR=\${out}/etc";
|
2015-01-28 04:44:09 +00:00
|
|
|
postInstall = ''
|
2015-01-28 18:56:13 +00:00
|
|
|
mkdir -p $out/share/man/man1
|
|
|
|
cp *.1 $out/share/man/man1
|
2015-01-28 04:44:09 +00:00
|
|
|
'';
|
2012-04-30 14:34:57 +00:00
|
|
|
|
2015-01-28 04:44:09 +00:00
|
|
|
meta = with stdenv.lib; {
|
2015-04-30 15:05:14 +00:00
|
|
|
description = "A simple screen locker like slock";
|
2018-05-07 20:25:14 +00: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.
|
|
|
|
'';
|
2017-08-02 21:50:51 +00:00
|
|
|
homepage = https://i3wm.org/i3lock/;
|
2016-05-17 11:57:28 +00:00
|
|
|
maintainers = with maintainers; [ garbas malyn domenkozar ];
|
2015-01-28 04:44:09 +00:00
|
|
|
license = licenses.bsd3;
|
|
|
|
platforms = platforms.all;
|
2013-03-29 17:24:24 +00:00
|
|
|
};
|
2012-04-30 14:34:57 +00:00
|
|
|
|
|
|
|
}
|