maddy: enable pam support

This allows to use pam for user authentication.
This commit is contained in:
Flakebi 2022-01-06 01:23:37 +01:00
parent 690ffff026
commit f342d3f29a
No known key found for this signature in database
GPG Key ID: 38E7ED984D7DCD02

View File

@ -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 = ''