diff options
author | Aaron Andersen <aaron@fosslib.net> | 2020-07-10 07:39:40 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-07-10 07:39:40 -0400 |
commit | b34f5396fd235b53f66b2bf11b89abfa60e2133c (patch) | |
tree | 0591e0a1734198e957ab67afa5b118bdea72bda3 /pkgs/top-level | |
parent | c255b0fa45adfde495931fae3d44515fae11c715 (diff) | |
parent | 4dc4d5d6a9da77619eea1d71b2f0573abbcf1df3 (diff) |
Merge pull request #84562 from deshaw/contrib/perl-authen-krb5-admin
perlPackages.AuthenKrb5Admin and dep
Diffstat (limited to 'pkgs/top-level')
-rw-r--r-- | pkgs/top-level/perl-packages.nix | 43 |
1 files changed, 43 insertions, 0 deletions
diff --git a/pkgs/top-level/perl-packages.nix b/pkgs/top-level/perl-packages.nix index 13ced8107e862..06a384bf4e6d7 100644 --- a/pkgs/top-level/perl-packages.nix +++ b/pkgs/top-level/perl-packages.nix @@ -803,6 +803,49 @@ let }; }; + AuthenKrb5 = buildPerlModule { + pname = "Authen-Krb5"; + version = "1.905"; + src = fetchurl { + url = "mirror://cpan/authors/id/I/IO/IOANR/Authen-Krb5-1.905.tar.gz"; + sha256 = "0kgpl0x1qxq1p2ccxy8qqkrvqba2gq6aq6p931qnz9812nxh0yyp"; + }; + perlPreHook = "export LD=$CC"; + propagatedBuildInputs = [ pkgs.libkrb5 DevelChecklib FileWhich PkgConfig ]; + meta = { + description = "XS bindings for Kerberos 5"; + license = with stdenv.lib.licenses; [ artistic1 gpl1Plus ]; + }; + }; + + AuthenKrb5Admin = buildPerlPackage rec { + pname = "Authen-Krb5-Admin"; + version = "0.17"; + src = fetchurl { + url = "mirror://cpan/authors/id/S/SJ/SJQUINNEY/${pname}-${version}.tar.gz"; + sha256 = "5dd49cacd983efd61a8c3f1a56571bb73785eb155908b5d7bec97eed78df0c54"; + }; + 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. + checkPhase = '' + perl -I blib/lib -I blib/arch -MAuthen::Krb5::Admin -e 'print "1..1\nok 1\n"' + ''; + meta = { + description = "Perl extension for MIT Kerberos 5 admin interface"; + license = stdenv.lib.licenses.bsd3; + }; + }; + AuthenModAuthPubTkt = buildPerlPackage { pname = "Authen-ModAuthPubTkt"; version = "0.1.1"; |