all messages for Guix-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: picnoir@alternativebit.fr
To: 71064@debbugs.gnu.org
Cc: Picnoir <picnoir@alternativebit.fr>
Subject: [bug#71064] [PATCH 6/7] gnu: Add nsncd.
Date: Sun, 19 May 2024 14:46:26 +0200	[thread overview]
Message-ID: <cce059070b36f3007fa8db1003930b8fea980314.1716121731.git.picnoir@alternativebit.fr> (raw)
In-Reply-To: <cover.1716121730.git.picnoir@alternativebit.fr>

From: Picnoir <picnoir@alternativebit.fr>

* gnu/packages/nss.scm (nsncd): New variable. Introducing Nsncd, a non-caching
alternative of Glibc Nscd.

Change-Id: I18ba7ffbb6fb59c4928829bb98a8da4e6963e587
---
 gnu/packages/nss.scm | 44 ++++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 44 insertions(+)

diff --git a/gnu/packages/nss.scm b/gnu/packages/nss.scm
index 162e748094..492b5ef3bd 100644
--- a/gnu/packages/nss.scm
+++ b/gnu/packages/nss.scm
@@ -28,6 +28,8 @@ (define-module (gnu packages nss)
   #:use-module (guix utils)
   #:use-module (guix gexp)
   #:use-module (guix download)
+  #:use-module (guix git-download)
+  #:use-module (guix build-system cargo)
   #:use-module (guix build-system gnu)
   #:use-module (guix build-system mozilla)
   #:use-module ((guix licenses) #:prefix license:)
@@ -35,6 +37,7 @@ (define-module (gnu packages nss)
   #:use-module (gnu packages base)
   #:use-module (gnu packages bash)
   #:use-module (gnu packages check)
+  #:use-module (gnu packages crates-io)
   #:use-module (gnu packages compression)
   #:use-module (gnu packages perl)
   #:use-module (gnu packages sqlite))
@@ -286,3 +289,44 @@ (define-public nss/fixed
                          ;; work around that, set the time to roughly the release date.
                          (invoke "faketime" "2024-01-23" "./nss/tests/all.sh"))
                        (format #t "test suite not run~%"))))))))))))
+
+(define-public nsncd
+  (package
+    (name "nsncd")
+    (version "unstable-2024-04-09")
+    (source
+     (origin
+       (method git-fetch)
+       (uri (git-reference
+             (url "https://github.com/twosigma/nsncd")
+             (commit "7605e330d5a313a8656e6fcaf1c10cd6b5cdd427")))
+       (file-name (git-file-name name version))
+       (sha256
+        (base32 "1hk8bh2a02nyk3rpzbjx1a2iiz15d0vx3ysa180wmr8gsc9ymph5"))))
+    (build-system cargo-build-system)
+    (arguments
+     `(#:cargo-test-flags
+       '("--"
+                                        ; These tests fail with the current builder network setup
+         "--skip=ffi::test_gethostbyaddr_r"
+         "--skip=ffi::test_gethostbyname2_r")
+       #:cargo-inputs
+       (("rust-anyhow" ,rust-anyhow-1)
+        ("rust-atoi" ,rust-atoi-2)
+        ("rust-slog" ,rust-slog-2)
+        ("rust-slog-async" ,rust-slog-async-2-8)
+        ("rust-slog-term" ,rust-slog-term-2)
+        ("rust-crossbeam-channel" ,rust-crossbeam-channel-0.5)
+        ("rust-nix" ,rust-nix-0.28)
+        ("rust-num-derive" ,rust-num-derive-0.3)
+        ("rust-num-traits" ,rust-num-traits-0.2)
+        ("rust-sd-notify" ,rust-sd-notify-0.4)
+        ("rust-static-assertions" ,rust-static-assertions-1)
+        ("rust-dns-lookup" ,rust-dns-lookup-2))
+       #:cargo-development-inputs
+       (("rust-criterion" ,rust-criterion-0.5)
+        ("rust-temp-env" ,rust-temp-env-0.3))))
+    (home-page "https://github.com/twosigma/nsncd")
+    (synopsis "The name service non-caching daemon")
+    (description "The name service non-caching daemon")
+    (license (list license:asl2.0))))
-- 
2.41.0





  parent reply	other threads:[~2024-05-19 12:48 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-05-19 12:34 [bug#71064] [PATCH 0/7] Nsncd: Introduce package + nscd service update picnoir
2024-05-19 12:46 ` [bug#71064] [PATCH 1/7] gnu: Add rust-libc-0.2.153 picnoir
2024-05-19 12:46 ` [bug#71064] [PATCH 2/7] gnu: Add rust-nix-0.28 picnoir
2024-05-19 12:46 ` [bug#71064] [PATCH 3/7] gnu: Add rust-dns-lookup-2 picnoir
2024-05-19 12:46 ` [bug#71064] [PATCH 4/7] gnu: Add rust-temp-env-0.3 picnoir
2024-05-19 12:46 ` [bug#71064] [PATCH 5/7] gnu: Add rust-slog-async-2-8 picnoir
2024-05-19 12:46 ` picnoir [this message]
2024-05-19 12:46 ` [bug#71064] [PATCH 7/7] gnu: services: nscd: add Nsncd optional support picnoir
2024-06-02 18:55   ` Ludovic Courtès
2024-06-02 18:52 ` [bug#71064] [PATCH 0/7] Nsncd: Introduce package + nscd service update Ludovic Courtès

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=cce059070b36f3007fa8db1003930b8fea980314.1716121731.git.picnoir@alternativebit.fr \
    --to=picnoir@alternativebit.fr \
    --cc=71064@debbugs.gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/guix.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.