···2020, pam
2121, etcDir ? null
2222, withKerberos ? true
2323-, kerberos
2323+, libkrb5
2424, libfido2
2525, withFIDO ? stdenv.hostPlatform.isUnix && !stdenv.hostPlatform.isMusl
2626, linkOpenssl ? true
···4545 '';
46464747 nativeBuildInputs = [ pkg-config ]
4848- # This is not the same as the kerberos from the inputs! pkgs.kerberos is
4848+ # This is not the same as the libkrb5 from the inputs! pkgs.libkrb5 is
4949 # needed here to access krb5-config in order to cross compile. See:
5050 # https://github.com/NixOS/nixpkgs/pull/107606
5151- ++ optional withKerberos pkgs.kerberos
5151+ ++ optional withKerberos pkgs.libkrb5
5252 ++ extraNativeBuildInputs;
5353 buildInputs = [ zlib openssl libedit ]
5454 ++ optional withFIDO libfido2
5555- ++ optional withKerberos kerberos
5555+ ++ optional withKerberos libkrb5
5656 ++ optional stdenv.isLinux pam;
57575858 preConfigure = ''
···7070 # Kerberos can be found either by krb5-config or by fall-back shell
7171 # code in openssh's configure.ac. Neither of them support static
7272 # build, but patching code for krb5-config is simpler, so to get it
7373- # into PATH, kerberos.dev is added into buildInputs.
7373+ # into PATH, libkrb5.dev is added into buildInputs.
7474 + optionalString stdenv.hostPlatform.isStatic ''
7575 sed -i "s,PKGCONFIG --libs,PKGCONFIG --libs --static,g" configure
7676 sed -i 's#KRB5CONF --libs`#KRB5CONF --libs` -lkrb5support -lkeyutils#g' configure
···8989 (if stdenv.isLinux then "--with-pam" else "--without-pam")
9090 ] ++ optional (etcDir != null) "--sysconfdir=${etcDir}"
9191 ++ optional withFIDO "--with-security-key-builtin=yes"
9292- ++ optional withKerberos (assert kerberos != null; "--with-kerberos5=${kerberos}")
9292+ ++ optional withKerberos (assert libkrb5 != null; "--with-kerberos5=${libkrb5}")
9393 ++ optional stdenv.isDarwin "--disable-libutil"
9494 ++ optional (!linkOpenssl) "--without-openssl";
9595
···337337 kicad-with-packages3d = kicad; # added 2019-11-25
338338 kindlegen = throw "kindlegen has been removed from nixpkgs, as it's abandoned and no longer available for download."; # 2021-03-09
339339 krename-qt5 = krename; # added 2017-02-18
340340+ kerberos = libkrb5; # moved from top-level 2021-03-14
340341 keymon = throw "keymon has been removed from nixpkgs, as it's abandoned and archived."; # 2019-12-10
341342 kvm = qemu_kvm; # added 2018-04-25
342343 latinmodern-math = lmmath;
+2-5
pkgs/top-level/all-packages.nix
···1391113911 cypress = callPackage ../development/web/cypress { };
13912139121391313913 cyrus_sasl = callPackage ../development/libraries/cyrus-sasl {
1391413914- kerberos = if stdenv.isFreeBSD then libheimdal else kerberos;
1391413914+ libkrb5 = if stdenv.isFreeBSD then libheimdal else libkrb5;
1391513915 };
13916139161391713917 # Make bdb5 the default as it is the last release under the custom
···1494914949 };
1495014950 krb5Full = krb5;
1495114951 libkrb5 = krb5.override { type = "lib"; };
1495214952- kerberos = libkrb5; # TODO: move to aliases.nix
14953149521495414953 l-smash = callPackage ../development/libraries/l-smash {
1495514954 stdenv = gccStdenv;
···18113181121811418113 ### SERVERS
18115181141811618116- _389-ds-base = callPackage ../servers/ldap/389 {
1811718117- kerberos = libkrb5;
1811818118- };
1811518115+ _389-ds-base = callPackage ../servers/ldap/389 { };
18119181161812018117 adguardhome = callPackage ../servers/adguardhome {};
1812118118