unofficial mirror of guix-patches@gnu.org 
 help / color / mirror / code / Atom feed
From: Roman Scherer <roman@burningswell.com>
To: 64418@debbugs.gnu.org
Cc: Roman Scherer <roman@burningswell.com>
Subject: [bug#64418] [PATCH 1/1] gnu: Add sbcl-postgres+local-time.
Date: Sun,  2 Jul 2023 14:00:39 +0200	[thread overview]
Message-ID: <0e1d2edc076e7fa93a5becfc11bade4bbaa15f92.1688298316.git.roman@burningswell.com> (raw)
In-Reply-To: <cover.1688298316.git.roman@burningswell.com>

* gnu/packages/lisp-xyz.scm (sbcl-postgres+local-time): New variable.
---
 gnu/packages/lisp-xyz.scm | 54 ++++++++++++++++++++++++++++++++++++++-
 1 file changed, 53 insertions(+), 1 deletion(-)

diff --git a/gnu/packages/lisp-xyz.scm b/gnu/packages/lisp-xyz.scm
index d578c46b90..bd1efc2b83 100644
--- a/gnu/packages/lisp-xyz.scm
+++ b/gnu/packages/lisp-xyz.scm
@@ -6875,7 +6875,7 @@ (define-public ecl-cl-isaac
 
 (define-public sbcl-local-time
   (let ((commit "40169fe26d9639f3d9560ec0255789bf00b30036")
-        (revision "3"))
+        (revision "4"))
     (package
      (name "sbcl-local-time")
      (version (git-version "1.0.6" revision commit))
@@ -6889,6 +6889,14 @@ (define-public sbcl-local-time
        (sha256
         (base32 "1dbp33zmkqzzshmf5k76pxqgli285wvy0p0dhcz816fdikpwn2jg"))))
      (build-system asdf-build-system/sbcl)
+     (arguments
+       `(#:phases
+         (modify-phases %standard-phases
+           ;; Delete the extension provided by sbcl-cl-postgres+local-time
+           (add-after 'unpack 'delete-local-time
+             (lambda _
+               (delete-file "cl-postgres+local-time.asd")
+               (delete-file "src/integration/cl-postgres.lisp"))))))
      (native-inputs
       (list sbcl-hu.dwim.stefil))
      (home-page "https://common-lisp.net/project/local-time/")
@@ -6905,6 +6913,50 @@ (define-public cl-local-time
 (define-public ecl-local-time
   (sbcl-package->ecl-package sbcl-local-time))
 
+(define-public sbcl-postgres+local-time
+  (let ((commit "40169fe26d9639f3d9560ec0255789bf00b30036")
+        (revision "3"))
+    (package
+      (name "sbcl-postgres+local-time")
+      (version (git-version "1.0.6" revision commit))
+      (source
+       (origin
+         (method git-fetch)
+         (uri (git-reference
+               (url "https://github.com/dlowe-net/local-time")
+               (commit commit)))
+         (file-name (git-file-name "cl-postgres+local-time" version))
+         (sha256
+          (base32 "1dbp33zmkqzzshmf5k76pxqgli285wvy0p0dhcz816fdikpwn2jg"))))
+      (build-system asdf-build-system/sbcl)
+      (inputs (list sbcl-local-time sbcl-postmodern))
+      (native-inputs
+       (list sbcl-hu.dwim.stefil))
+      (arguments
+       `(#:asd-systems '("cl-postgres+local-time")
+         #:phases
+         (modify-phases %standard-phases
+           (add-after 'unpack 'delete-local-time
+             (lambda _
+               (delete-file "local-time.asd")
+               (delete-file "src/package.lisp")
+               (delete-file "src/local-time.lisp")
+               (delete-file-recursively "doc")
+               (delete-file-recursively "test")
+               (delete-file-recursively "zoneinfo"))))))
+      (home-page "https://common-lisp.net/project/local-time/")
+      (synopsis "Integration between cl-postgres and local-time")
+      (description
+       "This package provides the LOCAL-TIME extensions for the cl-postgres
+ASDF system of postmodern.")
+      (license license:expat))))
+
+(define-public cl-postgres+local-time
+  (sbcl-package->cl-source-package sbcl-postgres+local-time))
+
+(define-public ecl-postgres+local-time
+  (sbcl-package->ecl-package sbcl-postgres+local-time))
+
 (define-public sbcl-chronicity
   (package
     (name "sbcl-chronicity")
-- 
2.40.1





  reply	other threads:[~2023-07-02 12:01 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-07-02 11:58 [bug#64418] [PATCH 0/1] Common Lisp local-time Postgres extension Roman Scherer
2023-07-02 12:00 ` Roman Scherer [this message]
2023-07-04  9:15 ` bug#64418: " Guillaume Le Vaillant

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://guix.gnu.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=0e1d2edc076e7fa93a5becfc11bade4bbaa15f92.1688298316.git.roman@burningswell.com \
    --to=roman@burningswell.com \
    --cc=64418@debbugs.gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/guix.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).