~ruther/guix-local

d985622c78130ff71655d45949aa550f238a70e3 — Sören Tempel 3 months ago 6f0d8d6
gnu: Add libcoap.

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

Change-Id: I7360cf4c192e03b8c3f1494ba0a76c301a1fc095
Signed-off-by: Sharlatan Hellseher <sharlatanus@gmail.com>
1 files changed, 44 insertions(+), 0 deletions(-)

M gnu/packages/networking.scm
M gnu/packages/networking.scm => gnu/packages/networking.scm +44 -0
@@ 1569,6 1569,50 @@ between different versions of ØMQ.")
files contain direct mappings of the abstractions provided by the ØMQ C API.")
    (license license:expat)))

(define-public libcoap
  (package
    (name "libcoap")
    (version "4.3.5a")
    (source (origin
                (method git-fetch)
                (uri (git-reference
                      (url "https://github.com/obgm/libcoap")
                      (commit (string-append "v" version))))
                (file-name (git-file-name name version))
                (sha256
                 (base32
                  "078bi6i6115wyhx9qssh30kf5ziv8sn7ch5fg31rf7qr7pypbfxa"))))
    (outputs (list "out" "doc"))
    (build-system gnu-build-system)
    (arguments
     (list
       #:configure-flags
       #~(list "--enable-tests"
               "--with-openssl")
       #:phases
       #~(modify-phases %standard-phases
         (replace 'check
           (lambda* (#:key tests? #:allow-other-keys)
             (when tests?
               (invoke "./tests/testdriver")))))))
    (native-inputs (list asciidoc
                         autoconf
                         automake
                         doxygen
                         libtool
                         pkg-config
                         which))
    (inputs (list cunit openssl))
    (home-page "https://libcoap.net/")
    (synopsis "Implementation of the CoAP application protocol")
    (description
      "This package provides a C implementation of a lightweight
application-protocol for devices that are constrained their resources such as
computing power, RF range, memory, bandwidth, or network packet sizes.  This
protocol, @acronym{CoAP, Constrained Application Protocol}, is standardized by
the IETF as @url{https://www.rfc-editor.org/rfc/rfc7252, RFC 7252}.")
    (license license:bsd-2)))

(define-public libnatpmp
  ;; Install the latest commit as it provides a pkg-config (.pc) file.
  (let ((base-version "20230423")