From deceb119ac74244c9701073f00d657f0e2970ea4 Mon Sep 17 00:00:00 2001 From: Sharlatan Hellseher Date: Thu, 12 Dec 2024 22:04:31 +0000 Subject: [PATCH] gnu: Add go-github-com-jackc-pgproto3. * gnu/packages/golang-xyz.scm (go-github-com-jackc-pgproto3, go-github-com-jackc-pgproto3): New variables. Change-Id: I7ea229704dc9bd7ed961c46044d53b9d6a34ba48 --- gnu/packages/golang-xyz.scm | 51 +++++++++++++++++++++++++++++++++++++ 1 file changed, 51 insertions(+) diff --git a/gnu/packages/golang-xyz.scm b/gnu/packages/golang-xyz.scm index 18b0152e72da097a6f77bb56c4870070b610e2f4..1d779bff8bfb9813ce0e85320964b0709d778525 100644 --- a/gnu/packages/golang-xyz.scm +++ b/gnu/packages/golang-xyz.scm @@ -4767,6 +4767,57 @@ implementation in https://github.com/jackc/pgx.") "Package pgpassfile is a parser @code{PostgreSQL} .pgpass files.") (license license:expat))) +(define-public go-github-com-jackc-pgproto3 + (package + (name "go-github-com-jackc-pgproto3") + (version "1.1.0") + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/jackc/pgproto3") + (commit (string-append "v" version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 "03vpkqa6j4sanmsj7q13fb6yamspszfv38sr28d40g887bcwf0j8")))) + (build-system go-build-system) + (arguments + (list + #:import-path "github.com/jackc/pgproto3")) + (propagated-inputs + (list go-github-com-jackc-chunkreader + go-github-com-jackc-pgio + go-github-com-pkg-errors)) + (home-page "https://github.com/jackc/pgproto3") + (synopsis "Encoder and decoder of the PostgreSQL wire protocol version 3") + (description + "This package provides a encoder and decoder of the @code{PostgreSQL} +wire protocol version 3.") + (license license:expat))) + +(define-public go-github-com-jackc-pgproto3-v2 + (package + (inherit go-github-com-jackc-pgproto3) + (name "go-github-com-jackc-pgproto3-v2") + (version "2.3.3") + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/jackc/pgproto3") + (commit (string-append "v" version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 "1bmj1bqnn5863178a0k8m3f9xv48zs10z96dm2rl28ybx33d2l77")))) + (arguments + (list + #:import-path "github.com/jackc/pgproto3/v2")) + (native-inputs + (list go-github-com-stretchr-testify)) + (propagated-inputs + (list go-github-com-jackc-chunkreader-v2 + go-github-com-jackc-pgio)))) + (define-public go-github-com-jackc-pgservicefile (package (name "go-github-com-jackc-pgservicefile")