nixpkgs/pkgs/misc/screensavers/alock/default.nix
2016-06-03 17:17:08 +03:00

41 lines
1.2 KiB
Nix

{ stdenv, fetchgit, pkgconfig, autoreconfHook
, libX11, pam, libgcrypt, libXrender, imlib2 }:
stdenv.mkDerivation rec {
date = "20150418";
name = "alock-${date}";
src = fetchgit {
url = https://github.com/Arkq/alock;
rev = "69b547602d965733d415f877eb59d05966bd158d";
sha256 = "0lv2ng5qxzcq0vwbl61dbwigv79sin4zg90y9cgsz6ydvm4ncpas";
};
configureFlags = [
"--enable-pam"
"--enable-hash"
"--enable-xrender"
"--enable-imlib2"
];
buildInputs = [
pkgconfig autoreconfHook libX11
pam libgcrypt libXrender imlib2
];
meta = {
homepage = https://github.com/Arkq/alock;
description = "Simple screen lock application for X server";
longDescription = ''
alock locks the X server until the user enters a password
via the keyboard. If the authentification was successful
the X server is unlocked and the user can continue to work.
alock does not provide any fancy animations like xlock or
xscreensaver and never will. Its just for locking the current
X session.
'';
platforms = with stdenv.lib.platforms; allBut cygwin;
maintainers = [ stdenv.lib.maintainers.ftrvxmtrx ];
};
}