all: refactor to follow RFC140
This commit is contained in:
35
pkgs/by-name/pa/pam_gnupg/package.nix
Normal file
35
pkgs/by-name/pa/pam_gnupg/package.nix
Normal file
@ -0,0 +1,35 @@
|
||||
{ stdenv
|
||||
, lib
|
||||
, fetchFromGitHub
|
||||
|
||||
, autoreconfHook
|
||||
, gnupg
|
||||
, pam
|
||||
}:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
pname = "pam-gnupg";
|
||||
version = "0.1";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "cruegge";
|
||||
repo = "pam-gnupg";
|
||||
rev = "v${version}";
|
||||
sha256 = "0b70mazyvcbg6xyqllm62rwhbz0y94pcy202db1qyy4w8466bhsw";
|
||||
};
|
||||
|
||||
nativeBuildInputs = [
|
||||
autoreconfHook
|
||||
gnupg
|
||||
];
|
||||
buildInputs = [ pam ];
|
||||
|
||||
configureFlags = [ "--with-moduledir=\${out}/lib/security" ];
|
||||
|
||||
meta = with lib; {
|
||||
homepage = "https://github.com/cruegge/pam-gnupg";
|
||||
description = "Unlock GnuPG keys on login";
|
||||
license = licenses.gpl3;
|
||||
platforms = pam.meta.platforms;
|
||||
};
|
||||
}
|
Reference in New Issue
Block a user