unofficial mirror of guix-patches@gnu.org 
 help / color / mirror / code / Atom feed
* [bug#34344] [PATCH] gnu: Add guile-squee.
@ 2019-02-06 11:13 Christopher Baines
  2019-02-06 13:00 ` Ricardo Wurmus
  0 siblings, 1 reply; 5+ messages in thread
From: Christopher Baines @ 2019-02-06 11:13 UTC (permalink / raw)
  To: 34344

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

diff --git a/gnu/packages/guile-xyz.scm b/gnu/packages/guile-xyz.scm
index 117d309c92..f249761ebc 100644
--- a/gnu/packages/guile-xyz.scm
+++ b/gnu/packages/guile-xyz.scm
@@ -560,6 +560,45 @@ HTML (via SXML) or any other format for rendering.")
 It has a nice, simple s-expression based syntax.")
     (license license:lgpl3+)))
 
+(define-public guile-squee
+  (let ((commit "a85902a92bf6f58a1d35fd974a01ade163deda8d")
+        (revision "0"))
+    (package
+      (name "guile-squee")
+      (version (string-append "0-" revision "." (string-take commit 7)))
+      (source (origin
+                (method git-fetch)
+                (uri (git-reference
+                      (url "https://notabug.org/cwebber/guile-squee.git")
+                      (commit commit)))
+                (file-name (git-file-name name version))
+                (sha256
+                 (base32
+                  "0p1lpsp4kx57j3ai1dkxilm4ziavzzx8wbbc42m3hpziq0a7qz5z"))))
+      (build-system guile-build-system)
+      (arguments
+       '(#:phases
+         (modify-phases %standard-phases
+           (add-after 'unpack 'patch
+             (lambda* (#:key inputs #:allow-other-keys)
+               (substitute* "squee.scm"
+                 (("dynamic-link \"libpq\"")
+                  (string-append
+                   "dynamic-link \""
+                   (assoc-ref inputs "postgresql") "/lib/libpq.so"
+                   "\"")))
+               #t)))))
+      (inputs
+       `(("postgresql" ,postgresql)))
+      (native-inputs
+       `(("guile" ,guile-2.2)))
+      (home-page "https://notabug.org/cwebber/guile-squee")
+      (synopsis "Connect to PostgreSQL using Guile")
+      (description
+       "@code{squee} is a Guile library for connecting to PostgreSQL databases
+using Guile's foreign function interface.")
+      (license license:gpl3+))))
+
 (define-public guile-colorized
   (package
     (name "guile-colorized")
-- 
2.20.1

^ permalink raw reply related	[flat|nested] 5+ messages in thread

* [bug#34344] [PATCH] gnu: Add guile-squee.
  2019-02-06 11:13 [bug#34344] [PATCH] gnu: Add guile-squee Christopher Baines
@ 2019-02-06 13:00 ` Ricardo Wurmus
  2019-02-06 13:03   ` Ricardo Wurmus
  2019-02-06 13:12   ` bug#34344: " Christopher Baines
  0 siblings, 2 replies; 5+ messages in thread
From: Ricardo Wurmus @ 2019-02-06 13:00 UTC (permalink / raw)
  To: Christopher Baines; +Cc: 34344


Christopher Baines <mail@cbaines.net> writes:

> * gnu/packages/guile-xyz.scm (guile-squee): New variable.

LGTM!

-- 
Ricardo

^ permalink raw reply	[flat|nested] 5+ messages in thread

* [bug#34344] [PATCH] gnu: Add guile-squee.
  2019-02-06 13:00 ` Ricardo Wurmus
@ 2019-02-06 13:03   ` Ricardo Wurmus
  2019-02-08 10:28     ` Christopher Baines
  2019-02-06 13:12   ` bug#34344: " Christopher Baines
  1 sibling, 1 reply; 5+ messages in thread
From: Ricardo Wurmus @ 2019-02-06 13:03 UTC (permalink / raw)
  To: Christopher Baines; +Cc: 34344


Ricardo Wurmus <rekado@elephly.net> writes:

> Christopher Baines <mail@cbaines.net> writes:
>
>> * gnu/packages/guile-xyz.scm (guile-squee): New variable.
>
> LGTM!

Actually, no!  The license is wrong.  It should be LGPLv3+, not GPLv3+.

--
Ricardo

^ permalink raw reply	[flat|nested] 5+ messages in thread

* bug#34344: [PATCH] gnu: Add guile-squee.
  2019-02-06 13:00 ` Ricardo Wurmus
  2019-02-06 13:03   ` Ricardo Wurmus
@ 2019-02-06 13:12   ` Christopher Baines
  1 sibling, 0 replies; 5+ messages in thread
From: Christopher Baines @ 2019-02-06 13:12 UTC (permalink / raw)
  To: Ricardo Wurmus; +Cc: 34344-done

[-- Attachment #1: Type: text/plain, Size: 207 bytes --]


Ricardo Wurmus <rekado@elephly.net> writes:

> Christopher Baines <mail@cbaines.net> writes:
>
>> * gnu/packages/guile-xyz.scm (guile-squee): New variable.
>
> LGTM!

Great, I've pushed this to master now.

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 962 bytes --]

^ permalink raw reply	[flat|nested] 5+ messages in thread

* [bug#34344] [PATCH] gnu: Add guile-squee.
  2019-02-06 13:03   ` Ricardo Wurmus
@ 2019-02-08 10:28     ` Christopher Baines
  0 siblings, 0 replies; 5+ messages in thread
From: Christopher Baines @ 2019-02-08 10:28 UTC (permalink / raw)
  To: Ricardo Wurmus; +Cc: 34344

[-- Attachment #1: Type: text/plain, Size: 418 bytes --]


Ricardo Wurmus <rekado@elephly.net> writes:

> Ricardo Wurmus <rekado@elephly.net> writes:
>
>> Christopher Baines <mail@cbaines.net> writes:
>>
>>> * gnu/packages/guile-xyz.scm (guile-squee): New variable.
>>
>> LGTM!
>
> Actually, no!  The license is wrong.  It should be LGPLv3+, not GPLv3+.

Ah yes, I should have paid more attention. I've pushed a correction as
[1].

1: 6fd72f7094885dc3dbb10431996c445251094915

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 962 bytes --]

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2019-02-08 10:29 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2019-02-06 11:13 [bug#34344] [PATCH] gnu: Add guile-squee Christopher Baines
2019-02-06 13:00 ` Ricardo Wurmus
2019-02-06 13:03   ` Ricardo Wurmus
2019-02-08 10:28     ` Christopher Baines
2019-02-06 13:12   ` bug#34344: " Christopher Baines

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).