about summary refs log tree commit diff
path: root/pkgs/servers/maddy
diff options
context:
space:
mode:
authorFlakebi <flakebi@t-online.de>2022-01-06 01:23:37 +0100
committerFlakebi <flakebi@t-online.de>2022-11-25 22:53:36 +0100
commitf342d3f29a3b8d1a1b095a6f4fc3293bc96ea199 (patch)
treea4bdb57837e409915815b3de20fb9da435ca7204 /pkgs/servers/maddy
parent690ffff026b4e635b46f69002c0f4e81c65dfc2e (diff)
maddy: enable pam support
This allows to use pam for user authentication.
Diffstat (limited to 'pkgs/servers/maddy')
-rw-r--r--pkgs/servers/maddy/default.nix6
1 files changed, 5 insertions, 1 deletions
diff --git a/pkgs/servers/maddy/default.nix b/pkgs/servers/maddy/default.nix
index 6ea2128409711..27ee1e3d6deeb 100644
--- a/pkgs/servers/maddy/default.nix
+++ b/pkgs/servers/maddy/default.nix
@@ -1,4 +1,4 @@
-{ lib, buildGoModule, fetchFromGitHub, coreutils, installShellFiles, scdoc, nixosTests }:
+{ lib, buildGoModule, fetchFromGitHub, pam, coreutils, installShellFiles, scdoc, nixosTests }:
 
 buildGoModule rec {
   pname = "maddy";
@@ -13,10 +13,14 @@ buildGoModule rec {
 
   vendorSha256 = "sha256-10cLNl9jWYX8XIKQkCxJ+/ymZC1YJRHUJWZQhq7zeV4=";
 
+  tags = [ "libpam" ];
+
   ldflags = [ "-s" "-w" "-X github.com/foxcpp/maddy.Version=${version}" ];
 
   subPackages = [ "cmd/maddy" ];
 
+  buildInputs = [ pam ];
+
   nativeBuildInputs = [ installShellFiles scdoc ];
 
   postInstall = ''