From f342d3f29a3b8d1a1b095a6f4fc3293bc96ea199 Mon Sep 17 00:00:00 2001 From: Flakebi Date: Thu, 6 Jan 2022 01:23:37 +0100 Subject: [PATCH] maddy: enable pam support This allows to use pam for user authentication. --- pkgs/servers/maddy/default.nix | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/pkgs/servers/maddy/default.nix b/pkgs/servers/maddy/default.nix index 6ea212840971..27ee1e3d6dee 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 = ''