all messages for Guix-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Mortimer Cladwell <mbcladwell@gmail.com>
To: help-guix@gnu.org
Subject: postgresql client packaging recipe
Date: Fri, 10 Dec 2021 16:41:44 -0500	[thread overview]
Message-ID: <CAOcxjM4uJvTXNgMBRbsc+L_3sS5fpOKRXr3hOd0mU0NbLALCaA@mail.gmail.com> (raw)

Hi,
Postgresql-client is not available in the main repository (server is!). I
assumed it was due to the complicated license:
https://metadata.ftp-master.debian.org/changelogs//main/p/postgresql-13/postgresql-13_13.4-0+deb11u1_copyright

So I wrote a packaging recipe (below) and submitted to nonfree.  Was told
it might be that no one has gotten around to packaging for main yet.  I see
the documentation for submitting patches, but not recipe files. Is there a
protocol for submitting packaging recipes?

guix build succeeds:

...[many successes]...
phase `delete-info-dir-file' succeeded after 0.0 seconds
starting phase `patch-dot-desktop-files'
phase `patch-dot-desktop-files' succeeded after 0.0 seconds
starting phase `install-license-files'
installing 0 license files from '.'
phase `install-license-files' succeeded after 0.0 seconds
starting phase `reset-gzip-timestamps'
phase `reset-gzip-timestamps' succeeded after 0.0 seconds
starting phase `compress-documentation'
phase `compress-documentation' succeeded after 0.0 seconds
successfully built
/gnu/store/fqmsg116ycbxyvns6wd09cwk2a6nyqis-postgresql-client-13.4.drv
/gnu/store/w9gswswv5qxc84nyq5n7zkicygsb0rrq-postgresql-client-13.4

Tested and functional on Debian.

Thanks
Mortimer

----------------------------------------------------------------------------------------
(define-module (gnu packages postgresql-client)
  #:use-module (guix packages)
  #:use-module ((guix licenses) #:prefix license:)
  #:use-module (guix download)
  #:use-module (guix build-system gnu)
  #:use-module (gnu packages)
  #:use-module (gnu packages autotools)
  #:use-module (gnu packages guile)
  #:use-module (gnu packages base)
  #:use-module (gnu packages pkg-config)
  #:use-module (gnu packages readline)
  #:use-module (gnu packages texinfo))


(define-public postgresql-client
(package
  (name "postgresql-client")
  (version "13.4")
  (source
     (origin
       (method url-fetch)
       (uri "
http://deb.debian.org/debian/pool/main/p/postgresql-13/postgresql-13_13.4.orig.tar.bz2
")
       (sha256
        (base32 "1kf0gcsrl5n25rjlvkh87aywmn28kbwvakm5c7j1qpr4j01y34za"))))
  (build-system gnu-build-system)
  (arguments `())
  (native-inputs
    `(("autoconf" ,autoconf)
      ("automake" ,automake)
      ("pkg-config" ,pkg-config)
      ("texinfo" ,texinfo)))
  (inputs `(("readline" ,readline)
   ("zlib" ,(@ (gnu packages compression) zlib))))
  (propagated-inputs `())
  (synopsis "Front-end programs for PostgreSQL 13")
  (description "This package contains client and administrative programs
for PostgreSQL: these are the interactive terminal client psql and programs
for creating and removing users and databases.")
  (home-page "https://www.postgresql.org/docs/13/reference-client.html")
  (license license:gpl3+)))

             reply	other threads:[~2021-12-10 23:18 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-12-10 21:41 Mortimer Cladwell [this message]
2021-12-10 23:21 ` postgresql client packaging recipe Tobias Geerinckx-Rice
2021-12-10 23:30   ` Tobias Geerinckx-Rice
2021-12-11 11:35     ` Mortimer Cladwell

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

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

  git send-email \
    --in-reply-to=CAOcxjM4uJvTXNgMBRbsc+L_3sS5fpOKRXr3hOd0mU0NbLALCaA@mail.gmail.com \
    --to=mbcladwell@gmail.com \
    --cc=help-guix@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 external index

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

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.