summaryrefslogtreecommitdiff
path: root/gnu/packages/adns.scm
diff options
context:
space:
mode:
authorJelle Licht <jlicht@fsfe.org>2021-11-15 15:21:21 +0100
committerJelle Licht <jlicht@fsfe.org>2021-11-15 22:43:23 +0100
commitecbf59abad4e146a80ea2849d12569886bce732e (patch)
treea5122166845cbec5fdfaecd4b7c748acca66b4f4 /gnu/packages/adns.scm
parenta69076e7921963e6931e0d5628ac99900f2bc796 (diff)
gnu: Add c-ares-for-node.
* gnu/packages/adns.scm (c-ares-for-node): New variable. Co-authored-by: Marius Bakke <marius@gnu.org>
Diffstat (limited to 'gnu/packages/adns.scm')
-rw-r--r--gnu/packages/adns.scm22
1 files changed, 22 insertions, 0 deletions
diff --git a/gnu/packages/adns.scm b/gnu/packages/adns.scm
index b003511afa..51694d0982 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*")))))))))