From aeb00a9896b97ec8e43d4a7d3d722a09780aacd7 Mon Sep 17 00:00:00 2001 From: Katherine Cox-Buday Date: Fri, 7 Jun 2019 15:21:16 -0500 Subject: [PATCH 06/15] gnu: Add metabang-bind. * gnu/packages/lisp.scm (metabang-bind): New variable. --- gnu/packages/lisp.scm | 39 +++++++++++++++++++++++++++++++++++++++ 1 file changed, 39 insertions(+) diff --git a/gnu/packages/lisp.scm b/gnu/packages/lisp.scm index 38cd9c3a18..67c34be680 100644 --- a/gnu/packages/lisp.scm +++ b/gnu/packages/lisp.scm @@ -5594,3 +5594,42 @@ implementation of Python) and Common Lisp.") (define-public ecl-burgled-batteries3 (sbcl-package->ecl-package sbcl-burgled-batteries3)) + +(define-public sbcl-metabang-bind + (let ((commit "c93b7f7e1c18c954c2283efd6a7fdab36746ab5e") + (revision "1")) + (package + (name "sbcl-metabang-bind") + (version (git-version "0.8.0" revision commit)) + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/gwkkwg/metabang-bind.git") + (commit commit))) + (file-name (git-file-name name version)) + (sha256 + (base32 + "0hd0kr91795v77akpbcyqiss9p0p7ypa9dznrllincnmgvsxlmf0")))) + (build-system asdf-build-system/sbcl) + (native-inputs + `(("sbcl-lift" ,sbcl-lift))) + (synopsis + "Bind is a macro that generalizes multiple-value-bind, let, +let*, destructuring-bind, structure and slot accessors, and a whole +lot more.") + (description + "Bind extends the idea of of let and destructing to provide a +uniform syntax for all your accessor needs. It combines let, +destructuring-bind, with-slots, with-accessors, structure editing, +property or association-lists, and multiple-value-bind and a whole lot +more into a single form.") + (home-page "https://common-lisp.net/project/metabang-bind/") + ;; MIT License + (license license:expat)))) + +(define-public cl-metabang-bind + (sbcl-package->cl-source-package sbcl-metabang-bind)) + +(define-public ecl-metabang-bind + (sbcl-package->ecl-source-package sbcl-metabang-bind)) -- 2.17.1