Unverified Commit 73b2187e authored by Janne Heß's avatar Janne Heß Committed by GitHub
Browse files

Merge pull request #259459 from jcgruenhage/openssh-ldns

openssh: enable ldns
parents d80d7d66 23422982
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -18,11 +18,13 @@
, zlib
, openssl
, libedit
, ldns
, pkg-config
, pam
, libredirect
, etcDir ? null
, withKerberos ? true
, withLdns ? true
, libkrb5
, libfido2
, hostname
@@ -64,6 +66,7 @@ stdenv.mkDerivation {
  buildInputs = [ zlib openssl libedit ]
    ++ lib.optional withFIDO libfido2
    ++ lib.optional withKerberos libkrb5
    ++ lib.optional withLdns ldns
    ++ lib.optional withPAM pam;

  preConfigure = ''
@@ -87,6 +90,7 @@ stdenv.mkDerivation {
    ++ lib.optional withKerberos (assert libkrb5 != null; "--with-kerberos5=${libkrb5}")
    ++ lib.optional stdenv.isDarwin "--disable-libutil"
    ++ lib.optional (!linkOpenssl) "--without-openssl"
    ++ lib.optional withLdns "--with-ldns"
    ++ extraConfigureFlags;

  ${if stdenv.hostPlatform.isStatic then "NIX_LDFLAGS" else null}= [ "-laudit" ] ++ lib.optionals withKerberos [ "-lkeyutils" ];