unofficial mirror of guix-patches@gnu.org 
 help / color / mirror / code / Atom feed
blob bb23b59de4ab4a8441706497330d50320830174e 2628 bytes (raw)
name: gnu/packages/guix-extensions.scm 	 # note: path name is non-authoritative(*)

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
 
;;; Copyright © 2022 Efraim Flashner <efraim@flashner.co.il>
;;;
;;; GNU Guix is free software; you can redistribute it and/or modify it
;;; under the terms of the GNU General Public License as published by
;;; the Free Software Foundation; either version 3 of the License, or (at
;;; your option) any later version.
;;;
;;; GNU Guix is distributed in the hope that it will be useful, but
;;; WITHOUT ANY WARRANTY; without even the implied warranty of
;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
;;; GNU General Public License for more details.
;;;
;;; You should have received a copy of the GNU General Public License
;;; along with GNU Guix.  If not, see <http://www.gnu.org/licenses/>.

(define-module (gnu packages guix-extensions)
  #:use-module ((guix licenses) #:prefix license:)
  #:use-module (guix gexp)
  #:use-module (guix packages)
  #:use-module (guix build-system trivial)
  #:use-module (gnu packages version-control))

(define-public guix-send-email
  (package
    (name "guix-send-email")
    (version "0")
    (source #f)
    (build-system trivial-build-system)
    (arguments
     (list
       #:modules '((guix build utils))
       #:builder
       #~(begin
           (use-modules (guix build utils))
           (let ((dest (string-append #$output
                                      "/share/guix/extensions/send-email.scm"))
                 (git            #$(this-package-input "git"))
                 (git-send-email (assoc-ref %build-inputs "git:send-email")))
             (mkdir-p (dirname dest))
             (with-output-to-file dest
               (lambda ()
                 (format #t
"(define-module (guix extensions send-email)~@
                #:use-module (guix scripts)~@
                #:export (guix-send-email))~@
~@
(define-command (guix-send-email . args)~@
                (category extension)~@
                (synopsis \"Replace 'guix send-email' with 'git send-email'\")~@
                (setenv \"GIT_EXEC_PATH\" \"~a/libexec/git-core\")~@
                (apply system* \"~a/bin/git\" \"send-email\" args))~%"
                 git-send-email git)))))))
    (home-page "")  ; Should be documentation location for GUIX_EXTENSIONS_PATH
    (inputs
     `(("git" ,git)
       ("git:send-email" ,git "send-email")))
    (synopsis "Replace @code{guix send-email} with @code{git send-email}")
    (description "This Guix extension provides a shell redirect from @code{guix
send-email} to @code{git send-email}.")
    ;; The package definition is longer than the code;
    ;; let this serve as the declaration of the license.
    (license license:gpl3+)))

debug log:

solving bb23b59de4 ...
found bb23b59de4 in https://yhetil.org/guix-patches/19f63e3d16273f9d43f61890b0c8472afaa75d3f.1663668015.git.efraim@flashner.co.il/

applying [1/1] https://yhetil.org/guix-patches/19f63e3d16273f9d43f61890b0c8472afaa75d3f.1663668015.git.efraim@flashner.co.il/
diff --git a/gnu/packages/guix-extensions.scm b/gnu/packages/guix-extensions.scm
new file mode 100644
index 0000000000..bb23b59de4

Checking patch gnu/packages/guix-extensions.scm...
Applied patch gnu/packages/guix-extensions.scm cleanly.

index at:
100644 bb23b59de4ab4a8441706497330d50320830174e	gnu/packages/guix-extensions.scm

(*) Git path names are given by the tree(s) the blob belongs to.
    Blobs themselves have no identifier aside from the hash of its contents.^

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).