nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
at devShellTools-shell 51 lines 1.2 kB view raw
1{ 2 fetchurl, 3 lib, 4 stdenv, 5 libidn, 6 libkrb5, 7 testers, 8}: 9 10stdenv.mkDerivation (finalAttrs: { 11 pname = "gsasl"; 12 version = "2.2.2"; 13 14 src = fetchurl { 15 url = "mirror://gnu/gsasl/gsasl-${finalAttrs.version}.tar.gz"; 16 sha256 = "sha256-QejkQmSOzK9kWdmtk9SxhTC5bI6vUOPzQlMu8nXv87o="; 17 }; 18 19 buildInputs = [ 20 libidn 21 libkrb5 22 ]; 23 24 configureFlags = [ "--with-gssapi-impl=mit" ]; 25 26 preCheck = '' 27 export LOCALDOMAIN="dummydomain" 28 ''; 29 doCheck = !stdenv.hostPlatform.isDarwin; 30 31 passthru.tests.pkg-config = testers.testMetaPkgConfig finalAttrs.finalPackage; 32 33 meta = { 34 description = "GNU SASL, Simple Authentication and Security Layer library"; 35 mainProgram = "gsasl"; 36 37 longDescription = '' 38 GNU SASL is a library that implements the IETF Simple 39 Authentication and Security Layer (SASL) framework and 40 some SASL mechanisms. SASL is used in network servers 41 (e.g. IMAP, SMTP, etc.) to authenticate peers. 42 ''; 43 44 homepage = "https://www.gnu.org/software/gsasl/"; 45 license = lib.licenses.gpl3Plus; 46 47 maintainers = with lib.maintainers; [ shlevy ]; 48 pkgConfigModules = [ "libgsasl" ]; 49 platforms = lib.platforms.all; 50 }; 51})