krb5Full: turn into alias

ajs124 c7930769 d4ec6e6f

Changed files
+42 -42
nixos
modules
config
services
system
kerberos
tests
kerberos
krb5
pkgs
+2 -2
nixos/modules/config/krb5/default.nix
···
kerberos = mkOption {
type = types.package;
-
default = pkgs.krb5Full;
-
defaultText = literalExpression "pkgs.krb5Full";
example = literalExpression "pkgs.heimdal";
description = lib.mdDoc ''
The Kerberos implementation that will be present in
···
kerberos = mkOption {
type = types.package;
+
default = pkgs.krb5;
+
defaultText = literalExpression "pkgs.krb5";
example = literalExpression "pkgs.heimdal";
description = lib.mdDoc ''
The Kerberos implementation that will be present in
+1 -1
nixos/modules/services/system/kerberos/mit.nix
···
in
{
-
config = mkIf (cfg.enable && kerberos == pkgs.krb5Full) {
systemd.services.kadmind = {
description = "Kerberos Administration Daemon";
wantedBy = [ "multi-user.target" ];
···
in
{
+
config = mkIf (cfg.enable && kerberos == pkgs.krb5) {
systemd.services.kadmind = {
description = "Kerberos Administration Daemon";
wantedBy = [ "multi-user.target" ];
+1 -1
nixos/tests/kerberos/mit.nix
···
};
krb5 = {
enable = true;
-
kerberos = pkgs.krb5Full;
libdefaults = {
default_realm = "FOO.BAR";
};
···
};
krb5 = {
enable = true;
+
kerberos = pkgs.krb5;
libdefaults = {
default_realm = "FOO.BAR";
};
+1 -1
nixos/tests/krb5/example-config.nix
···
{ pkgs, ... }: {
krb5 = {
enable = true;
-
kerberos = pkgs.krb5Full;
libdefaults = {
default_realm = "ATHENA.MIT.EDU";
};
···
{ pkgs, ... }: {
krb5 = {
enable = true;
+
kerberos = pkgs.krb5;
libdefaults = {
default_realm = "ATHENA.MIT.EDU";
};
+2 -2
pkgs/development/python-modules/cccolutils/default.nix
···
, fetchPypi
, git
, gitpython
-
, krb5Full
, mock
, pytestCheckHook
, pythonOlder
···
};
buildInputs = [
-
krb5Full
];
propagatedBuildInputs = [
···
, fetchPypi
, git
, gitpython
+
, krb5
, mock
, pytestCheckHook
, pythonOlder
···
};
buildInputs = [
+
krb5
];
propagatedBuildInputs = [
+3 -3
pkgs/development/python-modules/gssapi/default.nix
···
, six
, decorator
, nose
-
, krb5Full
, GSS
, parameterized
, shouldbe
···
# It's used to locate headers
postPatch = ''
substituteInPlace setup.py \
-
--replace 'get_output(f"{kc} gssapi --prefix")' '"${lib.getDev krb5Full}"'
'';
nativeBuildInputs = [
cython
-
krb5Full
];
propagatedBuildInputs = [
···
, six
, decorator
, nose
+
, krb5
, GSS
, parameterized
, shouldbe
···
# It's used to locate headers
postPatch = ''
substituteInPlace setup.py \
+
--replace 'get_output(f"{kc} gssapi --prefix")' '"${lib.getDev krb5}"'
'';
nativeBuildInputs = [
cython
+
krb5
];
propagatedBuildInputs = [
+3 -3
pkgs/development/python-modules/k5test/default.nix
···
, buildPythonPackage
, fetchPypi
, substituteAll
-
, krb5Full
, findutils
, which
, pythonOlder
···
patches = [
(substituteAll {
src = ./fix-paths.patch;
-
inherit findutils krb5Full;
# krb5-config is in dev output
-
krb5FullDev = krb5Full.dev;
which = "${which}/bin/which";
})
];
···
, buildPythonPackage
, fetchPypi
, substituteAll
+
, krb5
, findutils
, which
, pythonOlder
···
patches = [
(substituteAll {
src = ./fix-paths.patch;
+
inherit findutils krb5;
# krb5-config is in dev output
+
krb5Dev = krb5.dev;
which = "${which}/bin/which";
})
];
+18 -18
pkgs/development/python-modules/k5test/fix-paths.patch
···
# if there was no LD_LIBRARY_PATH, or the above failed
if _PLUGIN_DIR is None:
- lib_dir = os.path.join(get_output('krb5-config --prefix'), 'lib64')
-
+ lib_dir = os.path.join(get_output('@krb5FullDev@/bin/krb5-config --prefix'), 'lib64')
_PLUGIN_DIR = _decide_plugin_dir(_find_plugin_dirs_installed(lib_dir))
# /usr/lib64 seems only to be distinct on Fedora/RHEL/Centos family
if _PLUGIN_DIR is None:
- lib_dir = os.path.join(get_output('krb5-config --prefix'), 'lib')
-
+ lib_dir = os.path.join(get_output('@krb5FullDev@/bin/krb5-config --prefix'), 'lib')
_PLUGIN_DIR = _decide_plugin_dir(_find_plugin_dirs_installed(lib_dir))
if _PLUGIN_DIR is not None:
···
if provider_cls == K5Realm:
krb5_config = _discover_path('krb5-config',
- '/usr/bin/krb5-config', kwargs)
-
+ '@krb5Full@/bin/krb5-config', kwargs)
try:
krb5_version = subprocess.check_output(
···
if 'heimdal' in krb5_version.lower() or (
sys.platform == 'darwin' and
- krb5_config == '/usr/bin/krb5-config'):
-
+ krb5_config == '@krb5Full@/bin/krb5-config'):
provider_cls = HeimdalRealm
else:
provider_cls = MITRealm
···
- ('kprop', 'kprop', '/usr/sbin/kprop'),
- ('_kinit', 'kinit', '/usr/bin/kinit'),
- ('_klist', 'klist', '/usr/bin/klist'),
-
+ ('kdb5_util', 'kdb5_util', '@krb5Full@/bin/kdb5_util'),
-
+ ('krb5kdc', 'krb5kdc', '@krb5Full@/bin/kdb5kdc'),
-
+ ('kadmin', 'kadmin', '@krb5Full@/bin/admin'),
-
+ ('kadmin_local', 'kadmin.local', '@krb5Full@/bin/kadmin.local'),
-
+ ('kadmind', 'kadmind', '@krb5Full@/bin/kadmind'),
-
+ ('kprop', 'kprop', '@krb5Full@/bin/kprop'),
-
+ ('_kinit', 'kinit', '@krb5Full@/bin/kinit'),
-
+ ('_klist', 'klist', '@krb5Full@/bin/klist'),
]
@property
···
('krb5kdc', 'kdc', os.path.join(base, 'kdc')),
- ('kadmin', 'kadmin', '/usr/bin/kadmin'),
- ('kadmin_local', 'kadmin', '/usr/bin/kadmin'),
-
+ ('kadmin', 'kadmin', '@krb5Full@/bin/kadmin'),
-
+ ('kadmin_local', 'kadmin', '@krb5Full@/bin/kadmin'),
('kadmind', 'kadmind', os.path.join(base, 'kadmind')),
- ('_kinit', 'kinit', '/usr/bin/kinit'),
- ('_klist', 'klist', '/usr/bin/klist'),
- ('_ktutil', 'ktutil', '/usr/bin/ktutil'),
-
+ ('_kinit', 'kinit', '@krb5Full@/bin/kinit'),
-
+ ('_klist', 'klist', '@krb5Full@/bin/klist'),
-
+ ('_ktutil', 'ktutil', '@krb5Full@/bin/ktutil'),
]
@property
···
global _KRB_VERSION
if _KRB_VERSION is None:
- _KRB_VERSION = _utils.get_output("krb5-config --version")
-
+ _KRB_VERSION = _utils.get_output("@krb5FullDev@/bin/krb5-config --version")
_KRB_VERSION = _KRB_VERSION.split(' ')[-1].split('.')
def make_ext_test(func):
···
# if there was no LD_LIBRARY_PATH, or the above failed
if _PLUGIN_DIR is None:
- lib_dir = os.path.join(get_output('krb5-config --prefix'), 'lib64')
+
+ lib_dir = os.path.join(get_output('@krb5Dev@/bin/krb5-config --prefix'), 'lib64')
_PLUGIN_DIR = _decide_plugin_dir(_find_plugin_dirs_installed(lib_dir))
# /usr/lib64 seems only to be distinct on Fedora/RHEL/Centos family
if _PLUGIN_DIR is None:
- lib_dir = os.path.join(get_output('krb5-config --prefix'), 'lib')
+
+ lib_dir = os.path.join(get_output('@krb5Dev@/bin/krb5-config --prefix'), 'lib')
_PLUGIN_DIR = _decide_plugin_dir(_find_plugin_dirs_installed(lib_dir))
if _PLUGIN_DIR is not None:
···
if provider_cls == K5Realm:
krb5_config = _discover_path('krb5-config',
- '/usr/bin/krb5-config', kwargs)
+
+ '@krb5@/bin/krb5-config', kwargs)
try:
krb5_version = subprocess.check_output(
···
if 'heimdal' in krb5_version.lower() or (
sys.platform == 'darwin' and
- krb5_config == '/usr/bin/krb5-config'):
+
+ krb5_config == '@krb5@/bin/krb5-config'):
provider_cls = HeimdalRealm
else:
provider_cls = MITRealm
···
- ('kprop', 'kprop', '/usr/sbin/kprop'),
- ('_kinit', 'kinit', '/usr/bin/kinit'),
- ('_klist', 'klist', '/usr/bin/klist'),
+
+ ('kdb5_util', 'kdb5_util', '@krb5@/bin/kdb5_util'),
+
+ ('krb5kdc', 'krb5kdc', '@krb5@/bin/kdb5kdc'),
+
+ ('kadmin', 'kadmin', '@krb5@/bin/admin'),
+
+ ('kadmin_local', 'kadmin.local', '@krb5@/bin/kadmin.local'),
+
+ ('kadmind', 'kadmind', '@krb5@/bin/kadmind'),
+
+ ('kprop', 'kprop', '@krb5@/bin/kprop'),
+
+ ('_kinit', 'kinit', '@krb5@/bin/kinit'),
+
+ ('_klist', 'klist', '@krb5@/bin/klist'),
]
@property
···
('krb5kdc', 'kdc', os.path.join(base, 'kdc')),
- ('kadmin', 'kadmin', '/usr/bin/kadmin'),
- ('kadmin_local', 'kadmin', '/usr/bin/kadmin'),
+
+ ('kadmin', 'kadmin', '@krb5@/bin/kadmin'),
+
+ ('kadmin_local', 'kadmin', '@krb5@/bin/kadmin'),
('kadmind', 'kadmind', os.path.join(base, 'kadmind')),
- ('_kinit', 'kinit', '/usr/bin/kinit'),
- ('_klist', 'klist', '/usr/bin/klist'),
- ('_ktutil', 'ktutil', '/usr/bin/ktutil'),
+
+ ('_kinit', 'kinit', '@krb5@/bin/kinit'),
+
+ ('_klist', 'klist', '@krb5@/bin/klist'),
+
+ ('_ktutil', 'ktutil', '@krb5@/bin/ktutil'),
]
@property
···
global _KRB_VERSION
if _KRB_VERSION is None:
- _KRB_VERSION = _utils.get_output("krb5-config --version")
+
+ _KRB_VERSION = _utils.get_output("@krb5Dev@/bin/krb5-config --version")
_KRB_VERSION = _KRB_VERSION.split(' ')[-1].split('.')
def make_ext_test(func):
+1
pkgs/top-level/aliases.nix
···
kodiPlainWayland = kodi-wayland;
kodiPlugins = kodiPackages; # Added 2021-03-09;
kramdown-rfc2629 = rubyPackages.kramdown-rfc2629; # Added 2021-03-23
krename-qt5 = throw "'krename-qt5' has been renamed to/replaced by 'krename'"; # Converted to throw 2022-02-22
krita-beta = krita; # moved from top-level 2021-12-23
kube-aws = throw "kube-aws is deprecated and archived by upstream"; # Added 2022-04-05
···
kodiPlainWayland = kodi-wayland;
kodiPlugins = kodiPackages; # Added 2021-03-09;
kramdown-rfc2629 = rubyPackages.kramdown-rfc2629; # Added 2021-03-23
+
krb5Full = krb5;
krename-qt5 = throw "'krename-qt5' has been renamed to/replaced by 'krename'"; # Converted to throw 2022-02-22
krita-beta = krita; # moved from top-level 2021-12-23
kube-aws = throw "kube-aws is deprecated and archived by upstream"; # Added 2022-04-05
-1
pkgs/top-level/all-packages.nix
···
krb5 = callPackage ../development/libraries/kerberos/krb5.nix {
inherit (buildPackages.darwin) bootstrap_cmds;
};
-
krb5Full = krb5;
libkrb5 = krb5.override { type = "lib"; };
kronosnet = callPackage ../development/libraries/kronosnet { };
···
krb5 = callPackage ../development/libraries/kerberos/krb5.nix {
inherit (buildPackages.darwin) bootstrap_cmds;
};
libkrb5 = krb5.override { type = "lib"; };
kronosnet = callPackage ../development/libraries/kronosnet { };
+8 -8
pkgs/top-level/perl-packages.nix
···
url = "mirror://cpan/authors/id/S/SJ/SJQUINNEY/Authen-Krb5-Admin-0.17.tar.gz";
hash = "sha256-XdScrNmD79YajD8aVlcbtzeF6xVZCLXXvsl+7XjfDFQ=";
};
-
propagatedBuildInputs = [ pkgs.krb5Full.dev AuthenKrb5 ];
# The following ENV variables are required by Makefile.PL to find
-
# programs in krb5Full.dev. It is not enough to just specify the
-
# path to krb5-config as this tool returns the prefix of krb5Full,
# which implies a working value for KRB5_LIBDIR, but not the others.
perlPreHook = ''
-
export KRB5_CONFTOOL=${pkgs.krb5Full.dev}/bin/krb5-config
-
export KRB5_BINDIR=${pkgs.krb5Full.dev}/bin
-
export KRB5_INCDIR=${pkgs.krb5Full.dev}/include
'';
# Tests require working Kerberos infrastructure so replace with a
# simple attempt to exercise the module.
···
url = "mirror://cpan/authors/id/A/AG/AGROLMS/GSSAPI-0.28.tar.gz";
hash = "sha256-fY8se2F2L7TsctLsKBKQ8vh/nH0pgnPaRSVDKmXncNY=";
};
-
propagatedBuildInputs = [ pkgs.krb5Full.dev ];
-
makeMakerFlags = [ "--gssapiimpl" "${pkgs.krb5Full.dev}" ];
meta = {
description = "Perl extension providing access to the GSSAPIv2 library";
license = with lib.licenses; [ artistic1 gpl1Plus ];
···
url = "mirror://cpan/authors/id/S/SJ/SJQUINNEY/Authen-Krb5-Admin-0.17.tar.gz";
hash = "sha256-XdScrNmD79YajD8aVlcbtzeF6xVZCLXXvsl+7XjfDFQ=";
};
+
propagatedBuildInputs = [ pkgs.krb5.dev AuthenKrb5 ];
# The following ENV variables are required by Makefile.PL to find
+
# programs in krb5.dev. It is not enough to just specify the
+
# path to krb5-config as this tool returns the prefix of krb5,
# which implies a working value for KRB5_LIBDIR, but not the others.
perlPreHook = ''
+
export KRB5_CONFTOOL=${pkgs.krb5.dev}/bin/krb5-config
+
export KRB5_BINDIR=${pkgs.krb5.dev}/bin
+
export KRB5_INCDIR=${pkgs.krb5.dev}/include
'';
# Tests require working Kerberos infrastructure so replace with a
# simple attempt to exercise the module.
···
url = "mirror://cpan/authors/id/A/AG/AGROLMS/GSSAPI-0.28.tar.gz";
hash = "sha256-fY8se2F2L7TsctLsKBKQ8vh/nH0pgnPaRSVDKmXncNY=";
};
+
propagatedBuildInputs = [ pkgs.krb5.dev ];
+
makeMakerFlags = [ "--gssapiimpl" "${pkgs.krb5.dev}" ];
meta = {
description = "Perl extension providing access to the GSSAPIv2 library";
license = with lib.licenses; [ artistic1 gpl1Plus ];
+2 -2
pkgs/top-level/python-packages.nix
···
gspread = callPackage ../development/python-modules/gspread { };
gssapi = callPackage ../development/python-modules/gssapi {
-
inherit (pkgs) krb5Full;
inherit (pkgs.darwin.apple_sdk.frameworks) GSS;
};
···
jxmlease = callPackage ../development/python-modules/jxmlease { };
k5test = callPackage ../development/python-modules/k5test {
-
inherit (pkgs) krb5Full findutils which;
};
kaa-base = callPackage ../development/python-modules/kaa-base { };
···
gspread = callPackage ../development/python-modules/gspread { };
gssapi = callPackage ../development/python-modules/gssapi {
+
inherit (pkgs) krb5;
inherit (pkgs.darwin.apple_sdk.frameworks) GSS;
};
···
jxmlease = callPackage ../development/python-modules/jxmlease { };
k5test = callPackage ../development/python-modules/k5test {
+
inherit (pkgs) krb5 findutils which;
};
kaa-base = callPackage ../development/python-modules/kaa-base { };