From 7b11b26ca862ba41d9da342f12e6b822d4232c3f Mon Sep 17 00:00:00 2001 From: Sean Link Date: Mon, 19 Feb 2024 11:33:24 -0700 Subject: [PATCH] gnutls: run nixpkgs-fmt --- pkgs/development/libraries/gnutls/default.nix | 76 ++++++++++++------- 1 file changed, 49 insertions(+), 27 deletions(-) diff --git a/pkgs/development/libraries/gnutls/default.nix b/pkgs/development/libraries/gnutls/default.nix index b8c95653e366..8be6a8f3d8b9 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/";