1 ;;; GNU Guix --- Functional package management for GNU
2 ;;; Copyright © 2013 Nikita Karetnikov <nikita@karetnikov.org>
3 ;;; Copyright © 2013 Cyril Roelandt <tipecaml@gmail.com>
4 ;;; Copyright © 2013, 2014, 2015, 2016, 2017, 2018, 2019 Ludovic Courtès <ludo@gnu.org>
5 ;;; Copyright © 2013, 2014 Andreas Enge <andreas@enge.fr>
6 ;;; Copyright © 2015, 2016 Mathieu Lirzin <mthl@gnu.org>
7 ;;; Copyright © 2014, 2015, 2016 Mark H Weaver <mhw@netris.org>
8 ;;; Copyright © 2014, 2016, 2019 Eric Bavier <bavier@member.fsf.org>
9 ;;; Copyright © 2015, 2016, 2017, 2018, 2019 Efraim Flashner <efraim@flashner.co.il>
10 ;;; Copyright © 2015, 2018 Kyle Meyer <kyle@kyleam.com>
11 ;;; Copyright © 2015, 2017, 2018 Ricardo Wurmus <rekado@elephly.net>
12 ;;; Copyright © 2016, 2017 Leo Famulari <leo@famulari.name>
13 ;;; Copyright © 2016, 2017, 2018 ng0 <ng0@n0.is>
14 ;;; Copyright © 2017, 2018, 2019 Tobias Geerinckx-Rice <me@tobias.gr>
15 ;;; Copyright © 2017 Vasile Dumitrascu <va511e@yahoo.com>
16 ;;; Copyright © 2017 Clément Lassieur <clement@lassieur.org>
17 ;;; Copyright © 2017 André <eu@euandre.org>
18 ;;; Copyright © 2017, 2018 Marius Bakke <mbakke@fastmail.com>
19 ;;; Copyright © 2017 Stefan Reichör <stefan@xsteve.at>
20 ;;; Copyright © 2017 Oleg Pykhalov <go.wigust@gmail.com>
21 ;;; Copyright © 2018 Sou Bunnbu <iyzsong@member.fsf.org>
22 ;;; Copyright © 2018 Christopher Baines <mail@cbaines.net>
23 ;;; Copyright © 2018 Timothy Sample <samplet@ngyro.com>
24 ;;; Copyright © 2018 Arun Isaac <arunisaac@systemreboot.net>
25 ;;; Copyright © 2019 Jovany Leandro G.C <bit4bit@riseup.net>
26 ;;; Copyright © 2019 Kei Kebreau <kkebreau@posteo.net>
27 ;;; Copyright © 2019 Alex Griffin <a@ajgrf.com>
29 ;;; This file is part of GNU Guix.
31 ;;; GNU Guix is free software; you can redistribute it and/or modify it
32 ;;; under the terms of the GNU General Public License as published by
33 ;;; the Free Software Foundation; either version 3 of the License, or (at
34 ;;; your option) any later version.
36 ;;; GNU Guix is distributed in the hope that it will be useful, but
37 ;;; WITHOUT ANY WARRANTY; without even the implied warranty of
38 ;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
39 ;;; GNU General Public License for more details.
41 ;;; You should have received a copy of the GNU General Public License
42 ;;; along with GNU Guix. If not, see <http://www.gnu.org/licenses/>.
44 (define-module (gnu packages version-control)
45 #:use-module ((guix licenses) #:prefix license:)
46 #:use-module (guix utils)
47 #:use-module (guix packages)
48 #:use-module (guix download)
49 #:use-module (guix git-download)
50 #:use-module (guix build-system cmake)
51 #:use-module (guix build-system gnu)
52 #:use-module (guix build-system go)
53 #:use-module (guix build-system python)
54 #:use-module (guix build-system trivial)
55 #:use-module (gnu packages apr)
56 #:use-module (gnu packages autotools)
57 #:use-module (gnu packages documentation)
58 #:use-module (gnu packages base)
59 #:use-module (gnu packages bash)
60 #:use-module (gnu packages bison)
61 #:use-module (gnu packages boost)
62 #:use-module (gnu packages check)
63 #:use-module (gnu packages cook)
64 #:use-module (gnu packages curl)
65 #:use-module (gnu packages docbook)
66 #:use-module (gnu packages ed)
67 #:use-module (gnu packages file)
68 #:use-module (gnu packages flex)
69 #:use-module (gnu packages gettext)
70 #:use-module (gnu packages gl)
71 #:use-module (gnu packages groff)
72 #:use-module (gnu packages guile)
73 #:use-module (gnu packages image)
74 #:use-module (gnu packages linux)
75 #:use-module (gnu packages maths)
76 #:use-module (gnu packages nano)
77 #:use-module (gnu packages ncurses)
78 #:use-module (gnu packages ssh)
79 #:use-module (gnu packages web)
80 #:use-module (gnu packages openstack)
81 #:use-module (gnu packages pcre)
82 #:use-module (gnu packages perl)
83 #:use-module (gnu packages perl-check)
84 #:use-module (gnu packages pkg-config)
85 #:use-module (gnu packages python)
86 #:use-module (gnu packages python-web)
87 #:use-module (gnu packages python-xyz)
88 #:use-module (gnu packages readline)
89 #:use-module (gnu packages rsync)
90 #:use-module (gnu packages sqlite)
91 #:use-module (gnu packages admin)
92 #:use-module (gnu packages xml)
93 #:use-module (gnu packages emacs)
94 #:use-module (gnu packages compression)
95 #:use-module (gnu packages sdl)
96 #:use-module (gnu packages swig)
97 #:use-module (gnu packages sync)
98 #:use-module (gnu packages tcl)
99 #:use-module (gnu packages textutils)
100 #:use-module (gnu packages time)
101 #:use-module (gnu packages tls)
102 #:use-module (gnu packages)
103 #:use-module (ice-9 match)
104 #:use-module (srfi srfi-1))
106 (define-public bazaar
113 (uri (string-append "https://launchpad.net/bzr/"
114 (version-major+minor version) "/" version
115 "/+download/bzr-" version ".tar.gz"))
116 (patches (search-patches "bazaar-CVE-2017-14176.patch"))
119 "1cysix5k3wa6y7jjck3ckq3abls4gvz570s0v0hxv805nwki4i8d"))))
120 (build-system python-build-system)
122 ;; Note: 'tools/packaging/lp-upload-release' and 'tools/weavemerge.sh'
124 `(("gettext" ,gettext-minimal)))
126 `(#:tests? #f ; no test target
127 #:python ,python-2 ; Python 3 apparently not yet supported, see
128 ; https://answers.launchpad.net/bzr/+question/229048
130 (modify-phases %standard-phases
131 (add-after 'unpack 'fix-mandir
133 (substitute* "setup.py"
134 (("man/man1") "share/man/man1"))
136 (home-page "https://gnu.org/software/bazaar")
137 (synopsis "Version control system supporting both distributed and centralized workflows")
139 "GNU Bazaar is a version control system that allows you to record
140 changes to project files over time. It supports both a distributed workflow
141 as well as the classic centralized workflow.")
142 (license license:gpl2+)))
147 ;; XXX When updating Git, check if the special 'git-source' input to cgit
148 ;; needs to be updated as well.
152 (uri (string-append "mirror://kernel.org/software/scm/git/git-"
156 "06rpakbwzck85ncfsgv4xmq3iwab9d4f5y6dqhl8nvb2fccxcwcz"))))
157 (build-system gnu-build-system)
159 `(("native-perl" ,perl)
160 ("gettext" ,gettext-minimal)
165 "mirror://kernel.org/software/scm/git/git-manpages-"
169 "19h4bhk78rljxk921fcz5xy1z4ss75zw03n9nqf2r512dz0p5j5h"))))
170 ;; For subtree documentation.
171 ("asciidoc" ,asciidoc)
172 ("docbook-xsl" ,docbook-xsl)
179 ("python" ,python-2) ; CAVEAT: incompatible with python-3 according to INSTALL
182 ;; Note: we keep this in inputs rather than native-inputs to work around
183 ;; a problem in 'patch-shebangs'; see <https://bugs.gnu.org/31952>.
184 ("bash-for-tests" ,bash)
186 ;; For PCRE support in git grep (USE_LIBPCRE2).
190 ("perl-cgi" ,perl-cgi)
193 ("subversion" ,subversion)
194 ("perl-term-readkey" ,perl-term-readkey)
196 ;; For 'git-send-email'.
197 ("perl-authen-sasl" ,perl-authen-sasl)
198 ("perl-net-smtp-ssl" ,perl-net-smtp-ssl)
199 ("perl-io-socket-ssl" ,perl-io-socket-ssl)
201 ;; For 'git gui', 'gitk', and 'git citool'.
204 (outputs '("out" ; the core
205 "send-email" ; for git-send-email
207 "credential-netrc" ; git-credential-netrc
208 "subtree" ; git-subtree
209 "gui")) ; gitk, git gui
211 `(#:make-flags `("V=1" ;more verbose compilation
213 ,(string-append "SHELL_PATH="
214 (assoc-ref %build-inputs "bash")
217 ;; Tests require a bash with completion support.
218 ,(string-append "TEST_SHELL_PATH="
219 (assoc-ref %build-inputs "bash-for-tests")
224 ;; By default 'make install' creates hard links for
225 ;; things in 'libexec/git-core', which leads to huge
226 ;; nars; see <https://bugs.gnu.org/21949>.
227 "NO_INSTALL_HARDLINKS=indeed")
229 ;; Make sure the full bash does not end up in the final closure.
230 #:disallowed-references (,bash)
234 ;; Tests fail randomly when parallel: <https://bugs.gnu.org/29512>.
237 ;; The explicit --with-tcltk forces the build system to hardcode the
238 ;; absolute file name to 'wish'.
239 #:configure-flags (list (string-append "--with-tcltk="
240 (assoc-ref %build-inputs "tk")
241 "/bin/wish8.6")) ; XXX
243 #:modules ((srfi srfi-1)
245 ,@%gnu-build-system-modules)
247 (modify-phases %standard-phases
248 (add-after 'unpack 'modify-PATH
249 (lambda* (#:key inputs #:allow-other-keys)
250 (let ((path (string-split (getenv "PATH") #\:))
251 (bash-full (assoc-ref inputs "bash-for-tests")))
252 ;; Drop the test bash from PATH so that (which "sh") and
253 ;; similar does the right thing.
254 (setenv "PATH" (string-join
255 (remove (cut string-prefix? bash-full <>) path)
258 (add-after 'configure 'patch-makefiles
260 (substitute* "Makefile"
261 (("/usr/bin/perl") (which "perl"))
262 (("/usr/bin/python") (which "python")))
264 (add-after 'configure 'add-PM.stamp
266 ;; Add the "PM.stamp" to avoid "no rule to make target".
267 (call-with-output-file "perl/PM.stamp" (const #t))
269 (add-after 'build 'build-subtree
270 (lambda* (#:key inputs #:allow-other-keys)
271 (with-directory-excursion "contrib/subtree"
272 (substitute* "Makefile"
273 ;; Apparently `xmlto' does not bother to looks up the stylesheets
274 ;; specified in the XML, unlike the above substitution. Instead it
275 ;; uses a hard-coded URL. Work around it here, but if this is
276 ;; common perhaps we should hardcode this path in xmlto itself.
277 (("\\$\\(XMLTO\\) -m \\$\\(MANPAGE_XSL\\) man")
278 (string-append "$(XMLTO) -x "
279 (string-append (assoc-ref inputs "docbook-xsl")
280 "/xml/xsl/docbook-xsl-"
281 ,(package-version docbook-xsl))
282 "/manpages/docbook.xsl -m $(MANPAGE_XSL) man")))
284 (invoke "make" "install")
285 (invoke "make" "install-doc")
286 (substitute* "git-subtree"
287 (("/bin/sh") (which "sh"))))
289 (add-before 'check 'patch-tests
291 (let ((store-directory (%store-directory)))
292 ;; These files contain some funny bytes that Guile is unable
293 ;; to decode for shebang patching. Just delete them.
294 (for-each delete-file '("t/t4201-shortlog.sh"
295 "t/t7813-grep-icase-iso.sh"))
296 ;; Many tests contain inline shell scripts (hooks etc).
297 (substitute* (find-files "t" "\\.sh$")
298 (("#!/bin/sh") (string-append "#!" (which "sh"))))
299 ;; Un-do shebang patching here to prevent checksum mismatch.
300 (substitute* '("t/t4034/perl/pre" "t/t4034/perl/post")
301 (("^#!.*/bin/perl") "#!/usr/bin/perl"))
302 (substitute* "t/t5003-archive-zip.sh"
303 (("cp /bin/sh") (string-append "cp " (which "sh"))))
304 (substitute* "t/t6030-bisect-porcelain.sh"
305 (("\"/bin/sh\"") (string-append "\"" (which "sh") "\"")))
306 ;; FIXME: This test runs `git commit` with a bogus EDITOR
307 ;; and empty commit message, but does not fail the way it's
308 ;; expected to. The test passes when invoked interactively.
309 (substitute* "t/t7508-status.sh"
310 (("\tcommit_template_commented") "\ttrue"))
311 ;; More checksum mismatches due to odd shebangs.
312 (substitute* "t/t9100-git-svn-basic.sh"
313 (((string-append "\"#!" store-directory ".*/bin/sh")) "\"#!/bin/sh") )
314 (substitute* "t/t9300-fast-import.sh"
315 (((string-append "\t#!" store-directory ".*/bin/sh")) "\t#!/bin/sh")
316 (((string-append "'#!" store-directory ".*/bin/sh")) "'#!/bin/sh"))
317 ;; FIXME: Some hooks fail with "basename: command not found".
318 ;; See 't/trash directory.t9164.../svn-hook.log'.
319 (delete-file "t/t9164-git-svn-dcommit-concurrent.sh")
321 ;; XXX: These tests fail intermittently for unknown reasons:
322 ;; <https://bugs.gnu.org/29546>.
323 (for-each delete-file
324 '("t/t9128-git-svn-cmd-branch.sh"
325 "t/t9167-git-svn-cmd-branch-subproject.sh"
326 "t/t9141-git-svn-multiple-branches.sh"))
328 (add-after 'install 'install-shell-completion
329 (lambda* (#:key outputs #:allow-other-keys)
330 (let* ((out (assoc-ref outputs "out"))
331 (completions (string-append out "/etc/bash_completion.d")))
332 ;; TODO: Install the tcsh and zsh completions in the right place.
333 (mkdir-p completions)
334 (copy-file "contrib/completion/git-completion.bash"
335 (string-append completions "/git"))
337 (add-after 'install 'install-credential-netrc
338 (lambda* (#:key outputs #:allow-other-keys)
339 (let* ((netrc (assoc-ref outputs "credential-netrc")))
340 (install-file "contrib/credential/netrc/git-credential-netrc"
341 (string-append netrc "/bin"))
342 ;; Previously, Git.pm was automatically found by netrc.
343 ;; Perl 5.26 changed how it locates modules so that @INC no
344 ;; longer includes the current working directory (the Perl
345 ;; community calls this "dotless @INC").
346 (wrap-program (string-append netrc "/bin/git-credential-netrc")
347 `("PERL5LIB" ":" prefix
348 (,(string-append (assoc-ref outputs "out") "/share/perl5"))))
350 (add-after 'install 'install-subtree
351 (lambda* (#:key outputs #:allow-other-keys)
352 (let ((subtree (assoc-ref outputs "subtree")))
353 (install-file "contrib/subtree/git-subtree"
354 (string-append subtree "/bin"))
355 (install-file "contrib/subtree/git-subtree.1"
356 (string-append subtree "/share/man/man1"))
358 (add-after 'install 'split
359 (lambda* (#:key inputs outputs #:allow-other-keys)
360 ;; Split the binaries to the various outputs.
361 (let* ((out (assoc-ref outputs "out"))
362 (se (assoc-ref outputs "send-email"))
363 (svn (assoc-ref outputs "svn"))
364 (gui (assoc-ref outputs "gui"))
365 (gitk (string-append out "/bin/gitk"))
366 (gitk* (string-append gui "/bin/gitk"))
367 (git-gui (string-append out "/libexec/git-core/git-gui"))
368 (git-gui* (string-append gui "/libexec/git-core/git-gui"))
369 (git-cit (string-append out "/libexec/git-core/git-citool"))
370 (git-cit* (string-append gui "/libexec/git-core/git-citool"))
371 (git-se (string-append out "/libexec/git-core/git-send-email"))
372 (git-se* (string-append se "/libexec/git-core/git-send-email"))
373 (git-svn (string-append out "/libexec/git-core/git-svn"))
374 (git-svn* (string-append svn "/libexec/git-core/git-svn"))
375 (git-sm (string-append out
376 "/libexec/git-core/git-submodule")))
377 (mkdir-p (string-append gui "/bin"))
378 (mkdir-p (string-append gui "/libexec/git-core"))
379 (mkdir-p (string-append se "/libexec/git-core"))
380 (mkdir-p (string-append svn "/libexec/git-core"))
382 (for-each (lambda (old new)
386 (list gitk git-gui git-cit git-se git-svn)
387 (list gitk* git-gui* git-cit* git-se* git-svn*))
389 ;; Tell 'git-svn' where Subversion and perl-term-readkey are.
390 (wrap-program git-svn*
392 (,(string-append (assoc-ref inputs "subversion")
394 `("PERL5LIB" ":" prefix
395 ,(map (lambda (i) (string-append (assoc-ref inputs i)
396 "/lib/perl5/site_perl"))
397 '("subversion" "perl-term-readkey")))
399 ;; XXX: The .so for SVN/Core.pm lacks a RUNPATH, so
400 ;; help it find 'libsvn_client-1.so'.
401 `("LD_LIBRARY_PATH" ":" prefix
402 (,(string-append (assoc-ref inputs "subversion")
405 ;; Tell 'git-send-email' where perl modules are.
406 (wrap-program git-se*
407 `("PERL5LIB" ":" prefix
408 ,(map (lambda (o) (string-append o "/lib/perl5/site_perl"))
410 ,@(transitive-input-references
413 (assoc l (package-inputs this-package)))
416 "perl-io-socket-ssl")))))))
418 ;; Tell 'gitweb.cgi' where perl modules are.
419 (wrap-program (string-append out "/share/gitweb/gitweb.cgi")
420 `("PERL5LIB" ":" prefix
421 ,(map (lambda (o) (string-append o "/lib/perl5/site_perl"))
423 ,@(transitive-input-references
426 (assoc l (package-inputs this-package)))
429 ;; Tell 'git-submodule' where Perl is.
432 (,(string-append (assoc-ref inputs "perl")
436 (add-after 'split 'install-man-pages
437 (lambda* (#:key inputs outputs #:allow-other-keys)
438 (let* ((out (assoc-ref outputs "out"))
439 (man (string-append out "/share/man"))
440 (manpages (assoc-ref inputs "git-manpages")))
442 (with-directory-excursion man
443 (invoke "tar" "xvf" manpages))))))))
446 ;; For HTTPS access, Git needs a single-file certificate bundle, specified
447 ;; with $GIT_SSL_CAINFO.
448 (list (search-path-specification
449 (variable "GIT_SSL_CAINFO")
451 (separator #f) ;single entry
452 (files '("etc/ssl/certs/ca-certificates.crt")))
453 (search-path-specification
454 (variable "GIT_EXEC_PATH")
455 (separator #f) ;single entry
456 (files '("libexec/git-core")))))
458 (synopsis "Distributed version control system")
460 "Git is a free distributed version control system designed to handle
461 everything from small to very large projects with speed and efficiency.")
462 (license license:gpl2)
463 (home-page "https://git-scm.com/")))
465 (define-public git-minimal
466 ;; The size of the closure of 'git-minimal' is two thirds that of 'git'.
467 ;; Its test suite runs slightly faster and most importantly it doesn't
468 ;; depend on packages that are expensive to build such as Subversion.
473 (substitute-keyword-arguments (package-arguments git)
475 `(modify-phases ,phases
476 (replace 'patch-makefiles
478 (substitute* "Makefile"
479 (("/usr/bin/perl") (which "perl")))
481 (delete 'build-subtree)
483 (delete 'install-man-pages)
484 (delete 'install-subtree)
485 (delete 'install-credential-netrc)
486 (add-before 'check 'delete-svn-test
488 ;; This test cannot run since we are not building 'git-svn'.
489 (delete-file "t/t9020-remote-svn.sh")
491 (add-after 'install 'remove-unusable-perl-commands
492 (lambda* (#:key outputs #:allow-other-keys)
493 (let* ((out (assoc-ref outputs "out"))
494 (bin (string-append out "/bin"))
495 (libexec (string-append out "/libexec")))
496 (for-each (lambda (file)
497 (delete-file (string-append libexec
499 '("git-svn" "git-cvsimport" "git-archimport"
500 "git-cvsserver" "git-request-pull"
501 "git-add--interactive" "git-cvsexportcommit"
502 "git-instaweb" "git-send-email"))
503 (delete-file (string-append bin "/git-cvsserver"))
505 ;; These templates typically depend on Perl. Remove them.
506 (delete-file-recursively
507 (string-append out "/share/git-core/templates/hooks"))
509 ;; Gitweb depends on Perl as well.
510 (delete-file-recursively
511 (string-append out "/share/gitweb"))
513 ((#:make-flags flags)
514 `(delete "USE_LIBPCRE2=yes" ,flags))
515 ((#:configure-flags flags)
517 ((#:disallowed-references lst '())
521 `(("native-perl" ,perl)
522 ("gettext" ,gettext-minimal)))
524 `(("curl" ,curl) ;for HTTP(S) access
525 ("expat" ,expat) ;for 'git push' over HTTP(S)
529 ("bash-for-tests" ,bash)))))
531 (define-public libgit2
538 (url "https://github.com/libgit2/libgit2.git")
539 (commit (string-append "v" version))))
540 (file-name (git-file-name name version))
543 "07068flm9xi25wmcs65nyfg6a7ikgfv96i2nhgyj5gzs9gljqiz2"))
544 (patches (search-patches "libgit2-avoid-python.patch"
545 "libgit2-mtime-0.patch"))
547 ;; Remove bundled software.
549 (delete-file-recursively "deps")
551 (modules '((guix build utils)))))
552 (build-system cmake-build-system)
553 (outputs '("out" "debug"))
555 `(#:configure-flags '("-DUSE_SHA1DC=ON") ; SHA-1 collision detection
557 (modify-phases %standard-phases
558 (add-after 'unpack 'fix-hardcoded-paths
560 (substitute* "tests/repo/init.c"
561 (("#!/bin/sh") (string-append "#!" (which "sh"))))
562 (substitute* "tests/clar/fs.h"
563 (("/bin/cp") (which "cp"))
564 (("/bin/rm") (which "rm")))
566 (add-after 'unpack 'make-git-checkout-writable
568 (for-each make-file-writable (find-files "."))
570 ;; Run checks more verbosely.
572 (lambda _ (invoke "./libgit2_clar" "-v" "-Q"))))))
574 `(("libssh2" ,libssh2)
575 ("http-parser" ,http-parser)))
577 `(("guile" ,guile-2.2)
578 ("pkg-config" ,pkg-config)))
580 ;; These two libraries are in 'Requires.private' in libgit2.pc.
581 `(("openssl" ,openssl)
583 (home-page "https://libgit2.github.com/")
584 (synopsis "Library providing Git core methods")
586 "Libgit2 is a portable, pure C implementation of the Git core methods
587 provided as a re-entrant linkable library with a solid API, allowing you to
588 write native speed custom Git applications in any language with bindings.")
589 ;; GPLv2 with linking exception
590 (license license:gpl2)))
592 (define-public git-crypt
600 (url "https://github.com/AGWA/git-crypt.git")
602 (file-name (git-file-name name version))
604 (base32 "1x9209n3k49k998saadr2d0lmvs01smjinx7gzzyjdwj9l904sii"))))
605 (build-system gnu-build-system)
608 ("openssl" ,openssl)))
610 `(#:tests? #f ; No tests.
612 (modify-phases %standard-phases
618 (lambda* (#:key outputs #:allow-other-keys)
619 (let ((out (assoc-ref outputs "out")))
620 (invoke "make" "install"
621 (string-append "PREFIX=" out))))))))
622 (home-page "https://www.agwa.name/projects/git-crypt")
623 (synopsis "Transparent encryption of files in a git repository")
624 (description "git-crypt enables transparent encryption and decryption of
625 files in a git repository. Files which you choose to protect are encrypted when
626 committed, and decrypted when checked out. git-crypt lets you freely share a
627 repository containing a mix of public and private content. git-crypt gracefully
628 degrades, so developers without the secret key can still clone and commit to a
629 repository with encrypted files. This lets you store your secret material (such
630 as keys or passwords) in the same repository as your code, without requiring you
631 to lock down your entire repository.")
632 (license license:gpl3+)))
634 (define-public git-remote-gcrypt
636 (name "git-remote-gcrypt")
641 (url "https://git.spwhitton.name/git-remote-gcrypt")
643 (file-name (string-append name "-" version "-checkout"))
646 "1vay3204729c7wajgn3nxf0s0hzwpdrw14pl6kd8w2ss25gvw2k1"))))
647 (build-system trivial-build-system)
649 `(#:modules ((guix build utils))
651 (use-modules (guix build utils))
652 (let* ((source (assoc-ref %build-inputs "source"))
653 (output (assoc-ref %outputs "out"))
654 (bindir (string-append output "/bin")))
655 (install-file (string-append source "/git-remote-gcrypt")
658 (home-page "https://spwhitton.name/tech/code/git-remote-gcrypt/")
659 (synopsis "Whole remote repository encryption")
660 (description "git-remote-gcrypt is a Git remote helper to push and pull from
661 repositories encrypted with GnuPG. It works with the standard Git transports,
662 including repository hosting services like GitLab.
664 Remote helper programs are invoked by Git to handle network transport. This
665 helper handles @code{gcrypt:} URLs that access a remote repository encrypted
666 with GPG, using our custom format.
668 Supported locations are local, @code{rsync://} and @code{sftp://}, where the
669 repository is stored as a set of files, or instead any Git URL where gcrypt
670 will store the same representation in a Git repository, bridged over arbitrary
673 The aim is to provide confidential, authenticated Git storage and
674 collaboration using typical untrusted file hosts or services.")
675 (license license:gpl3+)))
684 "https://git.zx2c4.com/cgit/snapshot/cgit-"
688 "1gw2j5xc5qdx2hwiwkr8h6kgya7v9d9ff9j32ga1dys0cca7qm1w"))))
689 (build-system gnu-build-system)
691 '(#:tests? #f ; XXX: fail to build the in-source git.
693 #:make-flags '("CC=gcc" "SHELL_PATH=sh")
695 (modify-phases %standard-phases
696 (add-after 'unpack 'unpack-git
697 (lambda* (#:key inputs #:allow-other-keys)
698 ;; Unpack the source of git into the 'git' directory.
699 (invoke "tar" "--strip-components=1" "-C" "git" "-xf"
700 (assoc-ref inputs "git-source"))))
701 (add-after 'unpack 'patch-absolute-file-names
702 (lambda* (#:key inputs #:allow-other-keys)
703 (define (quoted-file-name input path)
704 (string-append "\"" input path "\""))
705 (substitute* "ui-snapshot.c"
707 (quoted-file-name (assoc-ref inputs "gzip") "/bin/gzip"))
709 (quoted-file-name (assoc-ref inputs "bzip2") "/bin/bzip2"))
711 (quoted-file-name (assoc-ref inputs "xz") "/bin/xz")))
713 (substitute* "filters/about-formatting.sh"
714 (("$\\(dirname $0\\)") (string-append (assoc-ref outputs "out")
715 "/lib/cgit/filters"))
716 (("\\| tr") (string-append "| " (which "tr"))))
718 (substitute* "filters/html-converters/txt2html"
719 (("sed") (which "sed")))
721 (substitute* "filters/html-converters/man2html"
722 (("groff") (which "groff")))
724 (substitute* "filters/html-converters/rst2html"
725 (("rst2html\\.py") (which "rst2html.py")))
728 (delete 'configure) ; no configure script
729 (add-after 'build 'build-man
730 (lambda* (#:key make-flags #:allow-other-keys)
731 (apply invoke "make" "doc-man" make-flags)))
733 (lambda* (#:key make-flags outputs #:allow-other-keys)
734 (let ((out (assoc-ref outputs "out")))
736 "make" "install" "install-man"
737 (string-append "prefix=" out)
738 (string-append "CGIT_SCRIPT_PATH=" out "/share/cgit")
740 ;; Move the platform-dependent 'cgit.cgi' into lib to get it
742 (rename-file (string-append out "/share/cgit/cgit.cgi")
743 (string-append out "/lib/cgit/cgit.cgi"))
745 (add-after 'install 'wrap-python-scripts
746 (lambda* (#:key outputs #:allow-other-keys)
749 (wrap-program (string-append (assoc-ref outputs "out")
750 "/lib/cgit/filters/" file)
751 `("PYTHONPATH" ":" prefix (,(getenv "PYTHONPATH")))))
752 '("syntax-highlighting.py"
753 "html-converters/md2html"))
756 ;; For building manpage.
757 `(("asciidoc" ,asciidoc)
762 `(;; Building cgit requires a Git source tree.
766 ;; XXX CGit is currently incompatible with Git > 2.18.
767 (uri "mirror://kernel.org/software/scm/git/git-2.18.2.tar.xz")
770 "1gmcz5k8sa6phzhhv6zjl8izbyqnxcdb8ns8kd2czyak0g409vrq"))))
774 ("python-docutils" ,python-docutils)
775 ("python-markdown" ,python-markdown)
776 ("python-pygments" ,python-pygments)
778 (home-page "https://git.zx2c4.com/cgit/")
779 (synopsis "Web frontend for git repositories")
781 "CGit is an attempt to create a fast web interface for the Git SCM, using
782 a built-in cache to decrease server I/O pressure.")
783 (license license:gpl2)))
785 (define-public python-ghp-import
787 (name "python-ghp-import")
793 (url "https://github.com/davisp/ghp-import.git")
795 (file-name (git-file-name name version))
797 (base32 "12pmw3zz3i57ljnm0rxdyjqdyhisbvy18mjwkb3bzp5pgzs2f45c"))))
798 (build-system python-build-system)
800 `(#:phases (modify-phases %standard-phases
801 (add-after 'install 'install-documentation
802 (lambda* (#:key outputs #:allow-other-keys)
803 (let* ((out (assoc-ref outputs "out"))
804 (doc (string-append out "/share/doc"))
805 (licenses (string-append out "/share/licenses")))
806 (install-file "README.md" doc)
807 (install-file "LICENSE" licenses)))))))
808 (home-page "https://github.com/davisp/ghp-import")
809 (synopsis "Copy directory to the gh-pages branch")
810 (description "Script that copies a directory to the gh-pages branch (by
811 default) of the repository.")
813 ;; See <https://bugs.gnu.org/27913>.
814 (license (license:non-copyleft
815 "https://raw.githubusercontent.com/davisp/ghp-import/master/LICENSE"
816 "Tumbolia Public License"))))
818 (define-public python2-ghp-import
819 (package-with-python2
820 (strip-python2-variant python-ghp-import)))
822 (define-public python-gitdb
824 (name "python-gitdb")
828 (uri (pypi-uri "gitdb2" version))
831 "0i608q9c47rdsmyac1cn6s0hzwwj7cb957y8fc9wacc5lnw8ak5v"))))
832 (build-system python-build-system)
834 `(#:phases (modify-phases %standard-phases
835 (add-before 'check 'create-test-repository
837 (mkdir "/tmp/testrepo")
838 ;; Some tests require a git repository, so create one.
839 (with-directory-excursion "/tmp/testrepo"
840 (do ((filecount 1 (1+ filecount)))
842 (call-with-output-file (string-append
843 "file" (number->string filecount))
845 (format port "~a" filecount))))
847 (invoke "git" "init")
848 (invoke "git" "config" "user.name" "Total Git")
849 (invoke "git" "config" "user.email" "git@localhost")
850 (invoke "git" "add" "-A")
851 (invoke "git" "commit" "-q" "-m" "dummy commit")))
853 ;; The repository checkout must be a "bare" clone.
854 (invoke "git" "clone" "--bare" "/tmp/testrepo"
855 "/tmp/testrepo.git")))
858 (setenv "GITDB_TEST_GIT_REPO_BASE" "/tmp/testrepo.git")
859 ;; Skip tests that must be run from the gitdb repository.
860 (setenv "TRAVIS" "1")
861 (invoke "nosetests" "-v"))))))
863 `(("python-smmap2" ,python-smmap2)))
866 ("python-nose" ,python-nose)))
867 (home-page "https://github.com/gitpython-developers/gitdb")
868 (synopsis "Python implementation of the Git object database")
870 "GitDB allows you to access @dfn{bare} Git repositories for reading and
871 writing. It aims at allowing full access to loose objects as well as packs
872 with performance and scalability in mind. It operates exclusively on streams,
873 allowing to handle large objects with a small memory footprint.")
874 (license license:bsd-3)))
876 (define-public python2-gitdb
877 (package-with-python2 python-gitdb))
879 (define-public python-gitpython
881 (name "python-gitpython")
885 (uri (pypi-uri "GitPython" version))
888 "1a357c28dnhgvq3saia7v29r71ynp48l2qp5xsmnc4vgzmdxqdw2"))))
889 (build-system python-build-system)
891 `(#:tests? #f ;XXX: Tests can only be run within the GitPython repository.
892 #:phases (modify-phases %standard-phases
893 (add-after 'unpack 'embed-git-reference
894 (lambda* (#:key inputs #:allow-other-keys)
895 (substitute* "git/cmd.py"
896 (("git_exec_name = \"git\"")
897 (string-append "git_exec_name = \""
898 (assoc-ref inputs "git")
904 `(("python-gitdb" ,python-gitdb)))
906 `(("python-ddt" ,python-ddt)
907 ("python-nose" ,python-nose)))
908 (home-page "https://github.com/gitpython-developers/GitPython")
909 (synopsis "Python library for interacting with Git repositories")
911 "GitPython is a python library used to interact with Git repositories,
912 high-level like git-porcelain, or low-level like git-plumbing.
914 It provides abstractions of Git objects for easy access of repository data,
915 and additionally allows you to access the Git repository more directly using
916 either a pure Python implementation, or the faster, but more resource intensive
917 @command{git} command implementation.")
918 (license license:bsd-3)))
920 (define-public python2-gitpython
921 (package-with-python2 python-gitpython))
923 (define-public shflags
930 (url "https://github.com/kward/shflags.git")
931 (commit (string-append "v" version))))
932 (file-name (git-file-name name version))
935 "1ydx0sb6vz9s2dgp5bd64y7fpzh9qvmlfjxrbmzac8saknijrlly"))))
936 (build-system gnu-build-system)
938 `(#:tests? #f ; no tests
940 (modify-phases %standard-phases
941 (delete 'configure) ; nothing to configure
942 (delete 'build) ; nothing to build
944 (lambda* (#:key outputs #:allow-other-keys)
945 (let* ((out (assoc-ref outputs "out"))
946 (src (string-append out "/src")))
947 (install-file "shflags" src)
949 (home-page "https://github.com/kward/shflags")
950 (synopsis "Command-line flags library for shell scripts")
952 "Shell Flags (shFlags) is a library written to greatly simplify the
953 handling of command-line flags in Bourne based Unix shell scripts (bash, dash,
954 ksh, sh, zsh). Most shell scripts use getopt for flags processing, but the
955 different versions of getopt on various OSes make writing portable shell
956 scripts difficult. shFlags instead provides an API that doesn't change across
957 shell and OS versions so the script writer can be confident that the script
959 (license license:lgpl2.1)))
961 (define-public git-flow
964 ;; This version has not be officially released yet, so we build it
965 ;; directly from the git repository.
966 (version "0.4.2-pre")
970 (url "https://github.com/nvie/gitflow/")
971 (commit "15aab26490facf285acef56cb5d61025eacb3a69")))
972 (file-name (git-file-name name version))
975 "01fs97q76fdfnvmrh2cyjhywcs3pykf1dg58sy0frflnsdzs6prx"))))
976 (build-system gnu-build-system)
977 (inputs `(("shflags" ,shflags)))
979 '(#:tests? #f ; no tests
980 #:make-flags (list (string-append "prefix="
981 (assoc-ref %outputs "out")))
983 (modify-phases %standard-phases
984 (add-after 'unpack 'reset-shFlags-link
985 (lambda* (#:key inputs #:allow-other-keys)
986 ;; The link points to a file in the shFlags submodule.
987 ;; Redirect it to point to our system shFlags.
988 (let ((shflags (assoc-ref inputs "shflags")))
990 (delete-file "gitflow-shFlags")
991 (symlink (string-append shflags "/src/shflags")
992 "gitflow-shFlags")))))
995 (home-page "http://nvie.com/posts/a-successful-git-branching-model/")
996 (synopsis "Git extensions for Vincent Driessen's branching model")
998 "Vincent Driessen's branching model is a git branching and release
999 management strategy that helps developers keep track of features, hotfixes,
1000 and releases in bigger software projects. The git-flow library of git
1001 subcommands helps automate some parts of the flow to make working with it a
1003 (license license:bsd-2)))
1005 (define-public stgit
1013 (url "https://github.com/ctmarinas/stgit.git")
1014 (commit (string-append "v" version))))
1015 (file-name (git-file-name name version))
1017 (base32 "0ydgg744m671nkhg7h4q2z3b9vpbc9914rbc0wcgimqfqsxkxx2y"))))
1018 (build-system python-build-system)
1022 `(#:python ,python-2
1024 (modify-phases %standard-phases
1027 ;; Two tests will fail -> disable them. TODO: fix the failing tests
1028 (delete-file "t/t3300-edit.sh")
1029 (delete-file "t/t7504-commit-msg-hook.sh")
1030 (invoke "make" "test"))))))
1031 (home-page "http://procode.org/stgit/")
1032 (synopsis "Stacked Git")
1034 "StGit is a command-line application that provides functionality similar
1035 to Quilt (i.e., pushing/popping patches to/from a stack), but using Git
1036 instead of @command{diff} and @command{patch}. StGit stores its patches in a
1037 Git repository as normal Git commits, and provides a number of commands to
1038 manipulate them in various ways.")
1039 (license license:gpl2)))
1044 (version "1.20151229")
1049 (url "https://github.com/RichiH/vcsh.git")
1050 (commit (string-append "v" version))))
1051 (file-name (git-file-name name version))
1053 (base32 "1grpj45nbpv4j60vd2kg4rj53zrm0bc0h9l4pfd3c2mwbvywm6ab"))))
1054 (build-system gnu-build-system)
1056 `(("which" ,which)))
1060 ("perl-test-harness" ,perl-test-harness)
1061 ("perl-shell-command" ,perl-shell-command)
1062 ("perl-test-most" ,perl-test-most)))
1064 '(#:phases (modify-phases %standard-phases
1067 #:make-flags (list (string-append "PREFIX="
1068 (assoc-ref %outputs "out")))
1069 #:test-target "test"))
1070 (home-page "https://github.com/RichiH/vcsh")
1071 (synopsis "Version control system for @code{$HOME}")
1073 "vcsh version-controls configuration files in several Git repositories,
1074 all in one single directory. They all maintain their working trees without
1075 clobbering each other or interfering otherwise. By default, all Git
1076 repositories maintained via vcsh store the actual files in @code{$HOME},
1077 though this can be overridden.")
1078 (license license:gpl2+)))
1080 (define-public git-test-sequence
1081 (let ((commit "48e5a2f5a13a5f30452647237e23362b459b9c76"))
1083 (name "git-test-sequence")
1084 (version (string-append "20140312." (string-take commit 7)))
1088 ;; There are many other scripts in this directory; we
1089 ;; are interested in just one for this package.
1090 (url "https://github.com/dustin/bindir")
1092 (file-name (git-file-name name version))
1095 "1dcq0y16yznbv4k9h8gg90kv1gkn8r8dbvl4m2rpfd7q5nqhn617"))))
1096 (build-system trivial-build-system)
1098 `(#:modules ((guix build utils))
1100 (use-modules (guix build utils))
1101 (let* ((source (assoc-ref %build-inputs "source"))
1102 (output (assoc-ref %outputs "out"))
1103 (bindir (string-append output "/bin"))
1104 (script "git-test-sequence"))
1105 (install-file (string-append source "/" script)
1108 (home-page "http://dustin.sallings.org/2010/03/28/git-test-sequence.html")
1109 (synopsis "Run a command over a sequence of commits")
1111 "git-test-sequence is similar to an automated git bisect except it’s
1112 linear. It will test every change between two points in the DAG. It will
1113 also walk each side of a merge and test those changes individually.")
1114 (license (license:x11-style "file://LICENSE")))))
1116 (define-public gitolite
1124 (url "https://github.com/sitaramc/gitolite.git")
1125 (commit (string-append "v" version))))
1126 (file-name (git-file-name name version))
1128 (base32 "0rmyzr66lxh2ildf3h1nh3hh2ndwk21rjdin50r5vhwbdd7jg8vb"))))
1129 (build-system gnu-build-system)
1131 '(#:tests? #f ; no tests
1132 #:phases (modify-phases %standard-phases
1135 (add-before 'install 'patch-scripts
1136 (lambda* (#:key inputs #:allow-other-keys)
1137 (let ((perl (string-append (assoc-ref inputs "perl")
1139 ;; This seems to take care of every shell script that
1141 (substitute* (find-files "." ".*")
1143 (string-append " " perl " -")))
1145 (substitute* (find-files "src/triggers" ".*")
1147 (string-append " " (which "sed") " ")))
1150 '("src/triggers/post-compile/update-gitweb-access-list"
1151 "src/triggers/post-compile/ssh-authkeys-split"
1152 "src/triggers/upstream")
1154 (string-append " " (which "grep") " ")))
1156 ;; Avoid references to the store in authorized_keys.
1157 ;; This works because gitolite-shell is in the PATH.
1158 (substitute* "src/triggers/post-compile/ssh-authkeys"
1159 (("\\$glshell \\$user")
1160 "gitolite-shell $user"))
1162 (add-before 'install 'patch-source
1163 (lambda* (#:key inputs #:allow-other-keys)
1164 ;; Gitolite uses cat to test the readability of the
1166 (substitute* "src/lib/Gitolite/Setup.pm"
1168 (string-append "\"" (which "cat") " "))
1170 (string-append "\"" (which "ssh-keygen"))))
1172 (substitute* '("src/lib/Gitolite/Hooks/PostUpdate.pm"
1173 "src/lib/Gitolite/Hooks/Update.pm")
1175 (string-append (assoc-ref inputs "perl")
1178 (substitute* "src/lib/Gitolite/Common.pm"
1180 (string-append "\"" (which "ssh-keygen")))
1183 (assoc-ref inputs "inetutils")
1188 (lambda* (#:key outputs #:allow-other-keys)
1189 (let* ((output (assoc-ref outputs "out"))
1190 (sharedir (string-append output "/share/gitolite"))
1191 (bindir (string-append output "/bin")))
1194 (invoke "./install" "-to" sharedir)
1195 ;; Create symlinks for executable scripts in /bin.
1196 (for-each (lambda (script)
1197 (symlink (string-append sharedir "/" script)
1198 (string-append bindir "/" script)))
1199 '("gitolite" "gitolite-shell"))
1201 (add-after 'install 'wrap-scripts
1202 (lambda* (#:key inputs outputs #:allow-other-keys)
1203 (let ((out (assoc-ref outputs "out"))
1204 (coreutils (assoc-ref inputs "coreutils"))
1205 (findutils (assoc-ref inputs "findutils"))
1206 (git (assoc-ref inputs "git")))
1207 (wrap-program (string-append out "/bin/gitolite")
1210 (string-append dir "/bin"))
1211 (list out coreutils findutils git))))
1215 ("coreutils" ,coreutils)
1216 ("findutils" ,findutils)
1217 ("inetutils" ,inetutils)))
1218 ;; git and openssh are propagated because trying to patch the source via
1219 ;; regexp matching is too brittle and prone to false positives.
1222 ("openssh" ,openssh)))
1223 (home-page "http://gitolite.com")
1224 (synopsis "Git access control layer")
1226 "Gitolite is an access control layer on top of Git, providing fine access
1227 control to Git repositories.")
1228 (license license:gpl2)))
1230 (define-public mercurial
1236 (uri (string-append "https://www.mercurial-scm.org/"
1237 "release/mercurial-" version ".tar.gz"))
1240 "1y60hfc8gh4ha9sw650qs7hndqmvbn0qxpmqwpn4q18z5xwm1f19"))))
1241 (build-system python-build-system)
1243 `(;; Restrict to Python 2, as Python 3 would require
1244 ;; the argument --c2to3.
1246 ;; FIXME: Disabled tests because they require the nose unit
1247 ;; testing framework: https://nose.readthedocs.org/en/latest/ .
1249 (home-page "https://www.mercurial-scm.org/")
1250 (synopsis "Decentralized version control system")
1252 "Mercurial is a free, distributed source control management tool.
1253 It efficiently handles projects of any size
1254 and offers an easy and intuitive interface.")
1255 (license license:gpl2+)))
1263 (uri (string-append "http://www.webdav.org/neon/neon-"
1267 "1jpvczcx658vimqm7c8my2q41fnmjaf1j03g7bsli6rjxk6xh2yv"))))
1268 (build-system gnu-build-system)
1271 ("pkg-config" ,pkg-config)))
1273 `(("libxml2" ,libxml2)
1274 ("openssl" ,openssl)
1277 `(;; FIXME: Add tests once reverse address lookup is fixed in glibc, see
1278 ;; https://sourceware.org/bugzilla/show_bug.cgi?id=16475
1280 #:configure-flags '("--enable-shared"
1281 ;; requires libgnutils-config, deprecated
1283 ; "--with-ssl=gnutls")))
1284 "--with-ssl=openssl")))
1285 (home-page "http://www.webdav.org/neon/")
1286 (synopsis "HTTP and WebDAV client library")
1288 "Neon is an HTTP and WebDAV client library, with a C interface and the
1291 @item High-level wrappers for common HTTP and WebDAV operations (GET, MOVE,
1293 @item low-level interface to the HTTP request/response engine, allowing the use
1294 of arbitrary HTTP methods, headers, etc.;
1295 @item authentication support including Basic and Digest support, along with
1296 GSSAPI-based Negotiate on Unix, and SSPI-based Negotiate/NTLM on Win32;
1297 @item SSL/TLS support using OpenSSL or GnuTLS, exposing an abstraction layer for
1298 verifying server certificates, handling client certificates, and examining
1299 certificate properties, smartcard-based client certificates are also
1300 supported via a PKCS#11 wrapper interface;
1301 @item abstract interface to parsing XML using libxml2 or expat, and wrappers for
1302 simplifying handling XML HTTP response bodies;
1303 @item WebDAV metadata support, wrappers for PROPFIND and PROPPATCH to simplify
1304 property manipulation.
1306 (license license:gpl2+))) ; for documentation and tests; source under lgpl2.0+
1308 (define-public subversion
1316 (string-append "https://archive.apache.org/dist/subversion/"
1317 "subversion-" version ".tar.bz2")
1318 (string-append "https://www-eu.apache.org/dist/subversion/"
1319 "subversion-" version ".tar.bz2")))
1322 "19zc215mhpnm92mlyl5jbv57r5zqp6cavr3s2g9yglp6j4kfgj0q"))))
1323 (build-system gnu-build-system)
1326 (modify-phases %standard-phases
1327 (add-after 'configure 'patch-libtool-wrapper-ls
1328 (lambda* (#:key inputs #:allow-other-keys)
1329 ;; This substitution allows tests svnauthz_tests and svnlook_tests
1330 ;; to pass. These tests execute svnauthz and svnlook through
1331 ;; their libtool wrapper scripts from svn hooks, whose empty
1332 ;; environments cause "ls: command not found" errors. It would be
1333 ;; nice if this fix ultimately made its way into libtool.
1334 (let ((coreutils (assoc-ref inputs "coreutils")))
1335 (substitute* "libtool"
1336 (("\\\\`ls") (string-append "\\`" coreutils "/bin/ls")))
1338 (add-before 'build 'patch-test-sh
1340 (substitute* "subversion/tests/libsvn_repos/repos-test.c"
1341 (("#!/bin/sh") (string-append "#!" (which "sh"))))
1343 (add-after 'install 'install-perl-bindings
1344 (lambda* (#:key outputs #:allow-other-keys)
1345 ;; Follow the instructions from 'subversion/bindings/swig/INSTALL'.
1346 (let ((out (assoc-ref outputs "out")))
1347 (invoke "make" "swig-pl-lib")
1348 ;; FIXME: Test failures.
1349 ;; (invoke "make" "check-swig-pl")
1350 (invoke "make" "install-swig-pl-lib")
1352 ;; Set the right installation prefix.
1353 (with-directory-excursion
1354 "subversion/bindings/swig/perl/native"
1355 (invoke "perl" "Makefile.PL"
1357 (string-append "PREFIX=" out))
1358 (invoke "make" "install"
1359 (string-append "OTHERLDFLAGS="
1363 `(("pkg-config" ,pkg-config)
1364 ;; For the Perl bindings.
1368 ("apr-util" ,apr-util)
1372 ("python" ,python-wrapper)
1374 ("utf8proc" ,utf8proc)
1376 (home-page "https://subversion.apache.org/")
1377 (synopsis "Revision control system")
1379 "@dfn{Subversion} (svn) exists to be recognized and adopted as a
1380 centralized version control system characterized by its
1381 reliability as a safe haven for valuable data; the simplicity of its model and
1382 usage; and its ability to support the needs of a wide variety of users and
1383 projects, from individuals to large-scale enterprise operations.")
1384 (license license:asl2.0)))
1392 (uri (string-append "mirror://gnu/rcs/rcs-"
1396 "1zsx7bb0rgvvvisiy4zlixf56ay8wbd9qqqcp1a1g0m1gl6mlg86"))
1397 (patches (search-patches "rcs-5.9.4-noreturn.patch"))))
1398 (build-system gnu-build-system)
1399 (native-inputs `(("ed" ,ed)))
1401 `(#:phases (modify-phases %standard-phases
1402 (add-before 'check 'disable-t810
1403 ;; See https://savannah.gnu.org/bugs/index.php?52288
1404 ;; Back-porting the fix is non-trivial, so disable for now.
1406 (substitute* "tests/Makefile"
1407 ((" t810 \\\\\n") ""))
1409 (home-page "https://www.gnu.org/software/rcs/")
1410 (synopsis "Per-file local revision control system")
1412 "RCS is the original Revision Control System. It works on a
1413 file-by-file basis, in contrast to subsequent version control systems such as
1414 CVS, Subversion, and Git. This can make it suitable for system
1415 administration files, for example, which are often inherently local to one
1417 (license license:gpl3+)))
1426 "https://ftp.gnu.org/non-gnu/cvs/source/feature/"
1427 version "/cvs-" version ".tar.bz2"))
1428 (patches (search-patches "cvs-CVE-2017-12836.patch"))
1431 "0pjir8cwn0087mxszzbsi1gyfc6373vif96cw4q3m1x6p49kd1bq"))))
1432 (build-system gnu-build-system)
1434 ;; XXX: The test suite looks flawed, and the package is obsolete anyway.
1436 #:configure-flags (list "--with-external-zlib")))
1437 (inputs `(("zlib" ,zlib)
1438 ("nano" ,nano))) ; the default editor
1439 (home-page "http://cvs.nongnu.org")
1440 (synopsis "Historical centralized version control system")
1442 "CVS is a version control system, an important component of Source
1443 Configuration Management (SCM). Using it, you can record the history of
1444 sources files, and documents. It fills a similar role to the free software
1445 RCS, PRCS, and Aegis packages.")
1446 (license license:gpl1+)))
1448 (define-public cvs-fast-export
1450 (name "cvs-fast-export")
1454 (uri (string-append "http://www.catb.org/~esr/cvs-fast-export/"
1455 "cvs-fast-export-" version ".tar.gz"))
1458 "19pxg6p0pcgyd2fbnh3wy1kazv6vcfi5lzc2whhdi1w9kj4r9c4z"))))
1459 (build-system gnu-build-system)
1462 (modify-phases %standard-phases
1463 (delete 'configure) ; no configure script
1464 (add-after 'unpack 'remove-optimizations
1466 ;; Don't optimize for a specific processor architecture.
1467 (substitute* "Makefile"
1468 (("CFLAGS \\+= -march=native") ""))
1470 #:parallel-build? #f ; parallel a2x commands fail spectacularly
1472 (list "CC=gcc" (string-append "prefix?=" (assoc-ref %outputs "out")))))
1473 (inputs `(("git" ,git)))
1474 (native-inputs `(("asciidoc" ,asciidoc)
1475 ;; These are needed for the tests.
1477 ("python" ,python-2)
1479 (home-page "http://www.catb.org/esr/cvs-fast-export/")
1480 (synopsis "Export an RCS or CVS history as a fast-import stream")
1481 (description "This program analyzes a collection of RCS files in a CVS
1482 repository (or outside of one) and, when possible, emits an equivalent history
1483 in the form of a fast-import stream. Not all possible histories can be
1484 rendered this way; the program tries to emit useful warnings when it can't.
1486 The program can also produce a visualization of the resulting commit directed
1487 acyclic graph (DAG) in the input format of @uref{http://www.graphviz.org,
1488 Graphviz}. The package also includes @command{cvssync}, a tool for mirroring
1489 masters from remote CVS hosts.")
1490 (license license:gpl2+)))
1492 (define-public vc-dwim
1498 (uri (string-append "mirror://gnu/vc-dwim/vc-dwim-"
1502 "0d5sqafc40l878m8wjr35jxmalj4kam1m6ph60v08ng4ml5g7931"))))
1503 (build-system gnu-build-system)
1504 (inputs `(("perl" ,perl)
1505 ("inetutils" ,inetutils))) ; for `hostname', used in the tests
1506 (native-inputs `(("emacs" ,emacs-minimal))) ; for `ctags'
1507 (home-page "https://www.gnu.org/software/vc-dwim/")
1508 (synopsis "Version-control-agnostic ChangeLog diff and commit tool")
1510 "The vc-dwim package contains two tools, \"vc-dwim\" and \"vc-chlog\".
1511 vc-dwim is a tool that simplifies the task of maintaining a ChangeLog and
1512 using version control at the same time, for example by printing a reminder
1513 when a file change has been described in the ChangeLog but the file has not
1514 been added to the VC. vc-chlog scans changed files and generates
1515 standards-compliant ChangeLog entries based on the changes that it detects.")
1516 (license license:gpl3+)))
1518 (define-public diffstat
1526 (string-append "ftp://invisible-island.net/diffstat/"
1527 name "-" version ".tgz")
1528 (string-append "http://invisible-mirror.net/archives/diffstat/"
1529 name "-" version ".tgz")))
1532 "07sr482y6iw7n7ddkba0w51kbjc99snvnijkn5ba2xzd8hv1h2bz"))))
1533 (build-system gnu-build-system)
1534 (home-page "https://invisible-island.net/diffstat/")
1535 (synopsis "Make histograms from the output of @command{diff}")
1537 "Diffstat reads the output of @command{diff} and displays a histogram of
1538 the insertions, deletions, and modifications per file. It is useful for
1539 reviewing large, complex patch files.")
1540 (license (license:x11-style "file://COPYING"))))
1548 (uri (string-append "mirror://gnu/" name "/CSSC-"
1552 "1vsisqq573xjr2qpn19iwmpqgl3mq03m790akpa4rvj60b4d1gni"))))
1553 (build-system gnu-build-system)
1556 (modify-phases %standard-phases
1557 (add-before 'check 'precheck
1560 (substitute* "tests/common/test-common"
1561 (("/bin/pwd") (which "pwd")))
1563 (substitute* "tests/prt/all-512.sh"
1564 (("/bin/sh") (which "sh")))
1566 ;; XXX: This test has no hope of passing until there is a "nogroup"
1567 ;; entry (or at least some group to which the guix builder does
1568 ;; not belong) in the /etc/group file of the build environment.
1569 ;; Currently we do not have such a group. Disable this test for now.
1570 (substitute* "tests/Makefile"
1571 (("test-delta ") ""))))))))
1572 ;; These are needed for the tests
1573 (native-inputs `(("git" ,git)
1575 (home-page "https://www.gnu.org/software/cssc/")
1576 (synopsis "File-based version control like SCCS")
1577 (description "GNU CSSC provides a replacement for the legacy Unix source
1578 code control system SCCS. This allows old code still under that system to be
1579 accessed and migrated on modern systems.")
1580 (license license:gpl3+)))
1582 ;; This package can unfortunately work only in -TEST mode, since Aegis
1583 ;; requires that it is installed setuid root.
1584 (define-public aegis
1590 (uri (string-append "mirror://sourceforge/aegis/aegis/" version
1591 "/aegis-" version ".tar.gz"))
1594 "18s86ssarfmc4l17gbpzybca29m5wa37cbaimdji8czlcry3mcjl"))
1595 (patches (search-patches "aegis-perl-tempdir1.patch"
1596 "aegis-perl-tempdir2.patch"
1597 "aegis-test-fixup-1.patch"
1598 "aegis-test-fixup-2.patch"
1599 "aegis-constness-error.patch"))))
1600 (build-system gnu-build-system)
1602 `(("e2fsprogs" ,e2fsprogs)
1605 ("libxml2" ,libxml2)
1607 ("gettext" ,gettext-minimal)))
1612 ;; Various tests require the following:
1616 ("subversion" ,subversion)
1620 `(#:configure-flags (list "--with-no-aegis-configured"
1621 "--sharedstatedir=/var/com/aegis")
1622 #:parallel-build? #f ; There are some nasty racy rules in the Makefile.
1624 (modify-phases %standard-phases
1625 (add-before 'configure 'pre-conf
1627 (substitute* (append '("configure"
1628 "etc/check-tar-gz.sh"
1632 "script/aebisect.in"
1633 "script/aeintegratq.in"
1635 "script/test_funcs.in"
1636 "web/eg_oss_templ.sh"
1638 "libaegis/getpw_cache.cc")
1639 (find-files "test" "\\.sh"))
1640 (("/bin/sh") (which "sh")))
1641 (setenv "SH" (which "sh"))
1645 (let ((home (string-append (getcwd) "/my-new-home")))
1646 ;; Some tests need to write to $HOME.
1648 (setenv "HOME" home)
1650 ;; This test assumes that flex has been symlinked to "lex".
1651 (substitute* "test/00/t0011a.sh"
1652 (("type lex") "type flex"))
1654 ;; XXX Disable tests that fail, for unknown reasons, ‘for now’.
1656 (lambda (test) (substitute* "Makefile"
1657 (((string-append "test/" test "\\.ES ")) "")))
1662 ;; The author decided to call the check rule "sure".
1663 (invoke "make" "sure")))))))
1664 (home-page "http://aegis.sourceforge.net")
1665 (synopsis "Project change supervisor")
1666 (description "Aegis is a project change supervisor, and performs some of
1667 the Software Configuration Management needed in a CASE environment. Aegis
1668 provides a framework within which a team of developers may work on many
1669 changes to a program independently, and Aegis coordinates integrating these
1670 changes back into the master source of the program, with as little disruption
1671 as possible. Resolution of contention for source files, a major headache for
1672 any project with more than one developer, is one of Aegis's major functions.")
1673 (license license:gpl3+)))
1675 (define-public reposurgeon
1677 (name "reposurgeon")
1681 (uri (string-append "http://www.catb.org/~esr/" name "/"
1682 name "-" version ".tar.xz"))
1685 "1af0z14wcm4bk5a9ysinbwq2fp3lf5f7i8mvwh7286hr3fnagcaz"))
1686 (patches (search-patches
1687 "reposurgeon-add-missing-docbook-files.patch"))))
1688 (build-system gnu-build-system)
1692 (string-append "target=" (assoc-ref %outputs "out")))
1694 (modify-phases %standard-phases
1695 (add-after 'unpack 'patch-inputs
1696 (lambda* (#:key inputs #:allow-other-keys)
1697 (let ((tzdata (assoc-ref inputs "tzdata")))
1698 (substitute* "reposurgeon"
1699 (("/usr/share/zoneinfo")
1700 (string-append tzdata "/share/zoneinfo")))
1701 (substitute* "test/svn-to-svn"
1702 (("/bin/echo") "echo"))
1704 (delete 'configure) ; no configure script
1705 (add-before 'build 'fix-docbook
1706 (lambda* (#:key inputs #:allow-other-keys)
1707 (substitute* (find-files "." "\\.xml$")
1708 (("docbook/docbookx.dtd")
1709 (string-append (assoc-ref inputs "docbook-xml")
1710 "/xml/dtd/docbook/docbookx.dtd")))
1712 (add-before 'check 'set-up-test-environment
1713 (lambda* (#:key inputs #:allow-other-keys)
1714 (let ((tzdata (assoc-ref inputs "tzdata")))
1715 (setenv "TZDIR" (string-append tzdata "/share/zoneinfo"))
1717 (add-after 'install 'install-emacs-data
1718 (lambda* (#:key outputs #:allow-other-keys)
1719 (install-file "reposurgeon-mode.el"
1720 (string-append (assoc-ref outputs "out")
1721 "/share/emacs/site-lisp"))
1724 `(("python" ,python-wrapper)
1725 ("tzdata" ,tzdata)))
1727 `( ;; For building documentation.
1728 ("asciidoc" ,asciidoc)
1729 ("docbook-xml" ,docbook-xml)
1730 ("docbook-xsl" ,docbook-xsl)
1731 ("libxml2" ,libxml2)
1737 ("mercurial" ,mercurial)
1738 ("subversion" ,subversion)))
1739 (home-page "http://www.catb.org/~esr/reposurgeon/")
1740 (synopsis "Edit version-control repository history")
1741 (description "Reposurgeon enables risky operations that version-control
1742 systems don't want to let you do, such as editing past comments and metadata
1743 and removing commits. It works with any version control system that can
1744 export and import Git fast-import streams, including Git, Mercurial, Fossil,
1745 Bazaar, CVS, RCS, and Src. It can also read Subversion dump files directly
1746 and can thus be used to script production of very high-quality conversions
1747 from Subversion to any supported Distributed Version Control System (DVCS).")
1748 ;; Most files are distributed under bsd-2, except 'repocutter' which is
1750 (license (list license:bsd-2 license:bsd-3))))
1759 "https://github.com/jonas/tig/releases/download/tig-"
1760 version "/tig-" version ".tar.gz"))
1763 "1f2qhpzbl7f35lsjcnx8lxzskha24m4frczsw78284jp7qcamdmn"))))
1764 (build-system gnu-build-system)
1766 `(("asciidoc" ,asciidoc)
1769 `(("ncurses" ,ncurses)
1770 ("readline" ,readline)))
1773 (modify-phases %standard-phases
1774 (add-after 'install 'install-doc
1776 (invoke "make" "install-doc"))))
1777 #:tests? #f)) ; tests require access to /dev/tty
1778 ;; #:test-target "test"))
1779 (home-page "https://jonas.github.io/tig/")
1780 (synopsis "Ncurses-based text user interface for Git")
1782 "Tig is an ncurses text user interface for Git, primarily intended as
1783 a history browser. It can also stage hunks for commit, or colorize the
1784 output of the @code{git} command.")
1785 (license license:gpl2+)))
1787 (define-public findnewest
1795 (url "https://github.com/0-wiz-0/findnewest.git")
1796 (commit (string-append "findnewest-" version))))
1797 (file-name (git-file-name name version))
1799 (base32 "1x1cbn2b27h5r0ah5xc06fkalfdci2ngrgd4wibxjw0h88h0nvgq"))))
1800 (build-system gnu-build-system)
1801 (native-inputs `(("autoconf" ,autoconf)
1802 ("automake" ,automake)))
1803 (home-page "https://github.com/0-wiz-0/findnewest/releases")
1804 (synopsis "Print the modification time of the latest file")
1806 "Recursively find the newest file in a file tree and print its
1807 modification time.")
1808 (license license:bsd-2)))
1810 (define-public myrepos
1813 (version "1.20180726")
1818 (url "git://myrepos.branchable.com/myrepos")
1820 (file-name (string-append name "-" version "-checkout"))
1822 (base32 "0jphw61plm8cgklja6hs639xhdvxgvjwbr6jpvjwpp7hc5gmhms5"))))
1823 (build-system gnu-build-system)
1825 '(#:test-target "test"
1826 #:make-flags (list (string-append "PREFIX=" %output))
1828 (modify-phases %standard-phases
1830 (add-after 'install 'wrap-webcheckout
1831 (lambda* (#:key inputs outputs #:allow-other-keys)
1832 (let ((out (assoc-ref outputs "out")))
1833 (wrap-program (string-append out "/bin/webcheckout")
1834 `("PERL5LIB" ":" prefix
1835 ,(map (lambda (i) (string-append (assoc-ref inputs i)
1836 "/lib/perl5/site_perl"))
1837 '("perl-encode-locale" "perl-http-date"
1838 "perl-http-message" "perl-html-parser" "perl-libwww"
1839 "perl-uri" "perl-try-tiny"))))
1843 ("perl-encode-locale" ,perl-encode-locale)
1844 ("perl-html-parser" ,perl-html-parser)
1845 ("perl-http-date" ,perl-http-date)
1846 ("perl-http-message" ,perl-http-message)
1847 ("perl-libwww" ,perl-libwww)
1848 ("perl-try-tiny" ,perl-try-tiny)
1849 ("perl-uri" ,perl-uri)))
1850 (home-page "https://myrepos.branchable.com/")
1851 (synopsis "Multiple repository management tool")
1853 "Myrepos provides the @code{mr} command, which maps an operation (e.g.,
1854 fetching updates) over a collection of version control repositories. It
1855 supports a large number of version control systems: Git, Subversion,
1856 Mercurial, Bazaar, Darcs, CVS, Fossil, and Veracity.")
1857 (license license:gpl2+)))
1859 (define-public git-annex-remote-hubic
1861 (name "git-annex-remote-hubic")
1867 (url "https://github.com/Schnouki/git-annex-remote-hubic.git")
1868 (commit (string-append "v" version))))
1869 (file-name (git-file-name name version))
1871 (base32 "16y9sk67hfi17h9n2kkffyabfccksh5rab40hhk69v6cxmbpn2sx"))))
1872 (build-system python-build-system)
1873 (arguments `(#:python ,python-2))
1876 ("python2-six" ,python2-six)))
1878 `(("python2-dateutil" ,python2-dateutil)
1879 ("python2-futures" ,python2-futures)
1880 ("python2-rauth" ,python2-rauth)
1881 ("python2-swiftclient" ,python2-swiftclient)))
1882 (home-page "https://github.com/Schnouki/git-annex-remote-hubic/")
1883 (synopsis "Use hubic as a git-annex remote")
1885 "This package allows you to use your hubic account as a \"special
1886 repository\" with git-annex.")
1887 (license license:gpl3+)))
1889 (define-public git-annex-remote-rclone
1891 (name "git-annex-remote-rclone")
1897 (url "https://github.com/DanielDent/git-annex-remote-rclone.git")
1898 (commit (string-append "v" version))))
1899 (file-name (git-file-name name version))
1902 "0j0hlxji8d974fq7zd4xc02n0jpi31ylhxc7z4zp8iiwad5mkpxp"))))
1903 (build-system trivial-build-system)
1905 `(#:modules ((guix build utils))
1908 (use-modules (guix build utils))
1909 (let ((bash (string-append (assoc-ref %build-inputs "bash")
1911 (rclone (string-append (assoc-ref %build-inputs "rclone")
1913 (copy-file (string-append (assoc-ref %build-inputs "source")
1914 "/git-annex-remote-rclone")
1915 "git-annex-remote-rclone")
1916 (substitute* "git-annex-remote-rclone"
1917 (("/bin/bash") bash)
1918 (("runcmd rclone") (string-append "runcmd " rclone)))
1919 (install-file "git-annex-remote-rclone"
1920 (string-append %output "/bin"))
1924 ("rclone" ,rclone)))
1925 (home-page "https://github.com/DanielDent/git-annex-remote-rclone")
1926 (synopsis "Use rclone-supported cloud storage providers with git-annex")
1927 (description "This wrapper around rclone makes any destination supported
1928 by rclone usable with git-annex.")
1929 (license license:gpl3+)))
1931 (define-public fossil
1938 ;; Older downloads are moved to another URL.
1941 "https://www.fossil-scm.org/index.html/uv/download/"
1942 "fossil-src-" version ".tar.gz")
1944 "https://www.fossil-scm.org/index.html/uv/"
1945 "fossil-src-" version ".tar.gz")))
1948 "0pbinf8d2kj1j7niblhzjd2l2khg6r2pn2xvig6gavz27p3vwcka"))
1949 (modules '((guix build utils)))
1952 (delete-file-recursively "compat") #t))))
1953 (build-system gnu-build-system)
1955 `(("tcl" ,tcl) ;for configuration only
1956 ("which" ,which) ;for tests only
1959 `(("openssl" ,openssl)
1961 ("sqlite" ,sqlite)))
1963 `(#:configure-flags (list "--with-openssl=auto"
1964 "--disable-internal-sqlite")
1965 #:test-target "test"
1966 #:phases (modify-phases %standard-phases
1967 (add-after 'patch-source-shebangs 'patch-sh
1969 (substitute* '("auto.def")
1970 (("/bin/sh") (which "sh")))
1973 (lambda* (#:key outputs (configure-flags '())
1975 ;; The 'configure' script is not an autoconf script and
1976 ;; chokes on unrecognized options.
1979 (string-append "--prefix="
1980 (assoc-ref outputs "out"))
1983 (add-before 'check 'test-setup
1985 (setenv "USER" "guix")
1988 (home-page "https://fossil-scm.org")
1989 (synopsis "Software configuration management system")
1991 "Fossil is a distributed source control management system which supports
1992 access and administration over HTTP CGI or via a built-in HTTP server. It has
1993 a built-in wiki, built-in file browsing, built-in tickets system, etc.")
1994 (license (list license:public-domain ;src/miniz.c, src/shell.c
1997 (define-public stagit
2003 (uri (string-append "https://dl.2f30.org/releases/"
2004 name "-" version ".tar.gz"))
2007 "1m3s9g1z9szbjrhm8sic91xh6f2bfpi56rskdkqd5wc4wdycpyi5"))))
2008 (build-system gnu-build-system)
2010 `(#:tests? #f ; No tests
2011 #:make-flags (list "CC=gcc"
2012 (string-append "PREFIX=" %output))
2014 (modify-phases %standard-phases
2015 (delete 'configure)))) ; No configure script
2017 `(("libgit2" ,libgit2)))
2018 (home-page "https://2f30.org/")
2019 (synopsis "Static git page generator")
2020 (description "Stagit creates static pages for git repositories, the results can
2021 be served with a HTTP file server of your choice.")
2022 (license license:expat)))
2024 (define-public gource
2031 "https://github.com/acaudwell/Gource/releases/download"
2032 "/gource-" version "/gource-" version ".tar.gz"))
2035 "12hf5ipcsp9dxsqn84n4kr63xaiskrnf5a084wr29qk171lj7pd9"))))
2036 (build-system gnu-build-system)
2039 (list (string-append "--with-boost-libdir="
2040 (assoc-ref %build-inputs "boost")
2043 `(("pkg-config" ,pkg-config)))
2053 ("sdl-union" ,(sdl-union (list sdl2 sdl2-image)))))
2054 (home-page "http://gource.io/")
2055 (synopsis "3D visualisation tool for source control repositories")
2056 (description "@code{gource} provides a software version control
2057 visualization. The repository is displayed as a tree where the root of the
2058 repository is the centre, directories are branches and files are leaves.
2059 Contributors to the source code appear and disappear as they contribute to
2060 specific files and directories.")
2061 (license license:gpl3+)))
2070 "http://www.catb.org/~esr/src/src-" version ".tar.gz"))
2073 "0n0skhvya8w2az45h2gsafxy8m2mvqas64nrgxifcmrzfv0rf26c"))))
2074 (build-system gnu-build-system)
2077 (list (string-append "prefix=" (assoc-ref %outputs "out")))
2079 (modify-phases %standard-phases
2080 (delete 'configure) ; no 'configure' script
2081 (add-after 'install 'wrap-program
2082 (lambda* (#:key inputs outputs #:allow-other-keys)
2083 (let* ((out (assoc-ref outputs "out"))
2084 (prog (string-append out "/bin/src"))
2085 (rcs (assoc-ref inputs "rcs")))
2087 `("PATH" ":" prefix (,(string-append rcs "/bin"))))
2091 (setenv "HOME" (getenv "TMPDIR"))
2092 (invoke "git" "config" "--global" "user.name" "guix")
2093 (invoke "git" "config" "--global" "user.email" "guix")
2094 (invoke "./srctest"))))))
2100 `(("python" ,python-wrapper)
2102 (synopsis "Simple revision control")
2103 (home-page "http://www.catb.org/~esr/src/")
2105 "SRC (or src) is simple revision control, a version-control system for
2106 single-file projects by solo developers and authors. It modernizes the
2107 venerable RCS, hence the anagrammatic acronym. The design is tuned for use
2108 cases like all those little scripts in your @file{~/bin} directory, or a
2109 directory full of HOWTOs.")
2110 (license license:bsd-2)))
2112 (define-public git-when-merged
2113 ;; Use an unreleased version to get a PY3 compatibility fix.
2114 (let ((commit "ab6af7865a0ba55ba364a6c507e0be6f84f31c6d"))
2116 (name "git-when-merged")
2117 (version (string-append "1.2.0-" (string-take commit 7)))
2121 (url "https://github.com/mhagger/git-when-merged/")
2123 (file-name (git-file-name name version))
2126 "0iyk2psf97bc9h43m89p3xjmm79fsx99i7px29g4lcnmdy5kmz0p"))))
2127 (build-system gnu-build-system)
2129 `(#:tests? #f ; there are no tests
2131 (modify-phases %standard-phases
2135 (lambda* (#:key outputs #:allow-other-keys)
2136 (install-file "bin/git-when-merged"
2137 (string-append (assoc-ref outputs "out")
2140 (add-before 'install 'patch-git
2141 (lambda* (#:key inputs #:allow-other-keys)
2142 (let ((git (string-append (assoc-ref inputs "git")
2144 (substitute* "bin/git-when-merged"
2145 (("'git'") (string-append "'" git "'")))
2147 (add-after 'install 'wrap-script
2148 (lambda* (#:key outputs #:allow-other-keys)
2149 (wrap-program (string-append (assoc-ref outputs "out")
2150 "/bin/git-when-merged")
2151 `("PYTHONPATH" ":" prefix (,(getenv "PYTHONPATH"))))
2155 ("python" ,python-wrapper)))
2156 (home-page "https://github.com/mhagger/git-when-merged")
2157 (synopsis "Determine when a commit was merged into a Git branch")
2158 (description "This Git extension defines a subcommand,
2159 @code{when-merged}, whose core operation is to find the merge that brought a
2160 given commit into the specified ref(s). It has various options that control
2161 how information about the merge is displayed.")
2162 (license license:gpl2+))))
2164 (define-public git-imerge
2172 (url "https://github.com/mhagger/git-imerge.git")
2173 (commit (string-append "v" version))))
2174 (file-name (git-file-name name version))
2176 (base32 "0vi1w3f0yk4gqhxj2hzqafqq28rihyhyfnp8x7xzib96j2si14a4"))))
2177 (build-system gnu-build-system)
2179 `(#:tests? #f ; only manual test scripts
2180 #:make-flags (list (string-append "DESTDIR=" %output)
2183 (modify-phases %standard-phases
2185 (add-before 'install 'patch-git
2186 (lambda* (#:key inputs #:allow-other-keys)
2187 (let ((git (string-append (assoc-ref inputs "git")
2189 (substitute* "git-imerge"
2190 (("'git'") (string-append "'" git "'")))
2192 (add-after 'install 'wrap-script
2193 (lambda* (#:key outputs #:allow-other-keys)
2194 (wrap-program (string-append (assoc-ref outputs "out")
2196 `("PYTHONPATH" ":" prefix (,(getenv "PYTHONPATH"))))
2200 ("python" ,python-wrapper)))
2201 (home-page "https://github.com/mhagger/git-imerge")
2202 (synopsis "Incremental merge for Git")
2203 (description "This Git extension defines a subcommand, @code{imerge},
2204 which performs an incremental merge between two branches. Its two primary
2205 design goals are to reduce the pain of resolving merge conflicts by finding
2206 the smallest possible conflicts and to allow a merge to be saved, tested,
2207 interrupted, published, and collaborated on while in progress.")
2208 (license license:gpl2+)))
2210 (define-public git-lfs
2217 (url "https://github.com/git-lfs/git-lfs")
2218 (commit (string-append "v" version))))
2219 (file-name (git-file-name name version))
2222 "1nf40rbdz901vsahg5cm09pznpina6wimmxl0lmh8pn0mi51yzvc"))))
2223 (build-system go-build-system)
2225 '(#:import-path "github.com/git-lfs/git-lfs"))
2226 (home-page "https://git-lfs.github.com/")
2227 (synopsis "Git extension for versioning large files")
2229 "Git Large File Storage (LFS) replaces large files such as audio samples,
2230 videos, datasets, and graphics with text pointers inside Git, while storing the
2231 file contents on a remote server.")
2232 (license license:expat)))