nixpkgs-suyu/pkgs/applications/window-managers/i3/lock.nix

38 lines
1.2 KiB
Nix
Raw Normal View History

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