depot/third_party/nixpkgs/pkgs/development/libraries/gsasl/default.nix
Default email ae2dc6aea6 Project import generated by Copybara.
GitOrigin-RevId: 4c2fcb090b1f3e5b47eaa7bd33913b574a11e0a0
2024-10-11 07:15:48 +02:00

43 lines
1.2 KiB
Nix

{ fetchurl, lib, stdenv, libidn, libkrb5
, testers
}:
stdenv.mkDerivation (finalAttrs: {
pname = "gsasl";
version = "2.2.1";
src = fetchurl {
url = "mirror://gnu/gsasl/gsasl-${finalAttrs.version}.tar.gz";
sha256 = "sha256-1FtWLhO9E7n8ILNy9LUyaXQM9iefg28JzhG50yvO4HU=";
};
buildInputs = [ libidn libkrb5 ];
configureFlags = [ "--with-gssapi-impl=mit" ];
preCheck = ''
export LOCALDOMAIN="dummydomain"
'';
doCheck = !stdenv.hostPlatform.isDarwin;
passthru.tests.pkg-config = testers.testMetaPkgConfig finalAttrs.finalPackage;
meta = {
description = "GNU SASL, Simple Authentication and Security Layer library";
mainProgram = "gsasl";
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/";
license = lib.licenses.gpl3Plus;
maintainers = with lib.maintainers; [ shlevy ];
pkgConfigModules = [ "libgsasl" ];
platforms = lib.platforms.all;
};
})