From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([209.51.188.92]:52385) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gkN1I-0005wp-GO for guix-patches@gnu.org; Fri, 18 Jan 2019 00:48:45 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gkMm7-0003AB-QD for guix-patches@gnu.org; Fri, 18 Jan 2019 00:33:04 -0500 Received: from debbugs.gnu.org ([209.51.188.43]:36212) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1gkMm6-00038o-9e for guix-patches@gnu.org; Fri, 18 Jan 2019 00:33:02 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1gkMm5-0004Sl-V9 for guix-patches@gnu.org; Fri, 18 Jan 2019 00:33:01 -0500 Subject: [bug#34120] [PATCH] gnu: Add cqfd. Resent-Message-ID: Received: from eggs.gnu.org ([209.51.188.92]:50400) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gkMl1-0003EB-Eb for guix-patches@gnu.org; Fri, 18 Jan 2019 00:31:56 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gkMl0-0001wP-Hf for guix-patches@gnu.org; Fri, 18 Jan 2019 00:31:55 -0500 Received: from mail-io1-xd2d.google.com ([2607:f8b0:4864:20::d2d]:38389) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1gkMl0-0001vw-7t for guix-patches@gnu.org; Fri, 18 Jan 2019 00:31:54 -0500 Received: by mail-io1-xd2d.google.com with SMTP id l14so9778860ioj.5 for ; Thu, 17 Jan 2019 21:31:54 -0800 (PST) Received: from kwak ([157.52.5.144]) by smtp.gmail.com with ESMTPSA id e189sm1668130ite.17.2019.01.17.21.31.52 for (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Thu, 17 Jan 2019 21:31:52 -0800 (PST) From: Maxim Cournoyer Date: Fri, 18 Jan 2019 00:31:51 -0500 Message-ID: <87fttq3514.fsf@gmail.com> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" 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: 34120@debbugs.gnu.org --=-=-= Content-Type: text/plain Hello! Now that we have a Docker package (thanks to Danny!), this adds cqfd, a small tool to keep track of a Docker base build environment configuration/build commands. Thanks :-) Maxim --=-=-= Content-Type: text/x-patch Content-Disposition: attachment; filename=0001-gnu-Add-cqfd.patch >From c94101e5126f34c613b6a6a3daca1373a90b0882 Mon Sep 17 00:00:00 2001 From: Maxim Cournoyer Date: Thu, 17 Jan 2019 22:03:47 -0500 Subject: [PATCH] gnu: Add cqfd. * gnu/packages/docker.scm (cqfd): New variable. --- gnu/packages/docker.scm | 38 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 38 insertions(+) diff --git a/gnu/packages/docker.scm b/gnu/packages/docker.scm index 23695a0c0..425244a48 100644 --- a/gnu/packages/docker.scm +++ b/gnu/packages/docker.scm @@ -528,3 +528,41 @@ provisioning etc.") (description "This package provides a command line interface to Docker.") (home-page "http://www.docker.com/") (license license:asl2.0))) + +(define-public cqfd + (package + (name "cqfd") + (version "5.0.1") + (source (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/savoirfairelinux/cqfd.git") + (commit (string-append "v" version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 + "1z4v16lbpbwd5ykawizdclpryp2k006lbk2mv427a4b3nvcd9wik")))) + (build-system gnu-build-system) + (arguments + ;; The test suite requires a docker daemon and connectivity. + `(#:tests? #f + #:phases + (modify-phases %standard-phases + (delete 'configure) + (delete 'build) + (replace 'install + (lambda* (#:key outputs #:allow-other-keys) + (let ((out (assoc-ref outputs "out"))) + ;; Fix the directory of the bash completion. + (substitute* "Makefile" + (("completionsdir=.*$") + (string-append "completionsdir=" out + "/etc/bash_completion.d; \\\n"))) + (invoke "make" "install" + (string-append "PREFIX=" out)))))))) + (home-page "https://github.com/savoirfairelinux/cqfd") + (synopsis "Convenience wrapper for Docker") + (description "cqfd is a Bash script that provides a quick and convenient +way to run commands in the ecurrent directory, but within a Docker container +defined in a per-project configuration file.") + (license license:gpl3+))) -- 2.20.1 --=-=-=--