unofficial mirror of guix-patches@gnu.org 
 help / color / mirror / code / Atom feed
From: Christopher Baines <mail@cbaines.net>
To: 34980@debbugs.gnu.org
Subject: [bug#34980] [PATCH 17/17] gnu: Add sqitch.
Date: Sun, 24 Mar 2019 20:46:32 +0000	[thread overview]
Message-ID: <20190324204632.17055-17-mail@cbaines.net> (raw)
In-Reply-To: <20190324204632.17055-1-mail@cbaines.net>

* gnu/packages/databases.scm (sqitch): New variable.
---
 gnu/packages/databases.scm | 87 ++++++++++++++++++++++++++++++++++++++
 1 file changed, 87 insertions(+)

diff --git a/gnu/packages/databases.scm b/gnu/packages/databases.scm
index 0f0d835eea..d256f0b895 100644
--- a/gnu/packages/databases.scm
+++ b/gnu/packages/databases.scm
@@ -82,6 +82,7 @@
   #:use-module (gnu packages pcre)
   #:use-module (gnu packages perl)
   #:use-module (gnu packages perl-check)
+  #:use-module (gnu packages perl-web)
   #:use-module (gnu packages pkg-config)
   #:use-module (gnu packages popt)
   #:use-module (gnu packages python)
@@ -996,6 +997,92 @@ for example from a shell script.")
     ;; others (like sparql-query.c) contain a GPLv2+ license header.
     (license (list license:gpl3+))))
 
+(define-public sqitch
+  (package
+    (name "sqitch")
+    (version "0.9999")
+    (source
+     (origin
+       (method url-fetch)
+       (uri (string-append
+             "mirror://cpan/authors/id/D/DW/DWHEELER/App-Sqitch-"
+             version
+             ".tar.gz"))
+       (sha256
+        (base32
+         "1cvj8grs3bzc4g7dw1zc26g4biv1frav18sq0fkvi2kk0q1aigzm"))))
+    (build-system perl-build-system)
+    (arguments
+     '(#:phases
+       (modify-phases %standard-phases
+         (add-before 'check 'set-check-environment
+           (lambda _
+             (setenv "TZ" "UTC")
+             (setenv "HOME" "/tmp")
+             #t))
+         (add-after 'install 'wrap-program
+           (lambda* (#:key outputs #:allow-other-keys)
+             (let* ((out (assoc-ref outputs "out"))
+                    (path (getenv "PERL5LIB")))
+               (wrap-program (string-append out "/bin/sqitch")
+                 `("PERL5LIB" ":" prefix
+                   (,(string-append out "/lib/perl5/site_perl"
+                                    ":"
+                                    path)))))
+             #t)))))
+    (native-inputs
+     `(("perl-capture-tiny" ,perl-capture-tiny)
+       ("perl-io-pager" ,perl-io-pager)
+       ("perl-module-build" ,perl-module-build)
+       ("perl-module-runtime" ,perl-module-runtime)
+       ("perl-path-class" ,perl-path-class)
+       ("perl-test-deep" ,perl-test-deep)
+       ("perl-test-dir" ,perl-test-dir)
+       ("perl-test-exception" ,perl-test-exception)
+       ("perl-test-file" ,perl-test-file)
+       ("perl-test-file-contents" ,perl-test-file-contents)
+       ("perl-test-mockmodule" ,perl-test-mockmodule)
+       ("perl-test-nowarnings" ,perl-test-nowarnings)
+       ("perl-test-warn" ,perl-test-warn)))
+    (propagated-inputs
+     `(("perl-class-xsaccessor" ,perl-class-xsaccessor)
+       ("perl-clone" ,perl-clone)
+       ("perl-config-gitlike" ,perl-config-gitlike)
+       ("perl-datetime" ,perl-datetime)
+       ("perl-datetime-timezone" ,perl-datetime-timezone)
+       ("perl-dbd-pg" ,perl-dbd-pg)
+       ("perl-dbi" ,perl-dbi)
+       ("perl-devel-stacktrace" ,perl-devel-stacktrace)
+       ("perl-encode-locale" ,perl-encode-locale)
+       ("perl-file-homedir" ,perl-file-homedir)
+       ("perl-hash-merge" ,perl-hash-merge)
+       ("perl-ipc-run3" ,perl-ipc-run3)
+       ("perl-ipc-system-simple" ,perl-ipc-system-simple)
+       ("perl-libintl-perl" ,perl-libintl-perl)
+       ("perl-list-moreutils" ,perl-list-moreutils)
+       ("perl-moo" ,perl-moo)
+       ("perl-mysql-config" ,perl-mysql-config)
+       ("perl-namespace-autoclean" ,perl-namespace-autoclean)
+       ("perl-path-class" ,perl-path-class)
+       ("perl-perlio-utf8_strict" ,perl-perlio-utf8_strict)
+       ("perl-string-formatter" ,perl-string-formatter)
+       ("perl-string-shellquote" ,perl-string-shellquote)
+       ("perl-sub-exporter" ,perl-sub-exporter)
+       ("perl-template-tiny" ,perl-template-tiny)
+       ("perl-template-toolkit" ,perl-template-toolkit)
+       ("perl-throwable" ,perl-throwable)
+       ("perl-try-tiny" ,perl-try-tiny)
+       ("perl-type-tiny" ,perl-type-tiny)
+       ("perl-type-tiny-xs" ,perl-type-tiny-xs)
+       ("perl-uri" ,perl-uri)
+       ("perl-uri-db" ,perl-uri-db)))
+    (home-page "https://metacpan.org/release/App-Sqitch")
+    (synopsis "Database change management tool")
+    (description
+     "Sqitch is a standalone change management system for database schemas,
+which uses SQL to describe changes.")
+    (license license:x11)))
+
 (define-public sqlcrush
   ;; Unfortunately, there is no proper upstream release and may never be.
   (let ((commit "b5f6868f189566a26eecc78d0f0659813c1aa98a")
-- 
2.20.1

  parent reply	other threads:[~2019-03-24 20:47 UTC|newest]

Thread overview: 19+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-03-24 20:30 [bug#34980] [PATCH 00/17] Add sqitch, a database change management tool, and dependencies Christopher Baines
2019-03-24 20:46 ` [bug#34980] [PATCH 01/17] gnu: Add perl-http-tinyish Christopher Baines
2019-03-24 20:46   ` [bug#34980] [PATCH 02/17] gnu: Add perl-config-gitlike Christopher Baines
2019-03-24 20:46   ` [bug#34980] [PATCH 03/17] gnu: Add perl-cpan-distnameinfo Christopher Baines
2019-03-24 20:46   ` [bug#34980] [PATCH 04/17] gnu: Add perl-tie-handle-offset Christopher Baines
2019-03-24 20:46   ` [bug#34980] [PATCH 05/17] gnu: Add perl-io-pager Christopher Baines
2019-03-24 20:46   ` [bug#34980] [PATCH 06/17] gnu: Add perl-string-formatter Christopher Baines
2019-03-24 20:46   ` [bug#34980] [PATCH 07/17] gnu: Add perl-template-tiny Christopher Baines
2019-03-24 20:46   ` [bug#34980] [PATCH 08/17] gnu: Add perl-uri-nested Christopher Baines
2019-03-24 20:46   ` [bug#34980] [PATCH 09/17] gnu: Add perl-uri-db Christopher Baines
2019-03-24 20:46   ` [bug#34980] [PATCH 10/17] gnu: Add perl-test-checkdeps Christopher Baines
2019-03-24 20:46   ` [bug#34980] [PATCH 11/17] gnu: Add perl-test-dir Christopher Baines
2019-03-24 20:46   ` [bug#34980] [PATCH 12/17] gnu: Add perl-test-file Christopher Baines
2019-03-24 20:46   ` [bug#34980] [PATCH 13/17] gnu: Add perl-test-file-contents Christopher Baines
2019-03-24 20:46   ` [bug#34980] [PATCH 14/17] gnu: Add perl-test-version Christopher Baines
2019-03-24 20:46   ` [bug#34980] [PATCH 15/17] gnu: Add perl-mysql-config Christopher Baines
2019-03-24 20:46   ` [bug#34980] [PATCH 16/17] gnu: Add perl-string-shellquote Christopher Baines
2019-03-24 20:46   ` Christopher Baines [this message]
2019-04-19  8:03 ` bug#34980: [PATCH 00/17] Add sqitch, a database change management tool, and dependencies Christopher Baines

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=20190324204632.17055-17-mail@cbaines.net \
    --to=mail@cbaines.net \
    --cc=34980@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).