aboutsummaryrefslogtreecommitdiff
path: root/gnu/packages
diff options
context:
space:
mode:
authorFoo Chuan Wei <chuanwei.foo@hotmail.com>2021-11-25 03:24:37 +0000
committerGuillaume Le Vaillant <glv@posteo.net>2021-11-25 14:38:51 +0100
commitea7233befb9570cce47e5ca71725b285a580cd22 (patch)
tree6918ebb303f2026411633e9bd1ee14196857f962 /gnu/packages
parent59a7e5bb7eb6c6513befee0ff4f00424ba42f2a6 (diff)
downloadguix-ea7233befb9570cce47e5ca71725b285a580cd22.tar.gz
guix-ea7233befb9570cce47e5ca71725b285a580cd22.zip
gnu: Add cl-restas.
* gnu/packages/lisp-xyz.scm (cl-restas, ecl-restas, sbcl-restas): New variables. Signed-off-by: Guillaume Le Vaillant <glv@posteo.net>
Diffstat (limited to 'gnu/packages')
-rw-r--r--gnu/packages/lisp-xyz.scm46
1 files changed, 46 insertions, 0 deletions
diff --git a/gnu/packages/lisp-xyz.scm b/gnu/packages/lisp-xyz.scm
index 39f6545fc5..9748293f94 100644
--- a/gnu/packages/lisp-xyz.scm
+++ b/gnu/packages/lisp-xyz.scm
@@ -19761,6 +19761,52 @@ library inspired by @code{cl-data-format-validation} and WTForms validators.")
(define-public ecl-data-sift
(sbcl-package->ecl-package sbcl-data-sift))
+(define-public sbcl-restas
+ (let ((commit "81bbbab6b36f81f846f78e71232e9d3d15f6d952")
+ (revision "1"))
+ (package
+ (name "sbcl-restas")
+ (version (git-version "0.1.4" revision commit))
+ (source
+ (origin
+ (method git-fetch)
+ (uri (git-reference
+ (url "https://github.com/archimag/restas")
+ (commit commit)))
+ (file-name (git-file-name "cl-restas" version))
+ (sha256
+ (base32 "00ng6jik1lwjw3bbxhijy8s0ml24lgm73liwrr01gcsb0r6wrjjn"))))
+ (build-system asdf-build-system/sbcl)
+ (arguments
+ '(#:phases
+ (modify-phases %standard-phases
+ (add-after 'unpack 'fix-paths
+ (lambda* (#:key inputs #:allow-other-keys)
+ (substitute* "contrib/restas-daemon.lisp"
+ (("/lib64/") "")
+ (("/lib/") "")
+ (("libcap.so")
+ (string-append (assoc-ref inputs "libcap")
+ "/lib/libcap.so"))))))))
+ (inputs
+ `(("alexandria" ,sbcl-alexandria)
+ ("bordeaux-threads" ,sbcl-bordeaux-threads)
+ ("cffi" ,sbcl-cffi)
+ ("data-sift" ,sbcl-data-sift)
+ ("hunchentoot" ,sbcl-hunchentoot)
+ ("libcap" ,libcap)
+ ("routes" ,sbcl-routes)))
+ (home-page "https://github.com/archimag/restas")
+ (synopsis "Common Lisp web framework")
+ (description "@code{RESTAS} is a Common Lisp web application framework.")
+ (license license:llgpl))))
+
+(define-public cl-restas
+ (sbcl-package->cl-source-package sbcl-restas))
+
+(define-public ecl-restas
+ (sbcl-package->ecl-package sbcl-restas))
+
(define-public sbcl-cl-https-everywhere
;; No release.
;; Don't forget to update the https-everywhere input.