1 { lib, stdenv, fetchFromGitHub, autoreconfHook, pkg-config, libxcb,
2 xcbutilkeysyms , xcbutilimage, pam, libX11, libev, cairo, libxkbcommon,
3 libxkbfile, libjpeg_turbo, xcbutilxrm, xorg
6 stdenv.mkDerivation rec {
8 pname = "i3lock-color";
10 src = fetchFromGitHub {
11 owner = "PandorasFox";
12 repo = "i3lock-color";
14 sha256 = "sha256-fuLeglRif2bruyQRqiL3nm3q6qxoHcPdVdL+QjGBR/k=";
17 nativeBuildInputs = [ autoreconfHook pkg-config ];
18 buildInputs = [ libxcb xcbutilkeysyms xcbutilimage pam libX11
19 libev cairo libxkbcommon libxkbfile libjpeg_turbo xcbutilxrm xorg.xcbutil ];
21 makeFlags = [ "all" ];
23 mkdir -p $out/share/man/man1
25 installFlags = [ "PREFIX=\${out}" "SYSCONFDIR=\${out}/etc" "MANDIR=\${out}/share/man" ];
27 mv $out/bin/i3lock $out/bin/i3lock-color
28 ln -s $out/bin/i3lock-color $out/bin/i3lock
29 mv $out/share/man/man1/i3lock.1 $out/share/man/man1/i3lock-color.1
30 sed -i 's/\(^\|\s\|"\)i3lock\(\s\|$\)/\1i3lock-color\2/g' $out/share/man/man1/i3lock-color.1
33 description = "Simple screen locker like slock, enhanced version with extra configuration options";
35 Simple screen locker. After locking, a colored background (default: white) or
36 a configurable image is shown, and a ring-shaped unlock-indicator gives feedback
37 for every keystroke. After entering your password, the screen is unlocked again.
39 i3lock-color is forked from i3lock (https://i3wm.org/i3lock/) with the following
40 enhancements / additional configuration options:
45 - all colors: configurable
46 - all texts: configurable
47 - visibility: can be always visible, can be restricted to some screens
49 - background: optionally show a blurred screen instead of a single color
51 - more information: show text at configurable positions:
52 - clock: time/date with configurable format
55 homepage = "https://github.com/PandorasFox/i3lock-color";
56 maintainers = with maintainers; [ malyn ];
57 license = licenses.bsd3;
59 platforms = platforms.all;
60 broken = stdenv.hostPlatform.isDarwin;