[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
02/05: gnu: Add c-ares-for-node.
From: |
guix-commits |
Subject: |
02/05: gnu: Add c-ares-for-node. |
Date: |
Mon, 15 Nov 2021 16:46:13 -0500 (EST) |
jlicht pushed a commit to branch master
in repository guix.
commit ecbf59abad4e146a80ea2849d12569886bce732e
Author: Jelle Licht <jlicht@fsfe.org>
AuthorDate: Mon Nov 15 15:21:21 2021 +0100
gnu: Add c-ares-for-node.
* gnu/packages/adns.scm (c-ares-for-node): New variable.
Co-authored-by: Marius Bakke <marius@gnu.org>
---
gnu/packages/adns.scm | 22 ++++++++++++++++++++++
1 file changed, 22 insertions(+)
diff --git a/gnu/packages/adns.scm b/gnu/packages/adns.scm
index b003511..51694d0 100644
--- a/gnu/packages/adns.scm
+++ b/gnu/packages/adns.scm
@@ -118,3 +118,25 @@ multiple clients and programs with graphical user
interfaces.")
(arguments
`(;; XXX: Tests require name resolution (the normal variant runs no
tests).
#:tests? #f)))))
+
+(define-public c-ares-for-node
+ (hidden-package
+ (package
+ (inherit c-ares)
+ (name "c-ares")
+ (version "1.18.1")
+ (source (origin
+ (method url-fetch)
+ (uri (string-append
+ "https://c-ares.haxx.se/download/" name "-" version
+ ".tar.gz"))
+ (sha256
+ (base32
+ "1kxviskwsaa7dcgscvssxa8ps88pdq7kq4z93gxvz7sam2l54z8s"))))
+ (arguments
+ '(#:phases
+ (modify-phases %standard-phases
+ (add-before 'check 'filter-live-tests
+ (lambda _
+ ;; Filter tests that require internet access.
+ (setenv "GTEST_FILTER" "-*.Live*:*.FamilyV4*")))))))))