Commit a6ec22ec authored by Rohit1 Singh's avatar Rohit1 Singh
Browse files

mongodb-tools: build with kerberos support

parent 4533d929
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -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