···8}:
910{ lib, stdenv
11+# This *is* correct, though unusual. as a way of getting krb5-config from the
12+# package without splicing See: https://github.com/NixOS/nixpkgs/pull/107606
13+, pkgs
14, fetchurl
15, fetchpatch
16, zlib
···45 '';
4647 nativeBuildInputs = [ pkg-config ]
48+ # This is not the same as the kerberos from the inputs! pkgs.kerberos is
49+ # needed here to access krb5-config in order to cross compile. See:
50+ # https://github.com/NixOS/nixpkgs/pull/107606
51+ ++ optional withKerberos pkgs.kerberos
52 ++ extraNativeBuildInputs;
53 buildInputs = [ zlib openssl libedit ]
54 ++ optional withFIDO libfido2