guix_mirror_bot pushed a commit to branch master
in repository guix.
commit 83a4bb52ba4a0bcf39c8382f2d8cd7af476a042b
Author: jgart <[email protected]>
AuthorDate: Tue Mar 3 18:55:50 2026 -0500
gnu: Add kcgi.
* gnu/packages/web.scm (kcgi): New variable.
Change-Id: I755482c03935b67e6b97705784a0518da1c2a5fb
Signed-off-by: jgart <[email protected]>
---
gnu/packages/web.scm | 49 +++++++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 49 insertions(+)
diff --git a/gnu/packages/web.scm b/gnu/packages/web.scm
index 93fc4cf768..d3bebd5220 100644
--- a/gnu/packages/web.scm
+++ b/gnu/packages/web.scm
@@ -1234,6 +1234,55 @@ APIs.")
;; the Expat license, incompatible with the GPL.
(license (license:non-copyleft "file://LICENSE.TERMS"))))
+(define-public kcgi
+ (package
+ (name "kcgi")
+ (version "1.0.1")
+ (source
+ (origin
+ (method git-fetch)
+ (uri (git-reference
+ (url "https://github.com/kristapsdz/kcgi")
+ (commit
+ (string-append "VERSION_"
+ (string-replace-substring version "." "_")))))
+ (file-name (git-file-name name version))
+ (sha256
+ (base32 "0km2295rmxlgl3livhil861h0s43bks2cqyvpf80zcqiba1ilmsw"))))
+ (build-system gnu-build-system)
+ (arguments
+ (list
+ ;; There are only regression tests which are only recommended if running
+ ;; bleeding edge sources.
+ #:tests? #f
+ #:phases
+ #~(modify-phases %standard-phases
+ (replace 'configure
+ (lambda* (#:key outputs #:allow-other-keys)
+ (invoke "./configure"
+ (string-append "CC=" #$(cc-for-target))
+ (string-append "PREFIX=" #$output))))
+ (replace 'build
+ (lambda* (#:key outputs parallel-build? #:allow-other-keys)
+ (apply invoke "bmake"
+ (string-append "LDFLAGS=-Wl,-rpath,"
+ #$output "/lib")
+ (if parallel-build?
+ (list "-j" (number->string (parallel-job-count)))
+ '()))))
+ (replace 'install
+ (lambda _
+ (invoke "bmake" "install"))))))
+ (native-inputs
+ (list bmake libbsd pkg-config))
+ (inputs
+ (list zlib))
+ (home-page "https://kristaps.bsd.lv/kcgi/")
+ (synopsis "Minimal CGI and FastCGI library for C/C++")
+ (description "This package provides a CGI and FastCGI library for C/C++
+web applications. It is minimal, secure, and auditable.")
+ (license license:isc)))
+
(define-public fcgiwrap
(let ((commit "2870d2729a3930988f0041e2d78fec672e69afac")
(revision "1"))