diff options
author | Sean Link <sean.link@lightdeckdx.com> | 2024-02-19 11:33:24 -0700 |
---|---|---|
committer | Bjørn Forsman <bjorn.forsman@gmail.com> | 2024-02-23 20:17:11 +0100 |
commit | 7b11b26ca862ba41d9da342f12e6b822d4232c3f (patch) | |
tree | e317db952c1eddfd6498b9679ea6c66c16ac6bb4 | |
parent | f9ef0053c54f953f6420d6d7180059e23eaad90b (diff) |
gnutls: run nixpkgs-fmt
-rw-r--r-- | pkgs/development/libraries/gnutls/default.nix | 76 |
1 files changed, 49 insertions, 27 deletions
diff --git a/pkgs/development/libraries/gnutls/default.nix b/pkgs/development/libraries/gnutls/default.nix index b8c95653e366b..8be6a8f3d8b97 100644 --- a/pkgs/development/libraries/gnutls/default.nix +++ b/pkgs/development/libraries/gnutls/default.nix @@ -1,14 +1,36 @@ -{ config, lib, stdenv, fetchurl, zlib, lzo, libtasn1, nettle, pkg-config, lzip -, perl, gmp, autoconf, automake, libidn2, libiconv +{ config +, lib +, stdenv +, fetchurl +, zlib +, lzo +, libtasn1 +, nettle +, pkg-config +, lzip +, perl +, gmp +, autoconf +, automake +, libidn2 +, libiconv , texinfo -, unbound, dns-root-data, gettext, util-linux +, unbound +, dns-root-data +, gettext +, util-linux , cxxBindings ? !stdenv.hostPlatform.isStatic # tries to link libstdc++.so -, tpmSupport ? false, trousers, which, nettools, libunistring -, withP11-kit ? !stdenv.hostPlatform.isStatic, p11-kit +, tpmSupport ? false +, trousers +, which +, nettools +, libunistring +, withP11-kit ? !stdenv.hostPlatform.isStatic +, p11-kit , Security # darwin Security.framework -# certificate compression - only zlib now, more possible: zstd, brotli + # certificate compression - only zlib now, more possible: zstd, brotli -# for passthru.tests + # for passthru.tests , curlWithGnuTls , emacs , ffmpeg @@ -28,7 +50,7 @@ let # XXX: Gnulib's `test-select' fails on FreeBSD: # https://hydra.nixos.org/build/2962084/nixlog/1/raw . doCheck = !stdenv.isFreeBSD && !stdenv.isDarwin - && stdenv.buildPlatform == stdenv.hostPlatform; + && stdenv.buildPlatform == stdenv.hostPlatform; inherit (stdenv.hostPlatform) isDarwin; in @@ -45,7 +67,7 @@ stdenv.mkDerivation rec { outputs = [ "bin" "dev" "out" "man" "devdoc" ]; # Not normally useful docs. outputInfo = "devdoc"; - outputDoc = "devdoc"; + outputDoc = "devdoc"; patches = [ ./nix-ssl-cert-file.patch @@ -68,15 +90,15 @@ stdenv.mkDerivation rec { preConfigure = "patchShebangs ."; configureFlags = lib.optionals withP11-kit [ - "--with-default-trust-store-file=/etc/ssl/certs/ca-certificates.crt" - "--with-default-trust-store-pkcs11=pkcs11:" - ] ++ [ - "--disable-dependency-tracking" - "--enable-fast-install" - "--with-unbound-root-key-file=${dns-root-data}/root.key" - (lib.withFeature withP11-kit "p11-kit") - (lib.enableFeature cxxBindings "cxx") - ]; + "--with-default-trust-store-file=/etc/ssl/certs/ca-certificates.crt" + "--with-default-trust-store-pkcs11=pkcs11:" + ] ++ [ + "--disable-dependency-tracking" + "--enable-fast-install" + "--with-unbound-root-key-file=${dns-root-data}/root.key" + (lib.withFeature withP11-kit "p11-kit") + (lib.enableFeature cxxBindings "cxx") + ]; enableParallelBuilding = true; @@ -121,17 +143,17 @@ stdenv.mkDerivation rec { description = "The GNU Transport Layer Security Library"; longDescription = '' - GnuTLS is a project that aims to develop a library which - provides a secure layer, over a reliable transport - layer. Currently the GnuTLS library implements the proposed standards by - the IETF's TLS working group. + GnuTLS is a project that aims to develop a library which + provides a secure layer, over a reliable transport + layer. Currently the GnuTLS library implements the proposed standards by + the IETF's TLS working group. - Quoting from the TLS protocol specification: + Quoting from the TLS protocol specification: - "The TLS protocol provides communications privacy over the - Internet. The protocol allows client/server applications to - communicate in a way that is designed to prevent eavesdropping, - tampering, or message forgery." + "The TLS protocol provides communications privacy over the + Internet. The protocol allows client/server applications to + communicate in a way that is designed to prevent eavesdropping, + tampering, or message forgery." ''; homepage = "https://gnutls.org/"; |