git.iko.soy/typeable/nixpkgs
on master help sign in
pam_gnupg: init at 0.1

Add the pam_gnupg module that unlocks gnupg keys on login.

commitd9d3013117db62040fefb964e21a95cc70e61708 authorMaxime Tréca <maxime@treca.dev> dateTue 21 Jan 2020, 01:38 (7 years ago) parentbc0dd71
3 files changed+40
maintainers/maintainer-list.nix+6 pkgs/os-specific/linux/pam_gnupg/default.nix+32 pkgs/top-level/all-packages.nix+2
maintainers/maintainer-list.nix+6
@@ -5893,6 +5893,12 @@
58935893 githubId = 2176611;
58945894 name = "Marko Poikonen";
58955895 };
5896+ mtreca = {
5897+ email = "maxime@treca.dev";
5898+ name = "Maxime Tréca";
5899+ github = "mtreca";
5900+ githubId = 16440823;
5901+ };
58965902 mtreskin = {
58975903 email = "zerthurd@gmail.com";
58985904 github = "Zert";
pkgs/os-specific/linux/pam_gnupg/default.nixnew file+32
@@ -0,0 +1,32 @@
1+{ stdenv, fetchFromGitHub, autoreconfHook, pam, gnupg }:
2+
3+stdenv.mkDerivation rec {
4+ pname = "pam_gnupg";
5+ version = "0.1";
6+
7+ src = fetchFromGitHub {
8+ owner = "cruegge";
9+ repo = "pam-gnupg";
10+ rev = "v${version}";
11+ sha256 = "0b70mazyvcbg6xyqllm62rwhbz0y94pcy202db1qyy4w8466bhsw";
12+ };
13+
14+ configureFlags = [
15+ "--with-moduledir=${placeholder "out"}/lib/security"
16+ ];
17+
18+ buildInputs = [ pam gnupg ];
19+
20+ nativeBuildInputs = [ autoreconfHook ];
21+
22+ meta = with stdenv.lib; {
23+ description = "Unlock GnuPG keys on login";
24+ longDescription = ''
25+ A PAM module that hands over your login password to gpg-agent. This can
26+ be useful if you are using a GnuPG-based password manager like pass.
27+ '';
28+ homepage = "https://github.com/cruegge/pam-gnupg";
29+ license = licenses.gpl3;
30+ maintainers = with maintainers; [ mtreca ];
31+ };
32+}
pkgs/top-level/all-packages.nix+2
@@ -18226,6 +18226,8 @@ in
1822618226
1822718227 pam_ccreds = callPackage ../os-specific/linux/pam_ccreds { };
1822818228
18229+ pam_gnupg = callPackage ../os-specific/linux/pam_gnupg { };
18230+
1822918231 pam_krb5 = callPackage ../os-specific/linux/pam_krb5 { };
1823018232
1823118233 pam_ldap = callPackage ../os-specific/linux/pam_ldap { };