summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFoo Chuan Wei <chuanwei.foo@hotmail.com>2021-11-17 05:42:25 +0000
committerGuillaume Le Vaillant <glv@posteo.net>2021-11-19 10:48:41 +0100
commita5185d9b64798b3a2f4a133354a1da1b62f492fe (patch)
tree5f503dae16874f04c54c46ffe4769adbce6594cf
parent002e8bac4bd763eae062faf0ef09c2a55955740a (diff)
gnu: Add cl-routes.
* gnu/packages/lisp-xyz.scm (cl-routes, ecl-routes, sbcl-routes): New variables. Signed-off-by: Guillaume Le Vaillant <glv@posteo.net>
-rw-r--r--gnu/packages/lisp-xyz.scm45
1 files changed, 45 insertions, 0 deletions
diff --git a/gnu/packages/lisp-xyz.scm b/gnu/packages/lisp-xyz.scm
index 809d3f4651..bea3152e45 100644
--- a/gnu/packages/lisp-xyz.scm
+++ b/gnu/packages/lisp-xyz.scm
@@ -18381,6 +18381,51 @@ formats within this framework.")
(define-public cl-feeder
(sbcl-package->cl-source-package sbcl-feeder))
+(define-public sbcl-routes
+ (let ((commit "1b79e85aa653e1ec87e21ca745abe51547866fa9")
+ (revision "1"))
+ (package
+ (name "sbcl-routes")
+ (version (git-version "0.2.5" revision commit))
+ (source
+ (origin
+ (method git-fetch)
+ (uri (git-reference
+ (url "https://github.com/archimag/cl-routes")
+ (commit commit)))
+ (file-name (git-file-name "cl-routes" version))
+ (sha256
+ (base32 "1zpk3cp2v8hm50ppjl10yxr437vv4552r8hylvizglzrq2ibsbr1"))))
+ (build-system asdf-build-system/sbcl)
+ (arguments
+ `(#:phases
+ (modify-phases %standard-phases
+ (add-after 'unpack 'fix-tests
+ (lambda* (#:key inputs #:allow-other-keys)
+ ;; Fix: :FORCE and :FORCE-NOT arguments not allowed in
+ ;; a nested call to ASDF/OPERATE:OPERATE unless
+ ;; identically to toplevel
+ (substitute* "routes.asd"
+ ((" :force t") "")))))))
+ (inputs
+ `(("iterate" ,sbcl-iterate)
+ ("puri" ,sbcl-puri)
+ ("split-sequence" ,sbcl-split-sequence)))
+ (native-inputs
+ `(("lift" ,sbcl-lift)))
+ (home-page "https://github.com/archimag/cl-routes")
+ (synopsis "Rails routes system for Common Lisp")
+ (description
+ "This is a a Common Lisp re-implementation of the Rails routes system
+for mapping URLs.")
+ (license license:llgpl))))
+
+(define-public cl-routes
+ (sbcl-package->cl-source-package sbcl-routes))
+
+(define-public ecl-routes
+ (sbcl-package->ecl-package sbcl-routes))
+
(define-public sbcl-terminfo
(let ((commit "b8b2e3ed786bfcf9f1aa4a264cee2e93135080f5")
(revision "1"))