4a7f99d55d
Part of: https://github.com/NixOS/nixpkgs/issues/108938 meta = with stdenv.lib; is a widely used pattern. We want to slowly remove the `stdenv.lib` indirection and encourage people to use `lib` directly. Thus let’s start with the meta field. This used a rewriting script to mostly automatically replace all occurances of this pattern, and add the `lib` argument to the package header if it doesn’t exist yet. The script in its current form is available at https://cs.tvl.fyi/depot@2f807d7f141068d2d60676a89213eaa5353ca6e0/-/blob/users/Profpatsch/nixpkgs-rewriter/default.nix
46 lines
1.2 KiB
Nix
46 lines
1.2 KiB
Nix
{ lib, stdenv, fetchgit, pkgconfig, autoreconfHook
|
|
, libX11, pam, libgcrypt, libXrender, imlib2 }:
|
|
|
|
stdenv.mkDerivation rec {
|
|
date = "20170720";
|
|
name = "alock-${date}";
|
|
|
|
src = fetchgit {
|
|
url = "https://github.com/Arkq/alock";
|
|
rev = "2035e1d4a2293432f5503e82d10f899232eb0f38";
|
|
sha256 = "1by954fjn0ryqda89zlmq3gclakg3gz7zy1wjrbgw4lzsk538va6";
|
|
};
|
|
|
|
PAM_DEFAULT_SERVICE = "login";
|
|
|
|
configureFlags = [
|
|
"--enable-pam"
|
|
"--enable-hash"
|
|
"--enable-xrender"
|
|
"--enable-imlib2"
|
|
];
|
|
|
|
nativeBuildInputs = [ pkgconfig ];
|
|
buildInputs = [
|
|
autoreconfHook libX11
|
|
pam libgcrypt libXrender imlib2
|
|
];
|
|
|
|
meta = with lib; {
|
|
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. It's just for locking the current
|
|
X session.
|
|
'';
|
|
platforms = platforms.linux;
|
|
maintainers = with maintainers; [ ftrvxmtrx chris-martin ];
|
|
license = licenses.mit;
|
|
};
|
|
}
|