* [bug#65721] [PATCH] gnu: Add commit-patch.
@ 2023-09-03 20:59 Kjartan Oli Agustsson
2023-09-18 21:20 ` bug#65721: " Ludovic Courtès
0 siblings, 1 reply; 2+ messages in thread
From: Kjartan Oli Agustsson @ 2023-09-03 20:59 UTC (permalink / raw)
To: 65721; +Cc: Kjartan Oli Agustsson
* gnu/packages/version-control.scm (commit-patch): New variable.
---
gnu/packages/version-control.scm | 33 ++++++++++++++++++++++++++++++++
1 file changed, 33 insertions(+)
diff --git a/gnu/packages/version-control.scm b/gnu/packages/version-control.scm
index 86dcea908c..3a1033e25b 100644
--- a/gnu/packages/version-control.scm
+++ b/gnu/packages/version-control.scm
@@ -48,6 +48,7 @@
;;; Copyright © 2022 Dhruvin Gandhi <contact@dhruvin.dev>
;;; Copyright © 2015, 2022 David Thompson <davet@gnu.org>
;;; Copyright © 2023 Nicolas Graves <ngraves@ngraves.fr>
+;;; Copyright © 2023 Kjartan Oli Agustsson <kjartanoli@disroot.org>
;;;
;;; This file is part of GNU Guix.
;;;
@@ -116,6 +117,7 @@ (define-module (gnu packages version-control)
#:use-module (gnu packages ssh)
#:use-module (gnu packages web)
#:use-module (gnu packages openstack)
+ #:use-module (gnu packages patchutils)
#:use-module (gnu packages pcre)
#:use-module (gnu packages perl)
#:use-module (gnu packages perl-check)
@@ -3689,3 +3691,34 @@ (define-public hut
interact with GraphQL APIs directly
@end table")
(license license:agpl3)))
+
+(define-public commit-patch
+ (package
+ (name "commit-patch")
+ (version "2.6.2")
+ (source (origin
+ (method url-fetch)
+ (uri (string-append
+ "https://github.com/caldwell/commit-patch/releases/download/"
+ version "/commit-patch-" version ".tar.gz"))
+ (sha256
+ (base32
+ "0v11vjyisk243zi0ym90bnqb229j7iaqx1lwqdkszxzn1yxwq4ck"))))
+ (build-system copy-build-system)
+ (arguments
+ (list #:phases #~(modify-phases %standard-phases
+ (add-after 'unpack 'fix-paths
+ (lambda* (#:key inputs #:allow-other-keys)
+ (patch-shebang "commit-patch"))))
+ #:install-plan ''(("commit-patch" "bin/")
+ ("commit-patch-buffer.el"
+ "share/emacs/site-lisp/"))))
+ (inputs (list perl))
+ (propagated-inputs (list patchutils))
+ (synopsis "Commit parts of changes to VCS repositories")
+ (description
+ "commit-patch is a utility that lets you check in select portions of a
+file into Darcs, Git, Mercurial, Bazaar, Subversion, or CVS repositories. It
+comes as a command line app and also an Emacs interface.")
+ (home-page "https://porkrind.org/commit-patch/")
+ (license license:gpl2)))
base-commit: e365c26a34fa485f9af46538fcea128db681c33d
--
2.41.0
^ permalink raw reply related [flat|nested] 2+ messages in thread
* bug#65721: [PATCH] gnu: Add commit-patch.
2023-09-03 20:59 [bug#65721] [PATCH] gnu: Add commit-patch Kjartan Oli Agustsson
@ 2023-09-18 21:20 ` Ludovic Courtès
0 siblings, 0 replies; 2+ messages in thread
From: Ludovic Courtès @ 2023-09-18 21:20 UTC (permalink / raw)
To: Kjartan Oli Agustsson; +Cc: 65721-done
Hi,
Kjartan Oli Agustsson <kjartanoli@outlook.com> skribis:
> * gnu/packages/version-control.scm (commit-patch): New variable.
[...]
> + (home-page "https://porkrind.org/commit-patch/")
> + (license license:gpl2)))
Changed to ‘gpl2+’ because nothing says “version 2 only”.
Applied, thanks!
Ludo’.
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2023-09-18 21:21 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-09-03 20:59 [bug#65721] [PATCH] gnu: Add commit-patch Kjartan Oli Agustsson
2023-09-18 21:20 ` bug#65721: " Ludovic Courtès
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/guix.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.