2023-10-19 13:55:26 +00:00
|
|
|
{ fetchurl, lib, stdenv, libidn, libkrb5
|
|
|
|
, testers
|
|
|
|
}:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2023-10-19 13:55:26 +00:00
|
|
|
stdenv.mkDerivation (finalAttrs: {
|
2021-07-21 07:28:18 +00:00
|
|
|
pname = "gsasl";
|
2024-01-13 08:15:51 +00:00
|
|
|
version = "2.2.1";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchurl {
|
2023-10-19 13:55:26 +00:00
|
|
|
url = "mirror://gnu/gsasl/${finalAttrs.pname}-${finalAttrs.version}.tar.gz";
|
2024-01-13 08:15:51 +00:00
|
|
|
sha256 = "sha256-1FtWLhO9E7n8ILNy9LUyaXQM9iefg28JzhG50yvO4HU=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2023-01-11 07:51:40 +00:00
|
|
|
# This is actually bug in musl. It is already fixed in trunc and
|
|
|
|
# this patch won't be necessary with musl > 1.2.3.
|
|
|
|
#
|
|
|
|
# https://git.musl-libc.org/cgit/musl/commit/?id=b50eb8c36c20f967bd0ed70c0b0db38a450886ba
|
|
|
|
patches = lib.optional stdenv.hostPlatform.isMusl ./gsasl.patch;
|
|
|
|
|
2021-04-05 15:23:46 +00:00
|
|
|
buildInputs = [ libidn libkrb5 ];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
configureFlags = [ "--with-gssapi-impl=mit" ];
|
|
|
|
|
|
|
|
preCheck = ''
|
|
|
|
export LOCALDOMAIN="dummydomain"
|
|
|
|
'';
|
|
|
|
doCheck = !stdenv.hostPlatform.isDarwin;
|
|
|
|
|
2023-10-19 13:55:26 +00:00
|
|
|
passthru.tests.pkg-config = testers.testMetaPkgConfig finalAttrs.finalPackage;
|
|
|
|
|
2020-04-24 23:36:52 +00:00
|
|
|
meta = {
|
|
|
|
description = "GNU SASL, Simple Authentication and Security Layer library";
|
2024-04-21 15:54:59 +00:00
|
|
|
mainProgram = "gsasl";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
longDescription =
|
|
|
|
'' GNU SASL is a library that implements the IETF Simple
|
|
|
|
Authentication and Security Layer (SASL) framework and
|
|
|
|
some SASL mechanisms. SASL is used in network servers
|
|
|
|
(e.g. IMAP, SMTP, etc.) to authenticate peers.
|
|
|
|
'';
|
|
|
|
|
|
|
|
homepage = "https://www.gnu.org/software/gsasl/";
|
2021-02-05 17:12:51 +00:00
|
|
|
license = lib.licenses.gpl3Plus;
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2021-02-05 17:12:51 +00:00
|
|
|
maintainers = with lib.maintainers; [ shlevy ];
|
2023-10-19 13:55:26 +00:00
|
|
|
pkgConfigModules = [ "libgsasl" ];
|
2021-02-05 17:12:51 +00:00
|
|
|
platforms = lib.platforms.all;
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
2023-10-19 13:55:26 +00:00
|
|
|
})
|