mongodb-tools: build with kerberos support

This commit is contained in:
Rohit1 Singh
2026-02-03 04:09:10 -05:00
parent 4533d92937
commit a6ec22ec27
+3 -1
View File
@@ -6,6 +6,7 @@
pkg-config,
libpcap,
nix-update-script,
krb5,
}:
buildGoModule rec {
@@ -25,6 +26,7 @@ buildGoModule rec {
buildInputs = [
openssl
libpcap
krb5
];
# Mongodb incorrectly names all of their binaries main
@@ -47,7 +49,7 @@ buildGoModule rec {
runHook preBuild
${lib.concatMapStrings (t: ''
go build -o "$out/bin/${t}" -tags ssl -ldflags "-s -w" ./${t}/main
go build -o "$out/bin/${t}" -tags "gssapi ssl" -ldflags "-s -w" ./${t}/main
'') tools}
runHook postBuild