2012-04-30 18:34:57 +04:00
|
|
|
{ fetchurl, stdenv, which, pkgconfig, libxcb, xcbutilkeysyms, xcbutilimage,
|
2013-07-08 03:18:12 +04:00
|
|
|
pam, libX11, libev, cairo, libxkbcommon, libxkbfile }:
|
2012-04-30 18:34:57 +04:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2017-07-01 10:28:23 +03:00
|
|
|
name = "i3lock-${version}";
|
|
|
|
version = "2.9.1";
|
2012-04-30 18:34:57 +04:00
|
|
|
|
|
|
|
src = fetchurl {
|
2017-07-01 10:28:23 +03:00
|
|
|
url = "https://i3wm.org/i3lock/${name}.tar.bz2";
|
|
|
|
sha256 = "1467ha4ssbfjk1jh0ya2i5ljzm554ln18nyrppvsipg8shb1cshh";
|
2012-04-30 18:34:57 +04:00
|
|
|
};
|
|
|
|
|
|
|
|
buildInputs = [ which pkgconfig libxcb xcbutilkeysyms xcbutilimage pam libX11
|
2013-07-08 03:18:12 +04:00
|
|
|
libev cairo libxkbcommon libxkbfile ];
|
2012-04-30 18:34:57 +04: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
|
|
|
|
2015-01-28 07:44:09 +03:00
|
|
|
meta = with stdenv.lib; {
|
2015-04-30 18:05:14 +03:00
|
|
|
description = "A simple screen locker like slock";
|
2017-08-03 00:50:51 +03:00
|
|
|
homepage = https://i3wm.org/i3lock/;
|
2016-05-17 14:57:28 +03:00
|
|
|
maintainers = with maintainers; [ garbas 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
|
|
|
|
|
|
|
}
|