krb5: add linux keyring support

This requires some minor hoop-hopping because it's involved in the
Linux bootstrap, but it's nothing too complicated.

Fixes #43289

+4 -2
+2 -1
pkgs/development/libraries/kerberos/krb5.nix
··· 1 1 { stdenv, fetchurl, pkgconfig, perl, yacc, bootstrap_cmds 2 - , openssl, openldap, libedit 2 + , openssl, openldap, libedit, keyutils 3 3 4 4 # Extra Arguments 5 5 , type ? "" ··· 40 40 # Provides the mig command used by the build scripts 41 41 ++ optional stdenv.isDarwin bootstrap_cmds; 42 42 buildInputs = [ openssl ] 43 + ++ optionals (stdenv.hostPlatform.isLinux) [ keyutils ] 43 44 ++ optionals (!libOnly) [ openldap libedit ]; 44 45 45 46 preConfigure = "cd ./src";
+2 -1
pkgs/top-level/all-packages.nix
··· 14196 14196 kernel = null; # dpdk modules are in linuxPackages.dpdk.kmod 14197 14197 }; 14198 14198 14199 - keyutils = callPackage ../os-specific/linux/keyutils { }; 14199 + # Using fetchurlBoot because this is used by kerberos (on Linux), which curl depends on 14200 + keyutils = callPackage ../os-specific/linux/keyutils { fetchurl = fetchurlBoot; }; 14200 14201 14201 14202 libselinux = callPackage ../os-specific/linux/libselinux { }; 14202 14203