From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:54831) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fUvwt-0002FH-SF for guix-patches@gnu.org; Mon, 18 Jun 2018 11:20:08 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fUvwo-00079H-SQ for guix-patches@gnu.org; Mon, 18 Jun 2018 11:20:07 -0400 Received: from debbugs.gnu.org ([208.118.235.43]:47284) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1fUvwo-00079C-Ow for guix-patches@gnu.org; Mon, 18 Jun 2018 11:20:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1fUvwo-00069y-IC for guix-patches@gnu.org; Mon, 18 Jun 2018 11:20:02 -0400 Subject: [bug#31881] [PATCH 4/4] gnu: Add go-github-com-docker-distribution. Resent-Message-ID: From: Rouby Pierre-Antoine Date: Mon, 18 Jun 2018 17:18:21 +0200 Message-Id: <20180618151821.2972-3-pierre-antoine.rouby@inria.fr> In-Reply-To: <20180618151821.2972-1-pierre-antoine.rouby@inria.fr> References: <20180618151821.2972-1-pierre-antoine.rouby@inria.fr> List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+kyle=kyleam.com@gnu.org Sender: "Guix-patches" To: 31881@debbugs.gnu.org Cc: Rouby Pierre-Antoine * gnu/packages/golang.scm (go-github-com-docker-distribution): New variable. --- gnu/packages/golang.scm | 45 +++++++++++++++++++++++++++++++++++++++++ 1 file changed, 45 insertions(+) diff --git a/gnu/packages/golang.scm b/gnu/packages/golang.scm index f12c2b07a..41d2e5ce1 100644 --- a/gnu/packages/golang.scm +++ b/gnu/packages/golang.scm @@ -1796,3 +1796,48 @@ the standard library logger.") "Golang kardinos service is golang library to run go program as a service.") (license license:zlib)))) + +(define-public go-github-com-docker-distribution + (let ((commit "325b0804fef3a66309d962357aac3c2ce3f4d329") + (revision "0")) + (package + (name "go-github-com-docker-distribution") + (version (git-version "0.0.0" revision commit)) + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/docker/distribution") + (commit commit))) + (file-name (git-file-name name version)) + (sha256 + (base32 + "1yg2zrikn3vkvkx5mn51p6bfjk840qdkn7ahhhvvcsc8mpigrjc6")))) + (build-system go-build-system) + (native-inputs + `(("go-golang-org-x-sys-unix" + ,go-golang-org-x-sys-unix) + ("go-github-com-sirupsen-logrus" + ,go-github-com-sirupsen-logrus) + ("go-golang-org-x-crypto-ssh-terminal" + ,go-golang-org-x-crypto-ssh-terminal))) + (arguments + '(#:import-path "github.com/docker/distribution" + #:phases + (modify-phases %standard-phases + (add-before 'reset-gzip-timestamps 'make-gzip-archive-writable + (lambda* (#:key outputs #:allow-other-keys) + (map (lambda (file) + (make-file-writable file)) + (find-files + (assoc-ref outputs "out") + ".*\\.gz$")) + #t))))) + (home-page + "https://github.com/docker/distribution") + (synopsis "This package is Docker toolset to pack, ship, store, and +deliver content") + (description "Docker Distribution is Docker toolset to pack, ship, +store, and deliver content. It's containe Docker Registry 2.0 and libraries +to interacting with distribution components.") + (license license:asl2.0)))) -- 2.17.0