[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
postgresql client packaging recipe
From: |
Mortimer Cladwell |
Subject: |
postgresql client packaging recipe |
Date: |
Fri, 10 Dec 2021 16:41:44 -0500 |
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+)))
- postgresql client packaging recipe,
Mortimer Cladwell <=