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

32 lines
908 B
Nix
Raw Normal View History

{ fetchurl, stdenv, which, pkgconfig, libxcb, xcbutilkeysyms, xcbutilimage,
2013-07-07 23:18:12 +00:00
pam, libX11, libev, cairo, libxkbcommon, libxkbfile }:
stdenv.mkDerivation rec {
2017-07-01 07:28:23 +00:00
name = "i3lock-${version}";
version = "2.9.1";
src = fetchurl {
2017-07-01 07:28:23 +00:00
url = "https://i3wm.org/i3lock/${name}.tar.bz2";
sha256 = "1467ha4ssbfjk1jh0ya2i5ljzm554ln18nyrppvsipg8shb1cshh";
};
buildInputs = [ which pkgconfig libxcb xcbutilkeysyms xcbutilimage pam libX11
2013-07-07 23:18:12 +00: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";
homepage = http://i3wm.org/i3lock/;
maintainers = with maintainers; [ garbas malyn domenkozar ];
license = licenses.bsd3;
platforms = platforms.all;
2013-03-29 17:24:24 +00:00
};
}