summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJake Forster <jakecameron.forster@gmail.com>2025-06-01 15:27:06 +0930
committerLudovic Courtès <ludo@gnu.org>2025-06-06 18:35:06 +0200
commita54f3f3e2ab2e518cbb868fcc909fc7ba6b16f3f (patch)
tree07725b1a65ea6ba9d175c8f1107f4d726ba39cc4
parent5a0271c43f6b1978c0c2c925bc46b1e3c08d6d8e (diff)
gnu: Add civetweb.
* gnu/packages/web.scm (civetweb): New variable. Change-Id: Ic560d7bc5486b3c3236e5f13823311dc19e8eaea Signed-off-by: Ludovic Courtès <ludo@gnu.org>
-rw-r--r--gnu/packages/web.scm32
1 files changed, 32 insertions, 0 deletions
diff --git a/gnu/packages/web.scm b/gnu/packages/web.scm
index 63daa59dbf..5aed546955 100644
--- a/gnu/packages/web.scm
+++ b/gnu/packages/web.scm
@@ -71,6 +71,7 @@
;;; Copyright © 2024, 2025 Artyom V. Poptsov <poptsov.artyom@gmail.com>
;;; Copyright © 2025 Raven Hallsby <karl@hallsby.com>
;;; Copyright © 2025 Junker <dk@junkeria.club>"
+;;; Copyright © 2025 Jake Forster <jakecameron.forster@gmail.com>
;;;
;;; This file is part of GNU Guix.
;;;
@@ -7529,6 +7530,37 @@ Rust with GTK. It currently supports the Gemini, Gopher and Finger
protocols.")
(license license:expat)))
+(define-public civetweb
+ (package
+ (name "civetweb")
+ (version "1.16")
+ (source
+ (origin
+ (method git-fetch)
+ (uri (git-reference
+ (url "https://github.com/civetweb/civetweb")
+ (commit (string-append "v" version))))
+ (file-name (git-file-name name version))
+ (sha256
+ (base32 "1rdajgr0243ma8sg7qn03v6f8pnbj9w2dghi751zrdg1d1zzjxkr"))))
+ (build-system cmake-build-system)
+ (arguments
+ (list
+ #:configure-flags
+ #~(list "-DBUILD_SHARED_LIBS=ON"
+ "-DCIVETWEB_ENABLE_CXX=ON"
+ "-DCIVETWEB_ENABLE_ZLIB=ON"
+ ;; The tests rely on downloading their fork of Check.
+ "-DCIVETWEB_BUILD_TESTING=OFF")))
+ (inputs (list zlib))
+ (home-page "https://github.com/civetweb/civetweb")
+ (synopsis "C/C++ embeddable web server")
+ (description
+ "CivetWeb is a web server with optional @acronym{CGI, Common Gateway
+Interface} and @acronym{SSL, Secure Sockets Layer} support. It can be
+embedded into C/C++ applications or used as a standalone web server.")
+ (license license:expat)))
+
(define-public clearsilver
(package
(name "clearsilver")