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, 2020 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>
28 ;;; Copyright © 2020 Roel Janssen <roel@gnu.org>
29 ;;; Copyright © 2020 Brice Waegeneire <brice@waegenei.re>
31 ;;; This file is part of GNU Guix.
33 ;;; GNU Guix is free software; you can redistribute it and/or modify it
34 ;;; under the terms of the GNU General Public License as published by
35 ;;; the Free Software Foundation; either version 3 of the License, or (at
36 ;;; your option) any later version.
38 ;;; GNU Guix is distributed in the hope that it will be useful, but
39 ;;; WITHOUT ANY WARRANTY; without even the implied warranty of
40 ;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
41 ;;; GNU General Public License for more details.
43 ;;; You should have received a copy of the GNU General Public License
44 ;;; along with GNU Guix. If not, see <http://www.gnu.org/licenses/>.
46 (define-module (gnu packages version-control)
47 #:use-module ((guix licenses) #:prefix license:)
48 #:use-module (guix utils)
49 #:use-module (guix packages)
50 #:use-module (guix download)
51 #:use-module (guix git-download)
52 #:use-module (guix build-system cmake)
53 #:use-module (guix build-system gnu)
54 #:use-module (guix build-system go)
55 #:use-module (guix build-system python)
56 #:use-module (guix build-system trivial)
57 #:use-module (gnu packages apr)
58 #:use-module (gnu packages autotools)
59 #:use-module (gnu packages documentation)
60 #:use-module (gnu packages base)
61 #:use-module (gnu packages bash)
62 #:use-module (gnu packages bison)
63 #:use-module (gnu packages boost)
64 #:use-module (gnu packages check)
65 #:use-module (gnu packages cook)
66 #:use-module (gnu packages curl)
67 #:use-module (gnu packages docbook)
68 #:use-module (gnu packages ed)
69 #:use-module (gnu packages file)
70 #:use-module (gnu packages flex)
71 #:use-module (gnu packages gettext)
72 #:use-module (gnu packages gl)
73 #:use-module (gnu packages groff)
74 #:use-module (gnu packages guile)
75 #:use-module (gnu packages image)
76 #:use-module (gnu packages linux)
77 #:use-module (gnu packages mail)
78 #:use-module (gnu packages maths)
79 #:use-module (gnu packages nano)
80 #:use-module (gnu packages ncurses)
81 #:use-module (gnu packages ssh)
82 #:use-module (gnu packages web)
83 #:use-module (gnu packages openstack)
84 #:use-module (gnu packages pcre)
85 #:use-module (gnu packages perl)
86 #:use-module (gnu packages perl-check)
87 #:use-module (gnu packages pkg-config)
88 #:use-module (gnu packages python)
89 #:use-module (gnu packages python-web)
90 #:use-module (gnu packages python-xyz)
91 #:use-module (gnu packages readline)
92 #:use-module (gnu packages rsync)
93 #:use-module (gnu packages sqlite)
94 #:use-module (gnu packages admin)
95 #:use-module (gnu packages xml)
96 #:use-module (gnu packages emacs)
97 #:use-module (gnu packages compression)
98 #:use-module (gnu packages sdl)
99 #:use-module (gnu packages swig)
100 #:use-module (gnu packages sync)
101 #:use-module (gnu packages tcl)
102 #:use-module (gnu packages textutils)
103 #:use-module (gnu packages time)
104 #:use-module (gnu packages tls)
105 #:use-module (gnu packages)
106 #:use-module (ice-9 match)
107 #:use-module (srfi srfi-1))
109 (define-public bazaar
116 (uri (string-append "https://launchpad.net/bzr/"
117 (version-major+minor version) "/" version
118 "/+download/bzr-" version ".tar.gz"))
119 (patches (search-patches "bazaar-CVE-2017-14176.patch"))
122 "1cysix5k3wa6y7jjck3ckq3abls4gvz570s0v0hxv805nwki4i8d"))))
123 (build-system python-build-system)
125 ;; Note: 'tools/packaging/lp-upload-release' and 'tools/weavemerge.sh'
127 `(("gettext" ,gettext-minimal)))
129 `(#:tests? #f ; no test target
130 #:python ,python-2 ; Python 3 apparently not yet supported, see
131 ; https://answers.launchpad.net/bzr/+question/229048
133 (modify-phases %standard-phases
134 (add-after 'unpack 'fix-mandir
136 (substitute* "setup.py"
137 (("man/man1") "share/man/man1"))
139 (home-page "https://gnu.org/software/bazaar")
140 (synopsis "Version control system supporting both distributed and centralized workflows")
142 "GNU Bazaar is a version control system that allows you to record
143 changes to project files over time. It supports both a distributed workflow
144 as well as the classic centralized workflow.")
145 (license license:gpl2+)))
150 ;; XXX When updating Git, check if the special 'git-source' input to cgit
151 ;; needs to be updated as well.
155 (uri (string-append "mirror://kernel.org/software/scm/git/git-"
159 "1l58v42aazj0x9276gk8r9mwyl9pgp9w99aakz4xfhzv7wd2jq60"))))
160 (build-system gnu-build-system)
162 `(("native-perl" ,perl)
163 ("gettext" ,gettext-minimal)
168 "mirror://kernel.org/software/scm/git/git-manpages-"
172 "1gf8b1k6i4dlwskwq7dd2vz9bzc3m1qnknj9daq2vp39vmxpg5nk"))))
173 ;; For subtree documentation.
174 ("asciidoc" ,asciidoc)
175 ("docbook-xsl" ,docbook-xsl)
182 ("python" ,python-2) ; CAVEAT: incompatible with python-3 according to INSTALL
185 ;; Note: we keep this in inputs rather than native-inputs to work around
186 ;; a problem in 'patch-shebangs'; see <https://bugs.gnu.org/31952>.
187 ("bash-for-tests" ,bash)
189 ;; For PCRE support in git grep (USE_LIBPCRE2).
193 ("perl-cgi" ,perl-cgi)
196 ("subversion" ,subversion)
197 ("perl-term-readkey" ,perl-term-readkey)
199 ;; For 'git-send-email'.
200 ("perl-authen-sasl" ,perl-authen-sasl)
201 ("perl-net-smtp-ssl" ,perl-net-smtp-ssl)
202 ("perl-io-socket-ssl" ,perl-io-socket-ssl)
204 ;; For 'git gui', 'gitk', and 'git citool'.
207 (outputs '("out" ; the core
208 "send-email" ; for git-send-email
210 "credential-netrc" ; git-credential-netrc
211 "subtree" ; git-subtree
212 "gui")) ; gitk, git gui
214 `(#:make-flags `("V=1" ;more verbose compilation
216 ,(string-append "SHELL_PATH="
217 (assoc-ref %build-inputs "bash")
220 ;; Tests require a bash with completion support.
221 ,(string-append "TEST_SHELL_PATH="
222 (assoc-ref %build-inputs "bash-for-tests")
227 ;; By default 'make install' creates hard links for
228 ;; things in 'libexec/git-core', which leads to huge
229 ;; nars; see <https://bugs.gnu.org/21949>.
230 "NO_INSTALL_HARDLINKS=indeed")
232 ;; Make sure the full bash does not end up in the final closure.
233 #:disallowed-references (,bash)
237 ;; Tests fail randomly when parallel: <https://bugs.gnu.org/29512>.
240 ;; The explicit --with-tcltk forces the build system to hardcode the
241 ;; absolute file name to 'wish'.
242 #:configure-flags (list (string-append "--with-tcltk="
243 (assoc-ref %build-inputs "tk")
244 "/bin/wish8.6")) ; XXX
246 #:modules ((srfi srfi-1)
248 ,@%gnu-build-system-modules)
250 (modify-phases %standard-phases
251 (add-after 'unpack 'modify-PATH
252 (lambda* (#:key inputs #:allow-other-keys)
253 (let ((path (string-split (getenv "PATH") #\:))
254 (bash-full (assoc-ref inputs "bash-for-tests")))
255 ;; Drop the test bash from PATH so that (which "sh") and
256 ;; similar does the right thing.
257 (setenv "PATH" (string-join
258 (remove (cut string-prefix? bash-full <>) path)
261 (add-after 'configure 'patch-makefiles
263 (substitute* "Makefile"
264 (("/usr/bin/perl") (which "perl"))
265 (("/usr/bin/python") (which "python")))
267 (add-after 'configure 'add-PM.stamp
269 ;; Add the "PM.stamp" to avoid "no rule to make target".
270 (call-with-output-file "perl/PM.stamp" (const #t))
272 (add-after 'build 'build-subtree
273 (lambda* (#:key inputs #:allow-other-keys)
274 (with-directory-excursion "contrib/subtree"
275 (substitute* "Makefile"
276 ;; Apparently `xmlto' does not bother to looks up the stylesheets
277 ;; specified in the XML, unlike the above substitution. Instead it
278 ;; uses a hard-coded URL. Work around it here, but if this is
279 ;; common perhaps we should hardcode this path in xmlto itself.
280 (("\\$\\(XMLTO\\) -m \\$\\(MANPAGE_XSL\\) man")
281 (string-append "$(XMLTO) -x "
282 (string-append (assoc-ref inputs "docbook-xsl")
283 "/xml/xsl/docbook-xsl-"
284 ,(package-version docbook-xsl))
285 "/manpages/docbook.xsl -m $(MANPAGE_XSL) man")))
287 (invoke "make" "install")
288 (invoke "make" "install-doc")
289 (substitute* "git-subtree"
290 (("/bin/sh") (which "sh"))))
292 (add-before 'check 'patch-tests
294 (let ((store-directory (%store-directory)))
295 ;; These files contain some funny bytes that Guile is unable
296 ;; to decode for shebang patching. Just delete them.
297 (for-each delete-file '("t/t4201-shortlog.sh"
298 "t/t7813-grep-icase-iso.sh"))
299 ;; Many tests contain inline shell scripts (hooks etc).
300 (substitute* (find-files "t" "\\.sh$")
301 (("#!/bin/sh") (string-append "#!" (which "sh"))))
302 ;; Un-do shebang patching here to prevent checksum mismatch.
303 (substitute* '("t/t4034/perl/pre" "t/t4034/perl/post")
304 (("^#!.*/bin/perl") "#!/usr/bin/perl"))
305 (substitute* "t/t5003-archive-zip.sh"
306 (("cp /bin/sh") (string-append "cp " (which "sh"))))
307 (substitute* "t/t6030-bisect-porcelain.sh"
308 (("\"/bin/sh\"") (string-append "\"" (which "sh") "\"")))
309 ;; FIXME: This test runs `git commit` with a bogus EDITOR
310 ;; and empty commit message, but does not fail the way it's
311 ;; expected to. The test passes when invoked interactively.
312 (substitute* "t/t7508-status.sh"
313 (("\tcommit_template_commented") "\ttrue"))
314 ;; More checksum mismatches due to odd shebangs.
315 (substitute* "t/t9100-git-svn-basic.sh"
316 (((string-append "\"#!" store-directory ".*/bin/sh")) "\"#!/bin/sh") )
317 (substitute* "t/t9300-fast-import.sh"
318 (((string-append "\t#!" store-directory ".*/bin/sh")) "\t#!/bin/sh")
319 (((string-append "'#!" store-directory ".*/bin/sh")) "'#!/bin/sh"))
320 ;; FIXME: Some hooks fail with "basename: command not found".
321 ;; See 't/trash directory.t9164.../svn-hook.log'.
322 (delete-file "t/t9164-git-svn-dcommit-concurrent.sh")
324 ;; XXX: These tests fail intermittently for unknown reasons:
325 ;; <https://bugs.gnu.org/29546>.
326 (for-each delete-file
327 '("t/t9128-git-svn-cmd-branch.sh"
328 "t/t9167-git-svn-cmd-branch-subproject.sh"
329 "t/t9141-git-svn-multiple-branches.sh"))
331 (add-after 'install 'install-shell-completion
332 (lambda* (#:key outputs #:allow-other-keys)
333 (let* ((out (assoc-ref outputs "out"))
334 (completions (string-append out "/etc/bash_completion.d")))
335 ;; TODO: Install the tcsh and zsh completions in the right place.
336 (mkdir-p completions)
337 (copy-file "contrib/completion/git-completion.bash"
338 (string-append completions "/git"))
340 (add-after 'install 'install-credential-netrc
341 (lambda* (#:key outputs #:allow-other-keys)
342 (let* ((netrc (assoc-ref outputs "credential-netrc")))
343 (install-file "contrib/credential/netrc/git-credential-netrc"
344 (string-append netrc "/bin"))
345 ;; Previously, Git.pm was automatically found by netrc.
346 ;; Perl 5.26 changed how it locates modules so that @INC no
347 ;; longer includes the current working directory (the Perl
348 ;; community calls this "dotless @INC").
349 (wrap-program (string-append netrc "/bin/git-credential-netrc")
350 `("PERL5LIB" ":" prefix
351 (,(string-append (assoc-ref outputs "out") "/share/perl5"))))
353 (add-after 'install 'install-subtree
354 (lambda* (#:key outputs #:allow-other-keys)
355 (let ((subtree (assoc-ref outputs "subtree")))
356 (install-file "contrib/subtree/git-subtree"
357 (string-append subtree "/bin"))
358 (install-file "contrib/subtree/git-subtree.1"
359 (string-append subtree "/share/man/man1"))
361 (add-after 'install 'split
362 (lambda* (#:key inputs outputs #:allow-other-keys)
363 ;; Split the binaries to the various outputs.
364 (let* ((out (assoc-ref outputs "out"))
365 (se (assoc-ref outputs "send-email"))
366 (svn (assoc-ref outputs "svn"))
367 (gui (assoc-ref outputs "gui"))
368 (gitk (string-append out "/bin/gitk"))
369 (gitk* (string-append gui "/bin/gitk"))
370 (git-gui (string-append out "/libexec/git-core/git-gui"))
371 (git-gui* (string-append gui "/libexec/git-core/git-gui"))
372 (git-cit (string-append out "/libexec/git-core/git-citool"))
373 (git-cit* (string-append gui "/libexec/git-core/git-citool"))
374 (git-se (string-append out "/libexec/git-core/git-send-email"))
375 (git-se* (string-append se "/libexec/git-core/git-send-email"))
376 (git-svn (string-append out "/libexec/git-core/git-svn"))
377 (git-svn* (string-append svn "/libexec/git-core/git-svn"))
378 (git-sm (string-append out
379 "/libexec/git-core/git-submodule")))
380 (mkdir-p (string-append gui "/bin"))
381 (mkdir-p (string-append gui "/libexec/git-core"))
382 (mkdir-p (string-append se "/libexec/git-core"))
383 (mkdir-p (string-append svn "/libexec/git-core"))
385 (for-each (lambda (old new)
389 (list gitk git-gui git-cit git-se git-svn)
390 (list gitk* git-gui* git-cit* git-se* git-svn*))
392 ;; Tell 'git-svn' where Subversion and perl-term-readkey are.
393 (wrap-program git-svn*
395 (,(string-append (assoc-ref inputs "subversion")
397 `("PERL5LIB" ":" prefix
398 ,(map (lambda (i) (string-append (assoc-ref inputs i)
399 "/lib/perl5/site_perl"))
400 '("subversion" "perl-term-readkey")))
402 ;; XXX: The .so for SVN/Core.pm lacks a RUNPATH, so
403 ;; help it find 'libsvn_client-1.so'.
404 `("LD_LIBRARY_PATH" ":" prefix
405 (,(string-append (assoc-ref inputs "subversion")
408 ;; Tell 'git-send-email' where perl modules are.
409 (wrap-program git-se*
410 `("PERL5LIB" ":" prefix
411 ,(map (lambda (o) (string-append o "/lib/perl5/site_perl"))
413 ,@(transitive-input-references
416 (assoc l (package-inputs this-package)))
419 "perl-io-socket-ssl")))))))
421 ;; Tell 'gitweb.cgi' where perl modules are.
422 (wrap-program (string-append out "/share/gitweb/gitweb.cgi")
423 `("PERL5LIB" ":" prefix
424 ,(map (lambda (o) (string-append o "/lib/perl5/site_perl"))
426 ,@(transitive-input-references
429 (assoc l (package-inputs this-package)))
432 ;; Tell 'git-submodule' where Perl is.
435 (,(string-append (assoc-ref inputs "perl")
439 (add-after 'split 'install-man-pages
440 (lambda* (#:key inputs outputs #:allow-other-keys)
441 (let* ((out (assoc-ref outputs "out"))
442 (man (string-append out "/share/man"))
443 (manpages (assoc-ref inputs "git-manpages")))
445 (with-directory-excursion man
446 (invoke "tar" "xvf" manpages))))))))
449 ;; For HTTPS access, Git needs a single-file certificate bundle, specified
450 ;; with $GIT_SSL_CAINFO.
451 (list (search-path-specification
452 (variable "GIT_SSL_CAINFO")
454 (separator #f) ;single entry
455 (files '("etc/ssl/certs/ca-certificates.crt")))
456 (search-path-specification
457 (variable "GIT_EXEC_PATH")
458 (separator #f) ;single entry
459 (files '("libexec/git-core")))))
461 (synopsis "Distributed version control system")
463 "Git is a free distributed version control system designed to handle
464 everything from small to very large projects with speed and efficiency.")
465 (license license:gpl2)
466 (home-page "https://git-scm.com/")))
468 (define-public git-minimal
469 ;; The size of the closure of 'git-minimal' is two thirds that of 'git'.
470 ;; Its test suite runs slightly faster and most importantly it doesn't
471 ;; depend on packages that are expensive to build such as Subversion.
476 (substitute-keyword-arguments (package-arguments git)
478 `(modify-phases ,phases
479 (replace 'patch-makefiles
481 (substitute* "Makefile"
482 (("/usr/bin/perl") (which "perl")))
484 (delete 'build-subtree)
486 (delete 'install-man-pages)
487 (delete 'install-subtree)
488 (delete 'install-credential-netrc)
489 (add-before 'check 'delete-svn-test
491 ;; This test cannot run since we are not building 'git-svn'.
492 (delete-file "t/t9020-remote-svn.sh")
494 (add-after 'install 'remove-unusable-perl-commands
495 (lambda* (#:key outputs #:allow-other-keys)
496 (let* ((out (assoc-ref outputs "out"))
497 (bin (string-append out "/bin"))
498 (libexec (string-append out "/libexec")))
499 (for-each (lambda (file)
500 (delete-file (string-append libexec
502 '("git-svn" "git-cvsimport" "git-archimport"
503 "git-cvsserver" "git-request-pull"
504 "git-add--interactive" "git-cvsexportcommit"
505 "git-instaweb" "git-send-email"))
506 (delete-file (string-append bin "/git-cvsserver"))
508 ;; These templates typically depend on Perl. Remove them.
509 (delete-file-recursively
510 (string-append out "/share/git-core/templates/hooks"))
512 ;; Gitweb depends on Perl as well.
513 (delete-file-recursively
514 (string-append out "/share/gitweb"))
516 ((#:make-flags flags)
517 `(delete "USE_LIBPCRE2=yes" ,flags))
518 ((#:configure-flags flags)
520 ((#:disallowed-references lst '())
524 `(("native-perl" ,perl)
525 ("gettext" ,gettext-minimal)))
527 `(("curl" ,curl) ;for HTTP(S) access
528 ("expat" ,expat) ;for 'git push' over HTTP(S)
532 ("bash-for-tests" ,bash)))))
534 (define-public libgit2
541 (url "https://github.com/libgit2/libgit2.git")
542 (commit (string-append "v" version))))
543 (file-name (git-file-name name version))
546 "171b25aym4q88bidc4c76y4l6jmdwifm3q9zjqsll0wjhlkycfy1"))
547 (patches (search-patches "libgit2-avoid-python.patch"
548 "libgit2-mtime-0.patch"))
550 ;; Remove bundled software.
552 (delete-file-recursively "deps")
554 (modules '((guix build utils)))))
555 (build-system cmake-build-system)
556 (outputs '("out" "debug"))
558 `(#:configure-flags '("-DUSE_SHA1DC=ON") ; SHA-1 collision detection
560 (modify-phases %standard-phases
561 (add-after 'unpack 'fix-hardcoded-paths
563 (substitute* "tests/repo/init.c"
564 (("#!/bin/sh") (string-append "#!" (which "sh"))))
565 (substitute* "tests/clar/fs.h"
566 (("/bin/cp") (which "cp"))
567 (("/bin/rm") (which "rm")))
569 (add-after 'unpack 'make-git-checkout-writable
571 (for-each make-file-writable (find-files "."))
573 ;; Run checks more verbosely.
575 (lambda _ (invoke "./libgit2_clar" "-v" "-Q"))))))
577 `(("libssh2" ,libssh2)
578 ("http-parser" ,http-parser)))
580 `(("guile" ,guile-2.2)
581 ("pkg-config" ,pkg-config)))
583 ;; These two libraries are in 'Requires.private' in libgit2.pc.
584 `(("openssl" ,openssl)
586 (home-page "https://libgit2.github.com/")
587 (synopsis "Library providing Git core methods")
589 "Libgit2 is a portable, pure C implementation of the Git core methods
590 provided as a re-entrant linkable library with a solid API, allowing you to
591 write native speed custom Git applications in any language with bindings.")
592 ;; GPLv2 with linking exception
593 (license license:gpl2)))
595 (define-public git-crypt
603 (url "https://github.com/AGWA/git-crypt.git")
605 (file-name (git-file-name name version))
607 (base32 "1ba5s0fvmd9hhnfhfsjrm40v0qpxfnwc8vmm55m0k4dryzkzx66q"))))
608 (build-system gnu-build-system)
611 ("openssl" ,openssl)))
613 `(("docbook-xsl" ,docbook-xsl)
614 ("libxslt" ,libxslt)))
616 `(#:tests? #f ; No tests.
618 (modify-phases %standard-phases
620 (add-after 'unpack 'patch-makefile
621 (lambda* (#:key inputs #:allow-other-keys)
622 (substitute* "Makefile"
623 (("http://docbook.sourceforge.net/release/xsl/current/manpages/docbook.xsl")
624 (string-append (assoc-ref inputs "docbook-xsl")
625 "/xml/xsl/docbook-xsl-"
626 ,(package-version docbook-xsl)
627 "/manpages/docbook.xsl")))
631 (invoke "make" "ENABLE_MAN=yes")))
633 (lambda* (#:key outputs #:allow-other-keys)
634 (let ((out (assoc-ref outputs "out")))
635 (invoke "make" "install"
637 (string-append "PREFIX=" out))))))))
638 (home-page "https://www.agwa.name/projects/git-crypt/")
639 (synopsis "Transparent encryption of files in a git repository")
640 (description "git-crypt enables transparent encryption and decryption of
641 files in a git repository. Files which you choose to protect are encrypted when
642 committed, and decrypted when checked out. git-crypt lets you freely share a
643 repository containing a mix of public and private content. git-crypt gracefully
644 degrades, so developers without the secret key can still clone and commit to a
645 repository with encrypted files. This lets you store your secret material (such
646 as keys or passwords) in the same repository as your code, without requiring you
647 to lock down your entire repository.")
648 (license license:gpl3+)))
650 (define-public git-remote-gcrypt
652 (name "git-remote-gcrypt")
657 (url "https://git.spwhitton.name/git-remote-gcrypt")
659 (file-name (string-append name "-" version "-checkout"))
662 "1vay3204729c7wajgn3nxf0s0hzwpdrw14pl6kd8w2ss25gvw2k1"))))
663 (build-system trivial-build-system)
665 `(#:modules ((guix build utils))
667 (use-modules (guix build utils))
668 (let* ((source (assoc-ref %build-inputs "source"))
669 (output (assoc-ref %outputs "out"))
670 (bindir (string-append output "/bin")))
671 (install-file (string-append source "/git-remote-gcrypt")
674 (home-page "https://spwhitton.name/tech/code/git-remote-gcrypt/")
675 (synopsis "Whole remote repository encryption")
676 (description "git-remote-gcrypt is a Git remote helper to push and pull from
677 repositories encrypted with GnuPG. It works with the standard Git transports,
678 including repository hosting services like GitLab.
680 Remote helper programs are invoked by Git to handle network transport. This
681 helper handles @code{gcrypt:} URLs that access a remote repository encrypted
682 with GPG, using our custom format.
684 Supported locations are local, @code{rsync://} and @code{sftp://}, where the
685 repository is stored as a set of files, or instead any Git URL where gcrypt
686 will store the same representation in a Git repository, bridged over arbitrary
689 The aim is to provide confidential, authenticated Git storage and
690 collaboration using typical untrusted file hosts or services.")
691 (license license:gpl3+)))
696 ;; Update the ‘git-source’ input as well.
701 "https://git.zx2c4.com/cgit/snapshot/cgit-"
705 "0dmjsisigjz5k4gw7gm55qhm3wazzbm4cg7a5dwf0gqg9nacx5rz"))))
706 (build-system gnu-build-system)
708 '(#:tests? #f ; XXX: fail to build the in-source git.
710 #:make-flags '("CC=gcc" "SHELL_PATH=sh")
712 (modify-phases %standard-phases
713 (add-after 'unpack 'unpack-git
714 (lambda* (#:key inputs #:allow-other-keys)
715 ;; Unpack the source of git into the 'git' directory.
716 (invoke "tar" "--strip-components=1" "-C" "git" "-xf"
717 (assoc-ref inputs "git-source"))))
718 (add-after 'unpack 'patch-absolute-file-names
719 (lambda* (#:key inputs #:allow-other-keys)
720 (define (quoted-file-name input path)
721 (string-append "\"" input path "\""))
722 (substitute* "ui-snapshot.c"
724 (quoted-file-name (assoc-ref inputs "gzip") "/bin/gzip"))
726 (quoted-file-name (assoc-ref inputs "bzip2") "/bin/bzip2"))
728 (quoted-file-name (assoc-ref inputs "xz") "/bin/xz")))
730 (substitute* "filters/about-formatting.sh"
731 (("$\\(dirname $0\\)") (string-append (assoc-ref outputs "out")
732 "/lib/cgit/filters"))
733 (("\\| tr") (string-append "| " (which "tr"))))
735 (substitute* "filters/html-converters/txt2html"
736 (("sed") (which "sed")))
738 (substitute* "filters/html-converters/man2html"
739 (("groff") (which "groff")))
741 (substitute* "filters/html-converters/rst2html"
742 (("rst2html\\.py") (which "rst2html.py")))
745 (delete 'configure) ; no configure script
746 (add-after 'build 'build-man
747 (lambda* (#:key make-flags #:allow-other-keys)
748 (apply invoke "make" "doc-man" make-flags)))
750 (lambda* (#:key make-flags outputs #:allow-other-keys)
751 (let ((out (assoc-ref outputs "out")))
753 "make" "install" "install-man"
754 (string-append "prefix=" out)
755 (string-append "CGIT_SCRIPT_PATH=" out "/share/cgit")
757 ;; Move the platform-dependent 'cgit.cgi' into lib to get it
759 (rename-file (string-append out "/share/cgit/cgit.cgi")
760 (string-append out "/lib/cgit/cgit.cgi"))
762 (add-after 'install 'wrap-python-scripts
763 (lambda* (#:key outputs #:allow-other-keys)
766 (wrap-program (string-append (assoc-ref outputs "out")
767 "/lib/cgit/filters/" file)
768 `("PYTHONPATH" ":" prefix (,(getenv "PYTHONPATH")))))
769 '("syntax-highlighting.py"
770 "html-converters/md2html"))
773 ;; For building manpage.
774 `(("asciidoc" ,asciidoc)
779 `(;; Building cgit requires a Git source tree.
783 ;; cgit is tightly bound to git. Use GIT_VER from the Makefile,
784 ;; which may not match the current (package-version git).
785 (uri "mirror://kernel.org/software/scm/git/git-2.25.0.tar.xz")
787 (base32 "1l58v42aazj0x9276gk8r9mwyl9pgp9w99aakz4xfhzv7wd2jq60"))))
791 ("python-docutils" ,python-docutils)
792 ("python-markdown" ,python-markdown)
793 ("python-pygments" ,python-pygments)
795 (home-page "https://git.zx2c4.com/cgit/")
796 (synopsis "Web frontend for git repositories")
798 "CGit is an attempt to create a fast web interface for the Git SCM, using
799 a built-in cache to decrease server I/O pressure.")
800 (license license:gpl2)))
802 (define-public python-git-multimail
804 (name "python-git-multimail")
805 (version "1.5.0.post1")
809 (uri (pypi-uri "git-multimail" version))
812 "1zkrbsa70anwpw86ysfwalrb7nsr064kygfiyikyq1pl9pcl969y"))))
813 (build-system python-build-system)
816 (modify-phases %standard-phases
817 (add-after 'unpack 'patch
818 (lambda* (#:key inputs #:allow-other-keys)
819 (substitute* "git-multimail/git_multimail.py"
820 (("GIT_EXECUTABLE = 'git'")
821 (string-append "GIT_EXECUTABLE = '"
822 (assoc-ref inputs "git") "/bin/git"
824 (("/usr/sbin/sendmail")
825 (string-append (assoc-ref inputs "sendmail")
826 "/usr/sbin/sendmail")))
830 ("sendmail" ,sendmail)))
831 (home-page "https://github.com/git-multimail/git-multimail")
832 (synopsis "Send notification emails for Git pushes")
834 "This hook sends emails describing changes introduced by pushes to a Git
835 repository. For each reference that was changed, it emits one ReferenceChange
836 email summarizing how the reference was changed, followed by one Revision
837 email for each new commit that was introduced by the reference change.
839 This script is designed to be used as a post-receive hook in a Git
841 (license license:gpl2)))
843 (define-public python-ghp-import
845 (name "python-ghp-import")
851 (url "https://github.com/davisp/ghp-import.git")
853 (file-name (git-file-name name version))
855 (base32 "12pmw3zz3i57ljnm0rxdyjqdyhisbvy18mjwkb3bzp5pgzs2f45c"))))
856 (build-system python-build-system)
858 `(#:phases (modify-phases %standard-phases
859 (add-after 'install 'install-documentation
860 (lambda* (#:key outputs #:allow-other-keys)
861 (let* ((out (assoc-ref outputs "out"))
862 (doc (string-append out "/share/doc"))
863 (licenses (string-append out "/share/licenses")))
864 (install-file "README.md" doc)
865 (install-file "LICENSE" licenses)))))))
866 (home-page "https://github.com/davisp/ghp-import")
867 (synopsis "Copy directory to the gh-pages branch")
868 (description "Script that copies a directory to the gh-pages branch (by
869 default) of the repository.")
871 ;; See <https://bugs.gnu.org/27913>.
872 (license (license:non-copyleft
873 "https://raw.githubusercontent.com/davisp/ghp-import/master/LICENSE"
874 "Tumbolia Public License"))))
876 (define-public python2-ghp-import
877 (package-with-python2
878 (strip-python2-variant python-ghp-import)))
880 (define-public python-gitdb
882 (name "python-gitdb")
886 (uri (pypi-uri "gitdb2" version))
889 "0i608q9c47rdsmyac1cn6s0hzwwj7cb957y8fc9wacc5lnw8ak5v"))))
890 (build-system python-build-system)
892 `(#:phases (modify-phases %standard-phases
893 (add-before 'check 'create-test-repository
895 (mkdir "/tmp/testrepo")
896 ;; Some tests require a git repository, so create one.
897 (with-directory-excursion "/tmp/testrepo"
898 (do ((filecount 1 (1+ filecount)))
900 (call-with-output-file (string-append
901 "file" (number->string filecount))
903 (format port "~a" filecount))))
905 (invoke "git" "init")
906 (invoke "git" "config" "user.name" "Total Git")
907 (invoke "git" "config" "user.email" "git@localhost")
908 (invoke "git" "add" "-A")
909 (invoke "git" "commit" "-q" "-m" "dummy commit")))
911 ;; The repository checkout must be a "bare" clone.
912 (invoke "git" "clone" "--bare" "/tmp/testrepo"
913 "/tmp/testrepo.git")))
916 (setenv "GITDB_TEST_GIT_REPO_BASE" "/tmp/testrepo.git")
917 ;; Skip tests that must be run from the gitdb repository.
918 (setenv "TRAVIS" "1")
919 (invoke "nosetests" "-v"))))))
921 `(("python-smmap2" ,python-smmap2)))
924 ("python-nose" ,python-nose)))
925 (home-page "https://github.com/gitpython-developers/gitdb")
926 (synopsis "Python implementation of the Git object database")
928 "GitDB allows you to access @dfn{bare} Git repositories for reading and
929 writing. It aims at allowing full access to loose objects as well as packs
930 with performance and scalability in mind. It operates exclusively on streams,
931 allowing to handle large objects with a small memory footprint.")
932 (license license:bsd-3)))
934 (define-public python2-gitdb
935 (package-with-python2 python-gitdb))
937 (define-public python-gitpython
939 (name "python-gitpython")
943 (uri (pypi-uri "GitPython" version))
946 "1a357c28dnhgvq3saia7v29r71ynp48l2qp5xsmnc4vgzmdxqdw2"))))
947 (build-system python-build-system)
949 `(#:tests? #f ;XXX: Tests can only be run within the GitPython repository.
950 #:phases (modify-phases %standard-phases
951 (add-after 'unpack 'embed-git-reference
952 (lambda* (#:key inputs #:allow-other-keys)
953 (substitute* "git/cmd.py"
954 (("git_exec_name = \"git\"")
955 (string-append "git_exec_name = \""
956 (assoc-ref inputs "git")
962 `(("python-gitdb" ,python-gitdb)))
964 `(("python-ddt" ,python-ddt)
965 ("python-nose" ,python-nose)))
966 (home-page "https://github.com/gitpython-developers/GitPython")
967 (synopsis "Python library for interacting with Git repositories")
969 "GitPython is a python library used to interact with Git repositories,
970 high-level like git-porcelain, or low-level like git-plumbing.
972 It provides abstractions of Git objects for easy access of repository data,
973 and additionally allows you to access the Git repository more directly using
974 either a pure Python implementation, or the faster, but more resource intensive
975 @command{git} command implementation.")
976 (license license:bsd-3)))
978 (define-public python2-gitpython
979 (package-with-python2 python-gitpython))
981 (define-public shflags
988 (url "https://github.com/kward/shflags.git")
989 (commit (string-append "v" version))))
990 (file-name (git-file-name name version))
993 "1ydx0sb6vz9s2dgp5bd64y7fpzh9qvmlfjxrbmzac8saknijrlly"))))
994 (build-system gnu-build-system)
996 `(#:tests? #f ; no tests
998 (modify-phases %standard-phases
999 (delete 'configure) ; nothing to configure
1000 (delete 'build) ; nothing to build
1002 (lambda* (#:key outputs #:allow-other-keys)
1003 (let* ((out (assoc-ref outputs "out"))
1004 (src (string-append out "/src")))
1005 (install-file "shflags" src)
1007 (home-page "https://github.com/kward/shflags")
1008 (synopsis "Command-line flags library for shell scripts")
1010 "Shell Flags (shFlags) is a library written to greatly simplify the
1011 handling of command-line flags in Bourne based Unix shell scripts (bash, dash,
1012 ksh, sh, zsh). Most shell scripts use getopt for flags processing, but the
1013 different versions of getopt on various OSes make writing portable shell
1014 scripts difficult. shFlags instead provides an API that doesn't change across
1015 shell and OS versions so the script writer can be confident that the script
1017 (license license:lgpl2.1)))
1019 (define-public git-flow
1022 ;; This version has not be officially released yet, so we build it
1023 ;; directly from the git repository.
1028 (url "https://github.com/petervanderdoes/gitflow-avh/")
1030 (file-name (git-file-name name version))
1033 "13q4mnrxr03wz2dkhzy73j384g299m4d545cnhxcaznvdwfany4h"))))
1034 (build-system gnu-build-system)
1035 (inputs `(("shflags" ,shflags)))
1037 '(#:tests? #f ; no tests
1038 #:make-flags (list (string-append "prefix="
1039 (assoc-ref %outputs "out")))
1041 (modify-phases %standard-phases
1042 (add-after 'unpack 'reset-shFlags-link
1043 (lambda* (#:key inputs #:allow-other-keys)
1044 ;; The link points to a file in the shFlags submodule.
1045 ;; Redirect it to point to our system shFlags.
1046 (let ((shflags (assoc-ref inputs "shflags")))
1048 (delete-file "gitflow-shFlags")
1049 (symlink (string-append shflags "/src/shflags")
1050 "gitflow-shFlags")))))
1053 (home-page "http://nvie.com/posts/a-successful-git-branching-model/")
1054 (synopsis "Git extensions for Vincent Driessen's branching model")
1056 "Vincent Driessen's branching model is a git branching and release
1057 management strategy that helps developers keep track of features, hotfixes,
1058 and releases in bigger software projects. The git-flow library of git
1059 subcommands helps automate some parts of the flow to make working with it a
1061 (license license:bsd-2)))
1063 (define-public stgit
1071 (url "https://github.com/ctmarinas/stgit.git")
1072 (commit (string-append "v" version))))
1073 (file-name (git-file-name name version))
1075 (base32 "00pmz93znl418lsjwy4mr0chp8i2w27h1xjysa05f62smsv91yyc"))))
1076 (build-system python-build-system)
1083 (modify-phases %standard-phases
1084 (add-after 'unpack 'hard-code-version
1086 ;; setup.py tries to cleverly extract the version number from the
1087 ;; git history, which the source checkout lacks. Hard-code one.
1088 (substitute* "setup.py"
1090 (format #f "'~a'" ,version)))
1092 (add-before 'check 'patch-tests
1094 (substitute* (list "t/t1900-mail.sh"
1095 "t/t7504-commit-msg-hook.sh")
1103 (string-append "SHELL_PATH=" (which "bash"))
1105 (home-page "http://procode.org/stgit/")
1106 (synopsis "Stacked Git")
1108 "StGit is a command-line application that provides functionality similar
1109 to Quilt (i.e., pushing/popping patches to/from a stack), but using Git
1110 instead of @command{diff} and @command{patch}. StGit stores its patches in a
1111 Git repository as normal Git commits, and provides a number of commands to
1112 manipulate them in various ways.")
1113 (license license:gpl2)))
1118 (version "1.20151229")
1123 (url "https://github.com/RichiH/vcsh.git")
1124 (commit (string-append "v" version))))
1125 (file-name (git-file-name name version))
1127 (base32 "1grpj45nbpv4j60vd2kg4rj53zrm0bc0h9l4pfd3c2mwbvywm6ab"))))
1128 (build-system gnu-build-system)
1130 `(("which" ,which)))
1134 ("perl-test-harness" ,perl-test-harness)
1135 ("perl-shell-command" ,perl-shell-command)
1136 ("perl-test-most" ,perl-test-most)))
1138 '(#:phases (modify-phases %standard-phases
1141 #:make-flags (list (string-append "PREFIX="
1142 (assoc-ref %outputs "out")))
1143 #:test-target "test"))
1144 (home-page "https://github.com/RichiH/vcsh")
1145 (synopsis "Version control system for @code{$HOME}")
1147 "vcsh version-controls configuration files in several Git repositories,
1148 all in one single directory. They all maintain their working trees without
1149 clobbering each other or interfering otherwise. By default, all Git
1150 repositories maintained via vcsh store the actual files in @code{$HOME},
1151 though this can be overridden.")
1152 (license license:gpl2+)))
1154 (define-public git-test-sequence
1155 (let ((commit "48e5a2f5a13a5f30452647237e23362b459b9c76"))
1157 (name "git-test-sequence")
1158 (version (string-append "20140312." (string-take commit 7)))
1162 ;; There are many other scripts in this directory; we
1163 ;; are interested in just one for this package.
1164 (url "https://github.com/dustin/bindir")
1166 (file-name (git-file-name name version))
1169 "1dcq0y16yznbv4k9h8gg90kv1gkn8r8dbvl4m2rpfd7q5nqhn617"))))
1170 (build-system trivial-build-system)
1172 `(#:modules ((guix build utils))
1174 (use-modules (guix build utils))
1175 (let* ((source (assoc-ref %build-inputs "source"))
1176 (output (assoc-ref %outputs "out"))
1177 (bindir (string-append output "/bin"))
1178 (script "git-test-sequence"))
1179 (install-file (string-append source "/" script)
1182 (home-page "http://dustin.sallings.org/2010/03/28/git-test-sequence.html")
1183 (synopsis "Run a command over a sequence of commits")
1185 "git-test-sequence is similar to an automated git bisect except it’s
1186 linear. It will test every change between two points in the DAG. It will
1187 also walk each side of a merge and test those changes individually.")
1188 (license (license:x11-style "file://LICENSE")))))
1190 (define-public gitolite
1198 (url "https://github.com/sitaramc/gitolite.git")
1199 (commit (string-append "v" version))))
1200 (file-name (git-file-name name version))
1202 (base32 "0rmyzr66lxh2ildf3h1nh3hh2ndwk21rjdin50r5vhwbdd7jg8vb"))))
1203 (build-system gnu-build-system)
1205 '(#:tests? #f ; no tests
1206 #:phases (modify-phases %standard-phases
1209 (add-before 'install 'patch-scripts
1210 (lambda* (#:key inputs #:allow-other-keys)
1211 (let ((perl (string-append (assoc-ref inputs "perl")
1213 ;; This seems to take care of every shell script that
1215 (substitute* (find-files "." ".*")
1217 (string-append " " perl " -")))
1219 (substitute* (find-files "src/triggers" ".*")
1221 (string-append " " (which "sed") " ")))
1224 '("src/triggers/post-compile/update-gitweb-access-list"
1225 "src/triggers/post-compile/ssh-authkeys-split"
1226 "src/triggers/upstream")
1228 (string-append " " (which "grep") " ")))
1230 ;; Avoid references to the store in authorized_keys.
1231 ;; This works because gitolite-shell is in the PATH.
1232 (substitute* "src/triggers/post-compile/ssh-authkeys"
1233 (("\\$glshell \\$user")
1234 "gitolite-shell $user"))
1236 (add-before 'install 'patch-source
1237 (lambda* (#:key inputs #:allow-other-keys)
1238 ;; Gitolite uses cat to test the readability of the
1240 (substitute* "src/lib/Gitolite/Setup.pm"
1242 (string-append "\"" (which "cat") " "))
1244 (string-append "\"" (which "ssh-keygen"))))
1246 (substitute* '("src/lib/Gitolite/Hooks/PostUpdate.pm"
1247 "src/lib/Gitolite/Hooks/Update.pm")
1249 (string-append (assoc-ref inputs "perl")
1252 (substitute* "src/lib/Gitolite/Common.pm"
1254 (string-append "\"" (which "ssh-keygen")))
1257 (assoc-ref inputs "inetutils")
1262 (lambda* (#:key outputs #:allow-other-keys)
1263 (let* ((output (assoc-ref outputs "out"))
1264 (sharedir (string-append output "/share/gitolite"))
1265 (bindir (string-append output "/bin")))
1268 (invoke "./install" "-to" sharedir)
1269 ;; Create symlinks for executable scripts in /bin.
1270 (for-each (lambda (script)
1271 (symlink (string-append sharedir "/" script)
1272 (string-append bindir "/" script)))
1273 '("gitolite" "gitolite-shell"))
1275 (add-after 'install 'wrap-scripts
1276 (lambda* (#:key inputs outputs #:allow-other-keys)
1277 (let ((out (assoc-ref outputs "out"))
1278 (coreutils (assoc-ref inputs "coreutils"))
1279 (findutils (assoc-ref inputs "findutils"))
1280 (git (assoc-ref inputs "git")))
1281 (wrap-program (string-append out "/bin/gitolite")
1284 (string-append dir "/bin"))
1285 (list out coreutils findutils git))))
1289 ("coreutils" ,coreutils)
1290 ("findutils" ,findutils)
1291 ("inetutils" ,inetutils)))
1292 ;; git and openssh are propagated because trying to patch the source via
1293 ;; regexp matching is too brittle and prone to false positives.
1296 ("openssh" ,openssh)))
1297 (home-page "http://gitolite.com")
1298 (synopsis "Git access control layer")
1300 "Gitolite is an access control layer on top of Git, providing fine access
1301 control to Git repositories.")
1302 (license license:gpl2)))
1304 (define-public mercurial
1310 (uri (string-append "https://www.mercurial-scm.org/"
1311 "release/mercurial-" version ".tar.gz"))
1314 "1pxkd37b0a1mi2zakk1hi122lgz1ffy2fxdnbs8acwlqpw55bc8q"))))
1315 (build-system python-build-system)
1318 (modify-phases %standard-phases
1320 (lambda* (#:key tests? #:allow-other-keys)
1321 (with-directory-excursion "tests"
1322 ;; The following tests are known to fail.
1323 (for-each (lambda (file)
1328 "test-http-branchmap.t"
1329 "test-logtoprocess.t"
1330 "test-merge-combination.t"
1331 "test-nointerrupt.t"
1333 "test-pull-bundle.t"
1337 "test-subrepo-deep-nested-change.t"
1338 "test-subrepo-recursion.t"
1339 "test-transplant.t"))
1341 (invoke "./run-tests.py"
1342 ;; ‘make check’ does not respect ‘-j’.
1343 (string-append "-j" (number->string
1344 (parallel-job-count)))
1345 ;; The default time-outs are too low for many systems.
1346 ;; Raise them generously: Guix enforces its own.
1348 "--slowtimeout" "86400"
1349 ;; The test suite takes a long time and produces little
1350 ;; output by default. Prevent timeouts due to silence.
1353 ;; The following inputs are only needed to run the tests.
1355 `(("python-nose" ,python-nose)
1357 (home-page "https://www.mercurial-scm.org/")
1358 (synopsis "Decentralized version control system")
1360 "Mercurial is a free, distributed source control management tool.
1361 It efficiently handles projects of any size
1362 and offers an easy and intuitive interface.")
1363 (license license:gpl2+)))
1371 (uri (string-append "http://www.webdav.org/neon/neon-"
1375 "1jpvczcx658vimqm7c8my2q41fnmjaf1j03g7bsli6rjxk6xh2yv"))))
1376 (build-system gnu-build-system)
1379 ("pkg-config" ,pkg-config)))
1381 `(("libxml2" ,libxml2)
1382 ("openssl" ,openssl)
1385 `(;; FIXME: Add tests once reverse address lookup is fixed in glibc, see
1386 ;; https://sourceware.org/bugzilla/show_bug.cgi?id=16475
1388 #:configure-flags '("--enable-shared"
1389 ;; requires libgnutils-config, deprecated
1391 ; "--with-ssl=gnutls")))
1392 "--with-ssl=openssl")))
1393 (home-page "http://www.webdav.org/neon/")
1394 (synopsis "HTTP and WebDAV client library")
1396 "Neon is an HTTP and WebDAV client library, with a C interface and the
1399 @item High-level wrappers for common HTTP and WebDAV operations (GET, MOVE,
1401 @item low-level interface to the HTTP request/response engine, allowing the use
1402 of arbitrary HTTP methods, headers, etc.;
1403 @item authentication support including Basic and Digest support, along with
1404 GSSAPI-based Negotiate on Unix, and SSPI-based Negotiate/NTLM on Win32;
1405 @item SSL/TLS support using OpenSSL or GnuTLS, exposing an abstraction layer for
1406 verifying server certificates, handling client certificates, and examining
1407 certificate properties, smartcard-based client certificates are also
1408 supported via a PKCS#11 wrapper interface;
1409 @item abstract interface to parsing XML using libxml2 or expat, and wrappers for
1410 simplifying handling XML HTTP response bodies;
1411 @item WebDAV metadata support, wrappers for PROPFIND and PROPPATCH to simplify
1412 property manipulation.
1414 (license license:gpl2+))) ; for documentation and tests; source under lgpl2.0+
1416 (define-public subversion
1424 (string-append "https://archive.apache.org/dist/subversion/"
1425 "subversion-" version ".tar.bz2")
1426 (string-append "https://www-eu.apache.org/dist/subversion/"
1427 "subversion-" version ".tar.bz2")))
1430 "19zc215mhpnm92mlyl5jbv57r5zqp6cavr3s2g9yglp6j4kfgj0q"))))
1431 (build-system gnu-build-system)
1434 (modify-phases %standard-phases
1435 (add-after 'configure 'patch-libtool-wrapper-ls
1436 (lambda* (#:key inputs #:allow-other-keys)
1437 ;; This substitution allows tests svnauthz_tests and svnlook_tests
1438 ;; to pass. These tests execute svnauthz and svnlook through
1439 ;; their libtool wrapper scripts from svn hooks, whose empty
1440 ;; environments cause "ls: command not found" errors. It would be
1441 ;; nice if this fix ultimately made its way into libtool.
1442 (let ((coreutils (assoc-ref inputs "coreutils")))
1443 (substitute* "libtool"
1444 (("\\\\`ls") (string-append "\\`" coreutils "/bin/ls")))
1446 (add-before 'build 'patch-test-sh
1448 (substitute* "subversion/tests/libsvn_repos/repos-test.c"
1449 (("#!/bin/sh") (string-append "#!" (which "sh"))))
1451 (add-before 'check 'set-PARALLEL
1453 (setenv "PARALLEL" (number->string (parallel-job-count)))
1455 (add-after 'install 'install-perl-bindings
1456 (lambda* (#:key outputs #:allow-other-keys)
1457 ;; Follow the instructions from 'subversion/bindings/swig/INSTALL'.
1458 (let ((out (assoc-ref outputs "out")))
1459 (invoke "make" "swig-pl-lib")
1460 ;; FIXME: Test failures.
1461 ;; (invoke "make" "check-swig-pl")
1462 (invoke "make" "install-swig-pl-lib")
1464 ;; Set the right installation prefix.
1465 (with-directory-excursion
1466 "subversion/bindings/swig/perl/native"
1467 (invoke "perl" "Makefile.PL"
1469 (string-append "PREFIX=" out))
1470 (invoke "make" "install"
1471 (string-append "OTHERLDFLAGS="
1475 `(("pkg-config" ,pkg-config)
1476 ;; For the Perl bindings.
1480 ("apr-util" ,apr-util)
1484 ("python" ,python-wrapper)
1486 ("utf8proc" ,utf8proc)
1488 (home-page "https://subversion.apache.org/")
1489 (synopsis "Revision control system")
1491 "@dfn{Subversion} (svn) exists to be recognized and adopted as a
1492 centralized version control system characterized by its
1493 reliability as a safe haven for valuable data; the simplicity of its model and
1494 usage; and its ability to support the needs of a wide variety of users and
1495 projects, from individuals to large-scale enterprise operations.")
1496 (license license:asl2.0)))
1504 (uri (string-append "mirror://gnu/rcs/rcs-"
1508 "1zsx7bb0rgvvvisiy4zlixf56ay8wbd9qqqcp1a1g0m1gl6mlg86"))
1509 (patches (search-patches "rcs-5.9.4-noreturn.patch"))))
1510 (build-system gnu-build-system)
1511 (native-inputs `(("ed" ,ed)))
1513 `(#:phases (modify-phases %standard-phases
1514 (add-before 'check 'disable-t810
1515 ;; See https://savannah.gnu.org/bugs/index.php?52288
1516 ;; Back-porting the fix is non-trivial, so disable for now.
1518 (substitute* "tests/Makefile"
1519 ((" t810 \\\\\n") ""))
1521 (home-page "https://www.gnu.org/software/rcs/")
1522 (synopsis "Per-file local revision control system")
1524 "RCS is the original Revision Control System. It works on a
1525 file-by-file basis, in contrast to subsequent version control systems such as
1526 CVS, Subversion, and Git. This can make it suitable for system
1527 administration files, for example, which are often inherently local to one
1529 (license license:gpl3+)))
1538 "https://ftp.gnu.org/non-gnu/cvs/source/feature/"
1539 version "/cvs-" version ".tar.bz2"))
1540 (patches (search-patches "cvs-CVE-2017-12836.patch"))
1543 "0pjir8cwn0087mxszzbsi1gyfc6373vif96cw4q3m1x6p49kd1bq"))))
1544 (build-system gnu-build-system)
1546 ;; XXX: The test suite looks flawed, and the package is obsolete anyway.
1548 #:configure-flags (list "--with-external-zlib")))
1549 (inputs `(("zlib" ,zlib)
1550 ("nano" ,nano))) ; the default editor
1551 (home-page "http://cvs.nongnu.org")
1552 (synopsis "Historical centralized version control system")
1554 "CVS is a version control system, an important component of Source
1555 Configuration Management (SCM). Using it, you can record the history of
1556 sources files, and documents. It fills a similar role to the free software
1557 RCS, PRCS, and Aegis packages.")
1558 (license license:gpl1+)))
1560 (define-public cvs-fast-export
1562 (name "cvs-fast-export")
1566 (uri (string-append "http://www.catb.org/~esr/cvs-fast-export/"
1567 "cvs-fast-export-" version ".tar.gz"))
1570 "19pxg6p0pcgyd2fbnh3wy1kazv6vcfi5lzc2whhdi1w9kj4r9c4z"))))
1571 (build-system gnu-build-system)
1574 (modify-phases %standard-phases
1575 (delete 'configure) ; no configure script
1576 (add-after 'unpack 'remove-optimizations
1578 ;; Don't optimize for a specific processor architecture.
1579 (substitute* "Makefile"
1580 (("CFLAGS \\+= -march=native") ""))
1582 #:parallel-build? #f ; parallel a2x commands fail spectacularly
1584 (list "CC=gcc" (string-append "prefix?=" (assoc-ref %outputs "out")))))
1585 (inputs `(("git" ,git)))
1586 (native-inputs `(("asciidoc" ,asciidoc)
1587 ;; These are needed for the tests.
1589 ("python" ,python-2)
1591 (home-page "http://www.catb.org/esr/cvs-fast-export/")
1592 (synopsis "Export an RCS or CVS history as a fast-import stream")
1593 (description "This program analyzes a collection of RCS files in a CVS
1594 repository (or outside of one) and, when possible, emits an equivalent history
1595 in the form of a fast-import stream. Not all possible histories can be
1596 rendered this way; the program tries to emit useful warnings when it can't.
1598 The program can also produce a visualization of the resulting commit directed
1599 acyclic graph (DAG) in the input format of @uref{http://www.graphviz.org,
1600 Graphviz}. The package also includes @command{cvssync}, a tool for mirroring
1601 masters from remote CVS hosts.")
1602 (license license:gpl2+)))
1604 (define-public vc-dwim
1610 (uri (string-append "mirror://gnu/vc-dwim/vc-dwim-"
1614 "0mf1dd7wdqxsm4fcfinfd7iadzarmzvg747pbsbi32qpavpk8gdf"))))
1615 (build-system gnu-build-system)
1616 (inputs `(("perl" ,perl)))
1618 `(("emacs" ,emacs-minimal) ; for `ctags'
1619 ("inetutils" ,inetutils))) ; for `hostname', used in the tests
1620 (home-page "https://www.gnu.org/software/vc-dwim/")
1621 (synopsis "Version-control-agnostic ChangeLog diff and commit tool")
1623 "The vc-dwim package contains two tools, \"vc-dwim\" and \"vc-chlog\".
1624 vc-dwim is a tool that simplifies the task of maintaining a ChangeLog and
1625 using version control at the same time, for example by printing a reminder
1626 when a file change has been described in the ChangeLog but the file has not
1627 been added to the VC. vc-chlog scans changed files and generates
1628 standards-compliant ChangeLog entries based on the changes that it detects.")
1629 (license license:gpl3+)))
1631 (define-public diffstat
1639 (string-append "ftp://invisible-island.net/diffstat/"
1640 "diffstat-" version ".tgz")
1641 (string-append "http://invisible-mirror.net/archives/diffstat/"
1642 "diffstat-" version ".tgz")))
1645 "0vyw200s5dv1257pmrh6c6fdkmw3slyz5szpqfx916xr04sdbpby"))))
1646 (build-system gnu-build-system)
1647 (home-page "https://invisible-island.net/diffstat/")
1648 (synopsis "Make histograms from the output of @command{diff}")
1650 "Diffstat reads the output of @command{diff} and displays a histogram of
1651 the insertions, deletions, and modifications per file. It is useful for
1652 reviewing large, complex patch files.")
1653 (license (license:x11-style "file://COPYING"))))
1661 (uri (string-append "mirror://gnu/" name "/CSSC-"
1665 "1vsisqq573xjr2qpn19iwmpqgl3mq03m790akpa4rvj60b4d1gni"))))
1666 (build-system gnu-build-system)
1669 (modify-phases %standard-phases
1670 (add-before 'check 'precheck
1673 (substitute* "tests/common/test-common"
1674 (("/bin/pwd") (which "pwd")))
1676 (substitute* "tests/prt/all-512.sh"
1677 (("/bin/sh") (which "sh")))
1679 ;; XXX: This test has no hope of passing until there is a "nogroup"
1680 ;; entry (or at least some group to which the guix builder does
1681 ;; not belong) in the /etc/group file of the build environment.
1682 ;; Currently we do not have such a group. Disable this test for now.
1683 (substitute* "tests/Makefile"
1684 (("test-delta ") ""))))))))
1685 ;; These are needed for the tests
1686 (native-inputs `(("git" ,git)
1688 (home-page "https://www.gnu.org/software/cssc/")
1689 (synopsis "File-based version control like SCCS")
1690 (description "GNU CSSC provides a replacement for the legacy Unix source
1691 code control system SCCS. This allows old code still under that system to be
1692 accessed and migrated on modern systems.")
1693 (license license:gpl3+)))
1695 ;; This package can unfortunately work only in -TEST mode, since Aegis
1696 ;; requires that it is installed setuid root.
1697 (define-public aegis
1703 (uri (string-append "mirror://sourceforge/aegis/aegis/" version
1704 "/aegis-" version ".tar.gz"))
1707 "18s86ssarfmc4l17gbpzybca29m5wa37cbaimdji8czlcry3mcjl"))
1708 (patches (search-patches "aegis-perl-tempdir1.patch"
1709 "aegis-perl-tempdir2.patch"
1710 "aegis-test-fixup-1.patch"
1711 "aegis-test-fixup-2.patch"
1712 "aegis-constness-error.patch"))))
1713 (build-system gnu-build-system)
1715 `(("e2fsprogs" ,e2fsprogs)
1718 ("libxml2" ,libxml2)
1720 ("gettext" ,gettext-minimal)))
1725 ;; Various tests require the following:
1729 ("subversion" ,subversion)
1733 `(#:configure-flags (list "--with-no-aegis-configured"
1734 "--sharedstatedir=/var/com/aegis")
1735 #:parallel-build? #f ; There are some nasty racy rules in the Makefile.
1737 (modify-phases %standard-phases
1738 (add-before 'configure 'pre-conf
1740 (substitute* (append '("configure"
1741 "etc/check-tar-gz.sh"
1745 "script/aebisect.in"
1746 "script/aeintegratq.in"
1748 "script/test_funcs.in"
1749 "web/eg_oss_templ.sh"
1751 "libaegis/getpw_cache.cc")
1752 (find-files "test" "\\.sh"))
1753 (("/bin/sh") (which "sh")))
1754 (setenv "SH" (which "sh"))
1758 (let ((home (string-append (getcwd) "/my-new-home")))
1759 ;; Some tests need to write to $HOME.
1761 (setenv "HOME" home)
1763 ;; This test assumes that flex has been symlinked to "lex".
1764 (substitute* "test/00/t0011a.sh"
1765 (("type lex") "type flex"))
1767 ;; XXX Disable tests that fail, for unknown reasons, ‘for now’.
1769 (lambda (test) (substitute* "Makefile"
1770 (((string-append "test/" test "\\.ES ")) "")))
1775 ;; The author decided to call the check rule "sure".
1776 (invoke "make" "sure")))))))
1777 (home-page "http://aegis.sourceforge.net")
1778 (synopsis "Project change supervisor")
1779 (description "Aegis is a project change supervisor, and performs some of
1780 the Software Configuration Management needed in a CASE environment. Aegis
1781 provides a framework within which a team of developers may work on many
1782 changes to a program independently, and Aegis coordinates integrating these
1783 changes back into the master source of the program, with as little disruption
1784 as possible. Resolution of contention for source files, a major headache for
1785 any project with more than one developer, is one of Aegis's major functions.")
1786 (license license:gpl3+)))
1788 (define-public reposurgeon
1790 (name "reposurgeon")
1794 (uri (string-append "http://www.catb.org/~esr/" name "/"
1795 name "-" version ".tar.xz"))
1798 "1af0z14wcm4bk5a9ysinbwq2fp3lf5f7i8mvwh7286hr3fnagcaz"))
1799 (patches (search-patches
1800 "reposurgeon-add-missing-docbook-files.patch"))))
1801 (build-system gnu-build-system)
1805 (string-append "target=" (assoc-ref %outputs "out")))
1807 (modify-phases %standard-phases
1808 (add-after 'unpack 'patch-inputs
1809 (lambda* (#:key inputs #:allow-other-keys)
1810 (let ((tzdata (assoc-ref inputs "tzdata")))
1811 (substitute* "reposurgeon"
1812 (("/usr/share/zoneinfo")
1813 (string-append tzdata "/share/zoneinfo")))
1814 (substitute* "test/svn-to-svn"
1815 (("/bin/echo") "echo"))
1817 (delete 'configure) ; no configure script
1818 (add-before 'build 'fix-docbook
1819 (lambda* (#:key inputs #:allow-other-keys)
1820 (substitute* (find-files "." "\\.xml$")
1821 (("docbook/docbookx.dtd")
1822 (string-append (assoc-ref inputs "docbook-xml")
1823 "/xml/dtd/docbook/docbookx.dtd")))
1825 (add-before 'check 'set-up-test-environment
1826 (lambda* (#:key inputs #:allow-other-keys)
1827 (let ((tzdata (assoc-ref inputs "tzdata")))
1828 (setenv "TZDIR" (string-append tzdata "/share/zoneinfo"))
1830 (add-after 'install 'install-emacs-data
1831 (lambda* (#:key outputs #:allow-other-keys)
1832 (install-file "reposurgeon-mode.el"
1833 (string-append (assoc-ref outputs "out")
1834 "/share/emacs/site-lisp"))
1837 `(("python" ,python-wrapper)
1838 ("tzdata" ,tzdata)))
1840 `( ;; For building documentation.
1841 ("asciidoc" ,asciidoc)
1842 ("docbook-xml" ,docbook-xml)
1843 ("docbook-xsl" ,docbook-xsl)
1844 ("libxml2" ,libxml2)
1850 ("mercurial" ,mercurial)
1851 ("subversion" ,subversion)))
1852 (home-page "http://www.catb.org/~esr/reposurgeon/")
1853 (synopsis "Edit version-control repository history")
1854 (description "Reposurgeon enables risky operations that version-control
1855 systems don't want to let you do, such as editing past comments and metadata
1856 and removing commits. It works with any version control system that can
1857 export and import Git fast-import streams, including Git, Mercurial, Fossil,
1858 Bazaar, CVS, RCS, and Src. It can also read Subversion dump files directly
1859 and can thus be used to script production of very high-quality conversions
1860 from Subversion to any supported Distributed Version Control System (DVCS).")
1861 ;; Most files are distributed under bsd-2, except 'repocutter' which is
1863 (license (list license:bsd-2 license:bsd-3))))
1872 "https://github.com/jonas/tig/releases/download/tig-"
1873 version "/tig-" version ".tar.gz"))
1876 "1x5famvvs93ih7sr11x7m33dksb1k7zs1s3c4zkyf0cjmxkpqlzz"))))
1877 (build-system gnu-build-system)
1879 `(("asciidoc" ,asciidoc)
1882 `(("ncurses" ,ncurses)
1883 ("readline" ,readline)))
1886 (modify-phases %standard-phases
1887 (add-after 'install 'install-doc
1889 (invoke "make" "install-doc"))))
1890 #:tests? #f)) ; tests require access to /dev/tty
1891 ;; #:test-target "test"))
1892 (home-page "https://jonas.github.io/tig/")
1893 (synopsis "Ncurses-based text user interface for Git")
1895 "Tig is an ncurses text user interface for Git, primarily intended as
1896 a history browser. It can also stage hunks for commit, or colorize the
1897 output of the @code{git} command.")
1898 (license license:gpl2+)))
1900 (define-public findnewest
1908 (url "https://github.com/0-wiz-0/findnewest.git")
1909 (commit (string-append "findnewest-" version))))
1910 (file-name (git-file-name name version))
1912 (base32 "1x1cbn2b27h5r0ah5xc06fkalfdci2ngrgd4wibxjw0h88h0nvgq"))))
1913 (build-system gnu-build-system)
1914 (native-inputs `(("autoconf" ,autoconf)
1915 ("automake" ,automake)))
1916 (home-page "https://github.com/0-wiz-0/findnewest/releases")
1917 (synopsis "Print the modification time of the latest file")
1919 "Recursively find the newest file in a file tree and print its
1920 modification time.")
1921 (license license:bsd-2)))
1923 (define-public myrepos
1926 (version "1.20180726")
1931 (url "git://myrepos.branchable.com/myrepos")
1933 (file-name (string-append name "-" version "-checkout"))
1935 (base32 "0jphw61plm8cgklja6hs639xhdvxgvjwbr6jpvjwpp7hc5gmhms5"))))
1936 (build-system gnu-build-system)
1938 '(#:test-target "test"
1939 #:make-flags (list (string-append "PREFIX=" %output))
1941 (modify-phases %standard-phases
1943 (add-after 'install 'wrap-webcheckout
1944 (lambda* (#:key inputs outputs #:allow-other-keys)
1945 (let ((out (assoc-ref outputs "out")))
1946 (wrap-program (string-append out "/bin/webcheckout")
1947 `("PERL5LIB" ":" prefix
1948 ,(map (lambda (i) (string-append (assoc-ref inputs i)
1949 "/lib/perl5/site_perl"))
1950 '("perl-encode-locale" "perl-http-date"
1951 "perl-http-message" "perl-html-parser" "perl-libwww"
1952 "perl-uri" "perl-try-tiny"))))
1956 ("perl-encode-locale" ,perl-encode-locale)
1957 ("perl-html-parser" ,perl-html-parser)
1958 ("perl-http-date" ,perl-http-date)
1959 ("perl-http-message" ,perl-http-message)
1960 ("perl-libwww" ,perl-libwww)
1961 ("perl-try-tiny" ,perl-try-tiny)
1962 ("perl-uri" ,perl-uri)))
1963 (home-page "https://myrepos.branchable.com/")
1964 (synopsis "Multiple repository management tool")
1966 "Myrepos provides the @code{mr} command, which maps an operation (e.g.,
1967 fetching updates) over a collection of version control repositories. It
1968 supports a large number of version control systems: Git, Subversion,
1969 Mercurial, Bazaar, Darcs, CVS, Fossil, and Veracity.")
1970 (license license:gpl2+)))
1972 (define-public git-annex-remote-hubic
1974 (name "git-annex-remote-hubic")
1980 (url "https://github.com/Schnouki/git-annex-remote-hubic.git")
1981 (commit (string-append "v" version))))
1982 (file-name (git-file-name name version))
1984 (base32 "16y9sk67hfi17h9n2kkffyabfccksh5rab40hhk69v6cxmbpn2sx"))))
1985 (build-system python-build-system)
1986 (arguments `(#:python ,python-2))
1989 ("python2-six" ,python2-six)))
1991 `(("python2-dateutil" ,python2-dateutil)
1992 ("python2-futures" ,python2-futures)
1993 ("python2-rauth" ,python2-rauth)
1994 ("python2-swiftclient" ,python2-swiftclient)))
1995 (home-page "https://github.com/Schnouki/git-annex-remote-hubic/")
1996 (synopsis "Use hubic as a git-annex remote")
1998 "This package allows you to use your hubic account as a \"special
1999 repository\" with git-annex.")
2000 (license license:gpl3+)))
2002 (define-public git-annex-remote-rclone
2004 (name "git-annex-remote-rclone")
2010 (url "https://github.com/DanielDent/git-annex-remote-rclone.git")
2011 (commit (string-append "v" version))))
2012 (file-name (git-file-name name version))
2015 "0j0hlxji8d974fq7zd4xc02n0jpi31ylhxc7z4zp8iiwad5mkpxp"))))
2016 (build-system trivial-build-system)
2018 `(#:modules ((guix build utils))
2021 (use-modules (guix build utils))
2022 (let ((bash (string-append (assoc-ref %build-inputs "bash")
2024 (rclone (string-append (assoc-ref %build-inputs "rclone")
2026 (copy-file (string-append (assoc-ref %build-inputs "source")
2027 "/git-annex-remote-rclone")
2028 "git-annex-remote-rclone")
2029 (substitute* "git-annex-remote-rclone"
2030 (("/bin/bash") bash)
2031 (("runcmd rclone") (string-append "runcmd " rclone)))
2032 (install-file "git-annex-remote-rclone"
2033 (string-append %output "/bin"))
2037 ("rclone" ,rclone)))
2038 (home-page "https://github.com/DanielDent/git-annex-remote-rclone")
2039 (synopsis "Use rclone-supported cloud storage providers with git-annex")
2040 (description "This wrapper around rclone makes any destination supported
2041 by rclone usable with git-annex.")
2042 (license license:gpl3+)))
2044 (define-public fossil
2051 ;; Older downloads are moved to another URL.
2054 "https://www.fossil-scm.org/index.html/uv/download/"
2055 "fossil-src-" version ".tar.gz")
2057 "https://www.fossil-scm.org/index.html/uv/"
2058 "fossil-src-" version ".tar.gz")))
2061 "0pbinf8d2kj1j7niblhzjd2l2khg6r2pn2xvig6gavz27p3vwcka"))
2062 (modules '((guix build utils)))
2065 (delete-file-recursively "compat") #t))))
2066 (build-system gnu-build-system)
2068 `(("tcl" ,tcl) ;for configuration only
2069 ("which" ,which) ;for tests only
2072 `(("openssl" ,openssl)
2074 ("sqlite" ,sqlite)))
2076 `(#:configure-flags (list "--with-openssl=auto"
2077 "--disable-internal-sqlite")
2078 #:test-target "test"
2079 #:phases (modify-phases %standard-phases
2080 (add-after 'patch-source-shebangs 'patch-sh
2082 (substitute* '("auto.def")
2083 (("/bin/sh") (which "sh")))
2086 (lambda* (#:key outputs (configure-flags '())
2088 ;; The 'configure' script is not an autoconf script and
2089 ;; chokes on unrecognized options.
2092 (string-append "--prefix="
2093 (assoc-ref outputs "out"))
2096 (add-before 'check 'test-setup
2098 (setenv "USER" "guix")
2101 (home-page "https://fossil-scm.org")
2102 (synopsis "Software configuration management system")
2104 "Fossil is a distributed source control management system which supports
2105 access and administration over HTTP CGI or via a built-in HTTP server. It has
2106 a built-in wiki, built-in file browsing, built-in tickets system, etc.")
2107 (license (list license:public-domain ;src/miniz.c, src/shell.c
2110 (define-public stagit
2116 (uri (string-append "https://dl.2f30.org/releases/"
2117 name "-" version ".tar.gz"))
2120 "1m3s9g1z9szbjrhm8sic91xh6f2bfpi56rskdkqd5wc4wdycpyi5"))))
2121 (build-system gnu-build-system)
2123 `(#:tests? #f ; No tests
2124 #:make-flags (list "CC=gcc"
2125 (string-append "PREFIX=" %output))
2127 (modify-phases %standard-phases
2128 (delete 'configure)))) ; No configure script
2130 `(("libgit2" ,libgit2)))
2131 (home-page "https://2f30.org/")
2132 (synopsis "Static git page generator")
2133 (description "Stagit creates static pages for git repositories, the results can
2134 be served with a HTTP file server of your choice.")
2135 (license license:expat)))
2137 (define-public gource
2144 "https://github.com/acaudwell/Gource/releases/download"
2145 "/gource-" version "/gource-" version ".tar.gz"))
2148 "12hf5ipcsp9dxsqn84n4kr63xaiskrnf5a084wr29qk171lj7pd9"))))
2149 (build-system gnu-build-system)
2152 (list (string-append "--with-boost-libdir="
2153 (assoc-ref %build-inputs "boost")
2156 `(("pkg-config" ,pkg-config)))
2166 ("sdl-union" ,(sdl-union (list sdl2 sdl2-image)))))
2167 (home-page "http://gource.io/")
2168 (synopsis "3D visualisation tool for source control repositories")
2169 (description "@code{gource} provides a software version control
2170 visualization. The repository is displayed as a tree where the root of the
2171 repository is the centre, directories are branches and files are leaves.
2172 Contributors to the source code appear and disappear as they contribute to
2173 specific files and directories.")
2174 (license license:gpl3+)))
2183 "http://www.catb.org/~esr/src/src-" version ".tar.gz"))
2186 "0n0skhvya8w2az45h2gsafxy8m2mvqas64nrgxifcmrzfv0rf26c"))))
2187 (build-system gnu-build-system)
2190 (list (string-append "prefix=" (assoc-ref %outputs "out")))
2192 (modify-phases %standard-phases
2193 (delete 'configure) ; no 'configure' script
2194 (add-after 'install 'wrap-program
2195 (lambda* (#:key inputs outputs #:allow-other-keys)
2196 (let* ((out (assoc-ref outputs "out"))
2197 (prog (string-append out "/bin/src"))
2198 (rcs (assoc-ref inputs "rcs")))
2200 `("PATH" ":" prefix (,(string-append rcs "/bin"))))
2204 (setenv "HOME" (getenv "TMPDIR"))
2205 (invoke "git" "config" "--global" "user.name" "guix")
2206 (invoke "git" "config" "--global" "user.email" "guix")
2207 (invoke "./srctest"))))))
2213 `(("python" ,python-wrapper)
2215 (synopsis "Simple revision control")
2216 (home-page "http://www.catb.org/~esr/src/")
2218 "SRC (or src) is simple revision control, a version-control system for
2219 single-file projects by solo developers and authors. It modernizes the
2220 venerable RCS, hence the anagrammatic acronym. The design is tuned for use
2221 cases like all those little scripts in your @file{~/bin} directory, or a
2222 directory full of HOWTOs.")
2223 (license license:bsd-2)))
2225 (define-public git-when-merged
2226 ;; Use an unreleased version to get a PY3 compatibility fix.
2227 (let ((commit "ab6af7865a0ba55ba364a6c507e0be6f84f31c6d"))
2229 (name "git-when-merged")
2230 (version (string-append "1.2.0-" (string-take commit 7)))
2234 (url "https://github.com/mhagger/git-when-merged/")
2236 (file-name (git-file-name name version))
2239 "0iyk2psf97bc9h43m89p3xjmm79fsx99i7px29g4lcnmdy5kmz0p"))))
2240 (build-system gnu-build-system)
2242 `(#:tests? #f ; there are no tests
2244 (modify-phases %standard-phases
2248 (lambda* (#:key outputs #:allow-other-keys)
2249 (install-file "bin/git-when-merged"
2250 (string-append (assoc-ref outputs "out")
2253 (add-before 'install 'patch-git
2254 (lambda* (#:key inputs #:allow-other-keys)
2255 (let ((git (string-append (assoc-ref inputs "git")
2257 (substitute* "bin/git-when-merged"
2258 (("'git'") (string-append "'" git "'")))
2260 (add-after 'install 'wrap-script
2261 (lambda* (#:key outputs #:allow-other-keys)
2262 (wrap-program (string-append (assoc-ref outputs "out")
2263 "/bin/git-when-merged")
2264 `("PYTHONPATH" ":" prefix (,(getenv "PYTHONPATH"))))
2268 ("python" ,python-wrapper)))
2269 (home-page "https://github.com/mhagger/git-when-merged")
2270 (synopsis "Determine when a commit was merged into a Git branch")
2271 (description "This Git extension defines a subcommand,
2272 @code{when-merged}, whose core operation is to find the merge that brought a
2273 given commit into the specified ref(s). It has various options that control
2274 how information about the merge is displayed.")
2275 (license license:gpl2+))))
2277 (define-public git-imerge
2285 (url "https://github.com/mhagger/git-imerge.git")
2286 (commit (string-append "v" version))))
2287 (file-name (git-file-name name version))
2289 (base32 "0vi1w3f0yk4gqhxj2hzqafqq28rihyhyfnp8x7xzib96j2si14a4"))))
2290 (build-system gnu-build-system)
2292 `(#:tests? #f ; only manual test scripts
2293 #:make-flags (list (string-append "DESTDIR=" %output)
2296 (modify-phases %standard-phases
2298 (add-before 'install 'patch-git
2299 (lambda* (#:key inputs #:allow-other-keys)
2300 (let ((git (string-append (assoc-ref inputs "git")
2302 (substitute* "git-imerge"
2303 (("'git'") (string-append "'" git "'")))
2305 (add-after 'install 'wrap-script
2306 (lambda* (#:key outputs #:allow-other-keys)
2307 (wrap-program (string-append (assoc-ref outputs "out")
2309 `("PYTHONPATH" ":" prefix (,(getenv "PYTHONPATH"))))
2313 ("python" ,python-wrapper)))
2314 (home-page "https://github.com/mhagger/git-imerge")
2315 (synopsis "Incremental merge for Git")
2316 (description "This Git extension defines a subcommand, @code{imerge},
2317 which performs an incremental merge between two branches. Its two primary
2318 design goals are to reduce the pain of resolving merge conflicts by finding
2319 the smallest possible conflicts and to allow a merge to be saved, tested,
2320 interrupted, published, and collaborated on while in progress.")
2321 (license license:gpl2+)))
2323 (define-public git-lfs
2330 (url "https://github.com/git-lfs/git-lfs")
2331 (commit (string-append "v" version))))
2332 (file-name (git-file-name name version))
2335 "1nf40rbdz901vsahg5cm09pznpina6wimmxl0lmh8pn0mi51yzvc"))))
2336 (build-system go-build-system)
2338 '(#:import-path "github.com/git-lfs/git-lfs"))
2339 (home-page "https://git-lfs.github.com/")
2340 (synopsis "Git extension for versioning large files")
2342 "Git Large File Storage (LFS) replaces large files such as audio samples,
2343 videos, datasets, and graphics with text pointers inside Git, while storing the
2344 file contents on a remote server.")
2345 (license license:expat)))