Merge pull request #202926 from Flakebi/maddy

maddy: enable pam support
This commit is contained in:
Jonas Heinrich 2022-11-26 13:42:39 +01:00 committed by GitHub
commit cbccfdd60b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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