GNU bug report logs - #76862
[PATCH 0/6] Add tic80

Previous Next

Package: guix-patches;

Reported by: iyzsong <at> envs.net

Date: Sat, 8 Mar 2025 10:49:01 UTC

Severity: normal

Tags: patch

Done: 宋文武 <iyzsong <at> envs.net>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: iyzsong <at> envs.net
To: 76862 <at> debbugs.gnu.org
Cc: 宋文武 <iyzsong <at> member.fsf.org>
Subject: [bug#76862] [PATCH 2/6] gnu: Add naett.
Date: Sat,  8 Mar 2025 18:55:30 +0800
From: 宋文武 <iyzsong <at> member.fsf.org>

* gnu/packages/networking.scm (naett): New variable.

Change-Id: I5e4698d9dfe5677d945bede462943576fcfe3b06
---
 gnu/packages/networking.scm | 33 +++++++++++++++++++++++++++++++++
 1 file changed, 33 insertions(+)

diff --git a/gnu/packages/networking.scm b/gnu/packages/networking.scm
index b0a0fb420d..673b77585d 100644
--- a/gnu/packages/networking.scm
+++ b/gnu/packages/networking.scm
@@ -89,6 +89,7 @@ (define-module (gnu packages networking)
   #:use-module (guix gexp)
   #:use-module (guix git-download)
   #:use-module (guix build-system cmake)
+  #:use-module (guix build-system copy)
   #:use-module (guix build-system glib-or-gtk)
   #:use-module (guix build-system gnu)
   #:use-module (guix build-system go)
@@ -4292,6 +4293,38 @@ (define-public batctl
 module @code{batman-adv}, for Layer 2.")
    (license license:gpl2+)))
 
+(define-public naett
+  (package
+    (name "naett")
+    (version "0.3.3")
+    (source (origin
+              (method git-fetch)
+              (uri (git-reference
+                    (url "https://github.com/erkkah/naett")
+                    (commit (string-append "v" version))))
+              (file-name (git-file-name name version))
+              (sha256
+               (base32
+                "1nnnps1755h8yawzpf71fm4g2hqdja4zw993ilsaad3z7p464q47"))))
+    (build-system copy-build-system)
+    (inputs (list curl))
+    (arguments
+     (list #:install-plan
+           #~'(("naett.h" "include/")
+               ("libnaett.so" "lib/"))
+           #:phases
+           #~(modify-phases %standard-phases
+               (add-before 'install 'build
+                 (lambda _
+                   (invoke #$(cc-for-target)
+                           "-o" "libnaett.so"
+                           "-shared" "-fPIC" "-O2" "naett.c"
+                           "-lcurl" "-lpthread"))))))
+    (synopsis "Tiny HTTP client library")
+    (home-page "https://github.com/erkkah/naett")
+    (description "This package provides a tiny HTTP client library in C.")
+    (license license:unlicense)))
+
 (define-public pagekite
   (package
     (name "pagekite")
-- 
2.48.1





This bug report was last modified 73 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.