unofficial mirror of guix-patches@gnu.org 
 help / color / mirror / code / Atom feed
* [bug#34120] [PATCH] gnu: Add cqfd.
@ 2019-01-18  5:31 Maxim Cournoyer
  2019-02-05 11:11 ` Ludovic Courtès
  0 siblings, 1 reply; 3+ messages in thread
From: Maxim Cournoyer @ 2019-01-18  5:31 UTC (permalink / raw)
  To: 34120

[-- Attachment #1: Type: text/plain, Size: 190 bytes --]

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


[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: 0001-gnu-Add-cqfd.patch --]
[-- Type: text/x-patch, Size: 2294 bytes --]

From c94101e5126f34c613b6a6a3daca1373a90b0882 Mon Sep 17 00:00:00 2001
From: Maxim Cournoyer <maxim.cournoyer@gmail.com>
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


^ permalink raw reply related	[flat|nested] 3+ messages in thread

* [bug#34120] [PATCH] gnu: Add cqfd.
  2019-01-18  5:31 [bug#34120] [PATCH] gnu: Add cqfd Maxim Cournoyer
@ 2019-02-05 11:11 ` Ludovic Courtès
  2019-02-05 14:37   ` bug#34120: " Maxim Cournoyer
  0 siblings, 1 reply; 3+ messages in thread
From: Ludovic Courtès @ 2019-02-05 11:11 UTC (permalink / raw)
  To: Maxim Cournoyer; +Cc: 34120

Hello!

Maxim Cournoyer <maxim.cournoyer@gmail.com> skribis:

> From c94101e5126f34c613b6a6a3daca1373a90b0882 Mon Sep 17 00:00:00 2001
> From: Maxim Cournoyer <maxim.cournoyer@gmail.com>
> Date: Thu, 17 Jan 2019 22:03:47 -0500
> Subject: [PATCH] gnu: Add cqfd.
>
> * gnu/packages/docker.scm (cqfd): New variable.

LGTM, thanks!

BTW, for a simple package like this, you can apply the simple-patch rule
that ‘HACKING’ describes and push quickly if nobody comments.

Thanks,
Ludo’.

^ permalink raw reply	[flat|nested] 3+ messages in thread

* bug#34120: [PATCH] gnu: Add cqfd.
  2019-02-05 11:11 ` Ludovic Courtès
@ 2019-02-05 14:37   ` Maxim Cournoyer
  0 siblings, 0 replies; 3+ messages in thread
From: Maxim Cournoyer @ 2019-02-05 14:37 UTC (permalink / raw)
  To: Ludovic Courtès; +Cc: 34120-done

Hello!

Ludovic Courtès <ludo@gnu.org> writes:

> Hello!
>
> Maxim Cournoyer <maxim.cournoyer@gmail.com> skribis:
>
>> From c94101e5126f34c613b6a6a3daca1373a90b0882 Mon Sep 17 00:00:00 2001
>> From: Maxim Cournoyer <maxim.cournoyer@gmail.com>
>> Date: Thu, 17 Jan 2019 22:03:47 -0500
>> Subject: [PATCH] gnu: Add cqfd.
>>
>> * gnu/packages/docker.scm (cqfd): New variable.
>
> LGTM, thanks!

> BTW, for a simple package like this, you can apply the simple-patch rule
> that ‘HACKING’ describes and push quickly if nobody comments.

I added a copyright attribution line for myself and pushed to master
with commit 975a953bf. I will commit directly any future trivial
packages, thanks for reminding me about that rule!

Thanks! :-)

Maxim

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2019-02-05 14:53 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2019-01-18  5:31 [bug#34120] [PATCH] gnu: Add cqfd Maxim Cournoyer
2019-02-05 11:11 ` Ludovic Courtès
2019-02-05 14:37   ` bug#34120: " Maxim Cournoyer

Code repositories for project(s) associated with this public inbox

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

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).