Subject: bug#26863: closed (Re: bug#26863: guile-squee)

From: [email-masked] (GNU bug Tracking System)
Date: Sun, 18 Jun 2017 14:18:02 +0000

Your bug report

#26863: guile-squee

which was filed against the guix-patches package, has been closed.

The explanation is attached below, along with your original report.
If you require more details, please reply to [email-masked].

-- 
26863: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=26863
GNU Bug Tracking System
Contact [email-masked] with problems

Subject: Re: bug#26863: guile-squee
From: Ricardo Wurmus <[email-masked]>
To: Catonano <[email-masked]>
Cc: [email-masked]
Date: Sun, 18 Jun 2017 16:17:19 +0200
List-Id: <debbugs-submit.debbugs.gnu.org>

Catonano <[email-masked]> writes:

> For now, I'd say that this issue can be closed.
>
> It won't be soon.

Okay, I’m closing this for now.  Thank you!

-- 
Ricardo

GPG: BCA6 89B6 3655 3801 C3C6  2150 197A 5888 235F ACAC
https://elephly.net

Subject: guile-squee
From: Catonano <[email-masked]>
To: [email-masked]
Date: Wed, 10 May 2017 08:35:06 +0200
List-Id: <debbugs-submit.debbugs.gnu.org>

I hope this is ok
From 16e30382f69a46e8d7d6299c338b76a6cd13721b Mon Sep 17 00:00:00 2001
From: Adriano Peluso <[email-masked]>
Date: Wed, 10 May 2017 08:32:40 +0200
Subject: [PATCH 2/2] gnu: Add guile-squee.

* gnu/packages/guile.scm (guile-squee): New variable.
---
 gnu/packages/guile.scm | 65 ++++++++++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 65 insertions(+)

diff --git a/gnu/packages/guile.scm b/gnu/packages/guile.scm
index c7f3b8241..0dc2baab0 100644
--- a/gnu/packages/guile.scm
+++ b/gnu/packages/guile.scm
@@ -863,6 +863,71 @@ microAdapton.  Both miniAdapton and microAdapton are designed to be easy to
 understand, extend, and port to host languages other than Scheme.")
       (license license:expat))))
 
+(define-public guile-squee
+  (let ((commit "a85902a92bf6f58a1d35fd974a01ade163deda8d")
+        (revision "1"))
+    (package
+      (name "guile-squee")
+      (version (string-append "0-" revision "." (string-take commit 9)))
+      (source (origin
+                (method git-fetch)
+                (uri (git-reference
+                      (url "https://notabug.org/cwebber/guile-squee.git")
+                      (commit commit)))
+                (file-name (string-append name "-" version "-checkout"))
+                (sha256
+                 (base32
+                  "0p1lpsp4kx57j3ai1dkxilm4ziavzzx8wbbc42m3hpziq0a7qz5z"))))
+      (build-system gnu-build-system)
+      (arguments
+       `(#:modules ((guix build utils)
+                    (ice-9 popen)
+                    (ice-9 rdelim)
+                    (srfi srfi-1)
+                    (guix build gnu-build-system))
+         #:tests? #f                    ; there is no test target
+         #:phases
+         (modify-phases %standard-phases
+           (delete 'configure)
+           (delete 'build)
+           (replace 'install
+             (lambda* (#:key outputs #:allow-other-keys)
+               (let* ((cwd        (getcwd))
+                      (scm-files  (find-files "." "\\.scm$"))
+                      (effective  (read-line
+                                   (open-pipe* OPEN_READ
+                                               "guile" "-c"
+                                               "(display (effective-version))")))
+                      (module-dir (string-append (assoc-ref outputs "out")
+                                                 "/share/guile/site/"
+                                                 effective)))
+
+                 ;; Make installation directories.
+                 (mkdir-p module-dir)
+
+                 (setenv "GUILE_AUTO_COMPILE" "0")
+
+                 ;; Compile .scm files and install.
+                 (every (lambda (file)
+                          (let ((go-file (string-append module-dir "/"
+                                                        (basename file ".scm") ".go")))
+                            ;; Install source module.
+                            (install-file file module-dir)
+                            ;; Compile and install module.
+                            (zero? (system* "guild" "compile" "-L" cwd
+                                            "-o" go-file file))))
+                        scm-files)))))))
+      (inputs
+       `(("guile" ,guile-2.2)))
+      (home-page "https://notabug.org/cwebber/guile-squee")
+      (synopsis "Postgresql bindings for Guile")
+      (description "Squee is a library for connecting to the excellent
+PostgreSQL database using Guile.  It uses Guile's \"foreign function
+interface\" support, which means you don't need to compile
+anything... it all happens through the magic of dynamic linking!")
+      (license license:gpl3))))
+
+
 (define-public guile-irregex
   (package
     (name "guile-irregex")
-- 
2.12.2