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

38 lines
1.2 KiB
Nix
Raw Normal View History

{ fetchurl, stdenv, which, pkgconfig, libxcb, xcbutilkeysyms, xcbutilimage,
2019-08-06 10:06:35 +01:00
xcbutilxrm, pam, libX11, libev, cairo, libxkbcommon, libxkbfile }:
stdenv.mkDerivation rec {
pname = "i3lock";
2019-08-06 10:06:35 +01:00
version = "2.12";
src = fetchurl {
url = "https://i3wm.org/i3lock/${pname}-${version}.tar.bz2";
2019-08-06 10:06:35 +01:00
sha256 = "02dwaqxpclcwiwvpvq7zwz4sxcv9c15dbf17ifalj1p8djls3cnh";
};
nativeBuildInputs = [ pkgconfig ];
2019-08-06 10:06:35 +01:00
buildInputs = [ which libxcb xcbutilkeysyms xcbutilimage xcbutilxrm
pam libX11 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; [ malyn domenkozar ];
license = licenses.bsd3;
platforms = platforms.all;
2013-03-29 17:24:24 +00:00
};
}