From a54f3f3e2ab2e518cbb868fcc909fc7ba6b16f3f Mon Sep 17 00:00:00 2001 From: Jake Forster Date: Sun, 1 Jun 2025 15:27:06 +0930 Subject: [PATCH] gnu: Add civetweb. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * gnu/packages/web.scm (civetweb): New variable. Change-Id: Ic560d7bc5486b3c3236e5f13823311dc19e8eaea Signed-off-by: Ludovic Courtès --- gnu/packages/web.scm | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) diff --git a/gnu/packages/web.scm b/gnu/packages/web.scm index 63daa59dbf34085c0235dc9b3e8a7438211e9180..5aed5469555e1d6148c5631f0e90a268bd40490a 100644 --- a/gnu/packages/web.scm +++ b/gnu/packages/web.scm @@ -71,6 +71,7 @@ ;;; Copyright © 2024, 2025 Artyom V. Poptsov ;;; Copyright © 2025 Raven Hallsby ;;; Copyright © 2025 Junker " +;;; Copyright © 2025 Jake Forster ;;; ;;; 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")