mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-09-30 20:00:10 +00:00
41 lines
1.0 KiB
Nix
41 lines
1.0 KiB
Nix
{
|
|
buildGoModule,
|
|
fetchFromGitHub,
|
|
lib,
|
|
nix-update-script,
|
|
}:
|
|
buildGoModule (finalAttrs: {
|
|
pname = "sftpgo-plugin-auth";
|
|
version = "1.0.16";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "sftpgo";
|
|
repo = "sftpgo-plugin-auth";
|
|
tag = "v${finalAttrs.version}";
|
|
hash = "sha256-IKCdWr+ZmuPJxRYdjS3FMNS8CT8oy7tqTSlEwqxyNqw=";
|
|
};
|
|
|
|
vendorHash = "sha256-AZWwPwumSNwMUEixm+aarJZlUaT647haVM87qm6oE4U=";
|
|
|
|
env.CGO_ENABLED = "0";
|
|
|
|
ldflags = [
|
|
"-s"
|
|
"-X github.com/sftpgo/sftpgo-plugin-auth/cmd.commitHash=${finalAttrs.src.rev}"
|
|
];
|
|
|
|
subPackages = [ "." ];
|
|
|
|
passthru.updateScript = nix-update-script { };
|
|
|
|
meta = {
|
|
homepage = "https://github.com/sftpgo/sftpgo-plugin-auth";
|
|
changelog = "https://github.com/sftpgo/sftpgo-plugin-auth/releases/tag/${finalAttrs.src.tag}";
|
|
description = "LDAP/Active Directory authentication for SFTPGo";
|
|
license = lib.licenses.agpl3Only;
|
|
maintainers = with lib.maintainers; [ connor-grady ];
|
|
mainProgram = "sftpgo-plugin-auth";
|
|
platforms = lib.platforms.unix;
|
|
};
|
|
})
|