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 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 Eric Bavier <bavier@member.fsf.org>
9 ;;; Copyright © 2015, 2016, 2017, 2018 Efraim Flashner <efraim@flashner.co.il>
10 ;;; Copyright © 2015 Kyle Meyer <kyle@kyleam.com>
11 ;;; Copyright © 2015, 2017 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 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 Marius Bakke <mbakke@fastmail.com>
19 ;;; Copyright © 2017 Stefan Reichör <stefan@xsteve.at>
20 ;;; Copyright © 2017 Oleg Pykhalov <go.wigust@gmail.com>
22 ;;; This file is part of GNU Guix.
24 ;;; GNU Guix is free software; you can redistribute it and/or modify it
25 ;;; under the terms of the GNU General Public License as published by
26 ;;; the Free Software Foundation; either version 3 of the License, or (at
27 ;;; your option) any later version.
29 ;;; GNU Guix is distributed in the hope that it will be useful, but
30 ;;; WITHOUT ANY WARRANTY; without even the implied warranty of
31 ;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
32 ;;; GNU General Public License for more details.
34 ;;; You should have received a copy of the GNU General Public License
35 ;;; along with GNU Guix. If not, see <http://www.gnu.org/licenses/>.
37 (define-module (gnu packages version-control)
38 #:use-module ((guix licenses) #:prefix license:)
39 #:use-module (guix utils)
40 #:use-module (guix packages)
41 #:use-module (guix download)
42 #:use-module (guix git-download)
43 #:use-module (guix build-system ant)
44 #:use-module (guix build-system cmake)
45 #:use-module (guix build-system gnu)
46 #:use-module (guix build-system haskell)
47 #:use-module (guix build-system python)
48 #:use-module (guix build-system trivial)
49 #:use-module (gnu packages apr)
50 #:use-module (gnu packages autotools)
51 #:use-module (gnu packages documentation)
52 #:use-module (gnu packages base)
53 #:use-module (gnu packages bison)
54 #:use-module (gnu packages boost)
55 #:use-module (gnu packages cook)
56 #:use-module (gnu packages curl)
57 #:use-module (gnu packages docbook)
58 #:use-module (gnu packages ed)
59 #:use-module (gnu packages file)
60 #:use-module (gnu packages flex)
61 #:use-module (gnu packages gettext)
62 #:use-module (gnu packages gl)
63 #:use-module (gnu packages groff)
64 #:use-module (gnu packages haskell)
65 #:use-module (gnu packages haskell-check)
66 #:use-module (gnu packages haskell-crypto)
67 #:use-module (gnu packages haskell-web)
68 #:use-module (gnu packages image)
69 #:use-module (gnu packages java)
70 #:use-module (gnu packages linux)
71 #:use-module (gnu packages maths)
72 #:use-module (gnu packages nano)
73 #:use-module (gnu packages ncurses)
74 #:use-module (gnu packages ssh)
75 #:use-module (gnu packages web)
76 #:use-module (gnu packages openstack)
77 #:use-module (gnu packages pcre)
78 #:use-module (gnu packages perl)
79 #:use-module (gnu packages perl-check)
80 #:use-module (gnu packages pkg-config)
81 #:use-module (gnu packages python)
82 #:use-module (gnu packages python-web)
83 #:use-module (gnu packages readline)
84 #:use-module (gnu packages databases)
85 #:use-module (gnu packages admin)
86 #:use-module (gnu packages xml)
87 #:use-module (gnu packages emacs)
88 #:use-module (gnu packages compression)
89 #:use-module (gnu packages sdl)
90 #:use-module (gnu packages swig)
91 #:use-module (gnu packages tcl)
92 #:use-module (gnu packages time)
93 #:use-module (gnu packages tls)
94 #:use-module (gnu packages)
95 #:use-module (ice-9 match)
96 #:use-module (srfi srfi-1))
105 (uri (string-append "https://launchpad.net/bzr/"
106 (version-major+minor version) "/" version
107 "/+download/bzr-" version ".tar.gz"))
108 (patches (search-patches "bazaar-CVE-2017-14176.patch"))
111 "1cysix5k3wa6y7jjck3ckq3abls4gvz570s0v0hxv805nwki4i8d"))))
112 (build-system python-build-system)
114 ;; Note: 'tools/packaging/lp-upload-release' and 'tools/weavemerge.sh'
116 `(("gettext" ,gettext-minimal)))
118 `(#:tests? #f ; no test target
119 #:python ,python-2 ; Python 3 apparently not yet supported, see
120 ; https://answers.launchpad.net/bzr/+question/229048
122 (modify-phases %standard-phases
123 (add-after 'unpack 'fix-mandir
125 (substitute* "setup.py"
126 (("man/man1") "share/man/man1"))
128 (home-page "https://gnu.org/software/bazaar")
129 (synopsis "Version control system supporting both distributed and centralized workflows")
131 "GNU Bazaar is a version control system that allows you to record
132 changes to project files over time. It supports both a distributed workflow
133 as well as the classic centralized workflow.")
134 (license license:gpl2+)))
139 ;; XXX When updating Git, check if the special 'git:src' input to cgit needs
140 ;; to be updated as well.
144 (uri (string-append "mirror://kernel.org/software/scm/git/git-"
148 "06gay8k29glg4giwphjalcc1fknxw4bmxkmbr3ic3gzxy8vl7bfg"))))
149 (build-system gnu-build-system)
151 `(("native-perl" ,perl)
152 ("gettext" ,gettext-minimal)
157 "mirror://kernel.org/software/scm/git/git-manpages-"
161 "1ympib7kd818v4wjgfrhxjrmv91n50lgxxg0i9gcqihgy3divrlp"))))))
167 ("python" ,python-2) ; CAVEAT: incompatible with python-3 according to INSTALL
171 ("perl-cgi" ,perl-cgi)
174 ("subversion" ,subversion)
175 ("perl-term-readkey" ,perl-term-readkey)
177 ;; For 'git-send-email'
178 ("perl-authen-sasl" ,perl-authen-sasl)
179 ("perl-net-smtp-ssl" ,perl-net-smtp-ssl)
180 ("perl-io-socket-ssl" ,perl-io-socket-ssl)
182 ;; For 'git gui', 'gitk', and 'git citool'.
185 (outputs '("out" ; the core
186 "send-email" ; for git-send-email
188 "gui")) ; gitk, git gui
190 `(#:make-flags `("V=1" ;more verbose compilation
192 ;; By default 'make install' creates hard links for
193 ;; things in 'libexec/git-core', which leads to huge
194 ;; nars; see <https://bugs.gnu.org/21949>.
195 "NO_INSTALL_HARDLINKS=indeed")
198 ;; Tests fail randomly when parallel: <https://bugs.gnu.org/29512>.
201 ;; The explicit --with-tcltk forces the build system to hardcode the
202 ;; absolute file name to 'wish'.
203 #:configure-flags (list (string-append "--with-tcltk="
204 (assoc-ref %build-inputs "tk")
205 "/bin/wish8.6")) ; XXX
207 #:modules ((srfi srfi-1)
208 ,@%gnu-build-system-modules)
210 (modify-phases %standard-phases
211 (add-after 'configure 'patch-makefiles
213 (substitute* "Makefile"
214 (("/bin/sh") (which "sh"))
215 (("/usr/bin/perl") (which "perl"))
216 (("/usr/bin/python") (which "python")))
217 (substitute* "perl/Makefile"
218 ;; Don't create timestamped 'perllocal.pod'.
219 (("\\$< PREFIX=") "$< NO_PERLLOCAL=1 PREFIX="))
221 (add-after 'configure 'add-PM.stamp
223 ;; Add the "PM.stamp" to avoid "no rule to make target".
224 (call-with-output-file "perl/PM.stamp" (const #t))
226 (add-before 'check 'patch-tests
228 ;; These files contain some funny bytes that Guile is unable
229 ;; to decode for shebang patching. Just delete them.
230 (for-each delete-file '("t/t4201-shortlog.sh"
231 "t/t7813-grep-icase-iso.sh"))
232 ;; Many tests contain inline shell scripts (hooks etc).
233 (substitute* (find-files "t" "\\.sh$")
234 (("#!/bin/sh") (string-append "#!" (which "sh"))))
235 ;; Un-do shebang patching here to prevent checksum mismatch.
236 (substitute* '("t/t4034/perl/pre" "t/t4034/perl/post")
237 (("^#!.*/bin/perl") "#!/usr/bin/perl"))
238 (substitute* "t/t5003-archive-zip.sh"
239 (("cp /bin/sh") (string-append "cp " (which "sh"))))
240 (substitute* "t/t6030-bisect-porcelain.sh"
241 (("\"/bin/sh\"") (string-append "\"" (which "sh") "\"")))
242 ;; FIXME: This test runs `git commit` with a bogus EDITOR
243 ;; and empty commit message, but does not fail the way it's
244 ;; expected to. The test passes when invoked interactively.
245 (substitute* "t/t7508-status.sh"
246 (("\tcommit_template_commented") "\ttrue"))
247 ;; More checksum mismatches due to odd shebangs.
248 (substitute* "t/t9100-git-svn-basic.sh"
249 (("\"#!/gnu.*/bin/sh") "\"#!/bin/sh"))
250 (substitute* "t/t9300-fast-import.sh"
251 (("\t#!/gnu.*/bin/sh") "\t#!/bin/sh")
252 (("'#!/gnu.*/bin/sh") "'#!/bin/sh"))
253 ;; FIXME: Some hooks fail with "basename: command not found".
254 ;; See 't/trash directory.t9164.../svn-hook.log'.
255 (delete-file "t/t9164-git-svn-dcommit-concurrent.sh")
257 ;; XXX: These tests fail intermittently for unknown reasons:
258 ;; <https://bugs.gnu.org/29546>.
259 (for-each delete-file
260 '("t/t9128-git-svn-cmd-branch.sh"
261 "t/t9167-git-svn-cmd-branch-subproject.sh"
262 "t/t9141-git-svn-multiple-branches.sh"))
264 (add-after 'install 'install-shell-completion
265 (lambda* (#:key outputs #:allow-other-keys)
266 (let* ((out (assoc-ref outputs "out"))
267 (completions (string-append out "/etc/bash_completion.d")))
268 ;; TODO: Install the tcsh and zsh completions in the right place.
269 (mkdir-p completions)
270 (copy-file "contrib/completion/git-completion.bash"
271 (string-append completions "/git"))
273 (add-after 'install 'split
274 (lambda* (#:key inputs outputs #:allow-other-keys)
275 ;; Split the binaries to the various outputs.
276 (let* ((out (assoc-ref outputs "out"))
277 (se (assoc-ref outputs "send-email"))
278 (svn (assoc-ref outputs "svn"))
279 (gui (assoc-ref outputs "gui"))
280 (gitk (string-append out "/bin/gitk"))
281 (gitk* (string-append gui "/bin/gitk"))
282 (git-gui (string-append out "/libexec/git-core/git-gui"))
283 (git-gui* (string-append gui "/libexec/git-core/git-gui"))
284 (git-cit (string-append out "/libexec/git-core/git-citool"))
285 (git-cit* (string-append gui "/libexec/git-core/git-citool"))
286 (git-se (string-append out "/libexec/git-core/git-send-email"))
287 (git-se* (string-append se "/libexec/git-core/git-send-email"))
288 (git-svn (string-append out "/libexec/git-core/git-svn"))
289 (git-svn* (string-append svn "/libexec/git-core/git-svn"))
290 (git-sm (string-append out
291 "/libexec/git-core/git-submodule")))
292 (mkdir-p (string-append gui "/bin"))
293 (mkdir-p (string-append gui "/libexec/git-core"))
294 (mkdir-p (string-append se "/libexec/git-core"))
295 (mkdir-p (string-append svn "/libexec/git-core"))
297 (for-each (lambda (old new)
301 (list gitk git-gui git-cit git-se git-svn)
302 (list gitk* git-gui* git-cit* git-se* git-svn*))
304 ;; Tell 'git-svn' where Subversion and perl-term-readkey are.
305 (wrap-program git-svn*
307 (,(string-append (assoc-ref inputs "subversion")
309 `("PERL5LIB" ":" prefix
310 ,(map (lambda (i) (string-append (assoc-ref inputs i)
311 "/lib/perl5/site_perl"))
312 '("subversion" "perl-term-readkey")))
314 ;; XXX: The .so for SVN/Core.pm lacks a RUNPATH, so
315 ;; help it find 'libsvn_client-1.so'.
316 `("LD_LIBRARY_PATH" ":" prefix
317 (,(string-append (assoc-ref inputs "subversion")
320 ;; Tell 'git-send-email' where perl modules are.
321 (wrap-program git-se*
322 `("PERL5LIB" ":" prefix
323 ,(map (lambda (o) (string-append o "/lib/perl5/site_perl"))
325 ,@(transitive-input-references
331 "perl-io-socket-ssl")))))))
333 ;; Tell 'gitweb.cgi' where perl modules are.
334 (wrap-program (string-append out "/share/gitweb/gitweb.cgi")
335 `("PERL5LIB" ":" prefix
336 ,(map (lambda (o) (string-append o "/lib/perl5/site_perl"))
338 ,@(transitive-input-references
344 ;; Tell 'git-submodule' where Perl is.
347 (,(string-append (assoc-ref inputs "perl")
349 (add-after 'split 'install-man-pages
350 (lambda* (#:key inputs outputs #:allow-other-keys)
351 (let* ((out (assoc-ref outputs "out"))
352 (man (string-append out "/share/man"))
353 (manpages (assoc-ref inputs "git-manpages")))
355 (with-directory-excursion man
356 (zero? (system* "tar" "xvf" manpages)))))))))
359 ;; For HTTPS access, Git needs a single-file certificate bundle, specified
360 ;; with $GIT_SSL_CAINFO.
361 (list (search-path-specification
362 (variable "GIT_SSL_CAINFO")
364 (separator #f) ;single entry
365 (files '("etc/ssl/certs/ca-certificates.crt")))
366 (search-path-specification
367 (variable "GIT_EXEC_PATH")
368 (separator #f) ;single entry
369 (files '("libexec/git-core")))))
371 (synopsis "Distributed version control system")
373 "Git is a free distributed version control system designed to handle
374 everything from small to very large projects with speed and efficiency.")
375 (license license:gpl2)
376 (home-page "https://git-scm.com/")))
378 (define-public libgit2
384 (uri (string-append "https://github.com/libgit2/libgit2/"
385 "archive/v" version ".tar.gz"))
386 (file-name (string-append name "-" version ".tar.gz"))
389 "1b3figbhp5l83vd37vq6j2narrq4yl9pfw6mw0px0dzb1hz3jqka"))
390 (patches (search-patches "libgit2-0.25.1-mtime-0.patch"))
392 ;; Remove bundled software.
393 (snippet '(delete-file-recursively "deps"))
394 (modules '((guix build utils)))))
395 (build-system cmake-build-system)
396 (outputs '("out" "debug"))
398 `(#:configure-flags '("-DUSE_SHA1DC=ON") ; SHA-1 collision detection
400 (modify-phases %standard-phases
401 (add-after 'unpack 'fix-hardcoded-paths
403 (substitute* "tests/repo/init.c"
404 (("#!/bin/sh") (string-append "#!" (which "sh"))))
405 (substitute* "tests/clar/fs.h"
406 (("/bin/cp") (which "cp"))
407 (("/bin/rm") (which "rm")))
409 ;; Run checks more verbosely.
411 (lambda _ (zero? (system* "./libgit2_clar" "-v" "-Q")))))))
413 `(("libssh2" ,libssh2)
414 ("http-parser" ,http-parser)
415 ("python" ,python-wrapper)))
417 `(("pkg-config" ,pkg-config)))
419 ;; These two libraries are in 'Requires.private' in libgit2.pc.
420 `(("openssl" ,openssl)
422 (home-page "https://libgit2.github.com/")
423 (synopsis "Library providing Git core methods")
425 "Libgit2 is a portable, pure C implementation of the Git core methods
426 provided as a re-entrant linkable library with a solid API, allowing you to
427 write native speed custom Git applications in any language with bindings.")
428 ;; GPLv2 with linking exception
429 (license license:gpl2)))
431 (define-public git-crypt
437 (uri (string-append "https://github.com/AGWA/git-crypt"
438 "/archive/" version ".tar.gz"))
439 (file-name (string-append name "-" version ".tar.gz"))
442 "0454fdmgm5f3razkn8n03lfqm5zyzvr4r2528zmlxiwba9518l2i"))))
443 (build-system gnu-build-system)
446 ("openssl" ,openssl)))
448 `(#:tests? #f ; No tests.
450 (modify-phases %standard-phases
454 (zero? (system* "make"))))
456 (lambda* (#:key outputs #:allow-other-keys)
457 (let ((out (assoc-ref outputs "out")))
458 (zero? (system* "make" "install"
459 (string-append "PREFIX=" out)))))))))
460 (home-page "https://www.agwa.name/projects/git-crypt")
461 (synopsis "Transparent encryption of files in a git repository")
462 (description "git-crypt enables transparent encryption and decryption of
463 files in a git repository. Files which you choose to protect are encrypted when
464 committed, and decrypted when checked out. git-crypt lets you freely share a
465 repository containing a mix of public and private content. git-crypt gracefully
466 degrades, so developers without the secret key can still clone and commit to a
467 repository with encrypted files. This lets you store your secret material (such
468 as keys or passwords) in the same repository as your code, without requiring you
469 to lock down your entire repository.")
470 (license license:gpl3+)))
472 (define-public git-remote-gcrypt
474 (name "git-remote-gcrypt")
479 (url "https://git.spwhitton.name/git-remote-gcrypt")
481 (file-name (string-append name "-" version "-checkout"))
484 "0znrx77vpm4a8l7yiybsxk5vrawijqqfxmp1p2yhaaw8cbgrj7az"))))
485 (build-system trivial-build-system)
487 `(#:modules ((guix build utils))
489 (use-modules (guix build utils))
490 (let* ((source (assoc-ref %build-inputs "source"))
491 (output (assoc-ref %outputs "out"))
492 (bindir (string-append output "/bin")))
493 (install-file (string-append source "/git-remote-gcrypt")
496 (home-page "https://spwhitton.name/tech/code/git-remote-gcrypt/")
497 (synopsis "Whole remote repository encryption")
498 (description "git-remote-gcrypt is a Git remote helper to push and pull from
499 repositories encrypted with GnuPG. It works with the standard Git transports,
500 including repository hosting services like GitLab.
502 Remote helper programs are invoked by Git to handle network transport. This
503 helper handles @code{gcrypt:} URLs that access a remote repository encrypted
504 with GPG, using our custom format.
506 Supported locations are local, @code{rsync://} and @code{sftp://}, where the
507 repository is stored as a set of files, or instead any Git URL where gcrypt
508 will store the same representation in a Git repository, bridged over arbitrary
511 The aim is to provide confidential, authenticated Git storage and
512 collaboration using typical untrusted file hosts or services.")
513 (license license:gpl3+)))
518 ;; XXX When updating cgit, try removing the special 'git:src' input and
519 ;; using the source of the git package.
524 "https://git.zx2c4.com/cgit/snapshot/cgit-"
528 "142qcgs8dwnzhymn0a7xx47p9fc2z5wrb86ah4a9iz0mpqlsz288"))))
529 (build-system gnu-build-system)
531 '(#:tests? #f ; XXX: fail to build the in-source git.
533 #:make-flags '("CC=gcc" "SHELL_PATH=sh")
535 (modify-phases %standard-phases
536 (add-after 'unpack 'unpack-git
537 (lambda* (#:key inputs #:allow-other-keys)
538 ;; Unpack the source of git into the 'git' directory.
540 "tar" "--strip-components=1" "-C" "git" "-xf"
541 (assoc-ref inputs "git:src")))))
542 (add-after 'unpack 'patch-absolute-file-names
543 (lambda* (#:key inputs #:allow-other-keys)
544 (define (quoted-file-name input path)
545 (string-append "\"" input path "\""))
546 (substitute* "ui-snapshot.c"
548 (quoted-file-name (assoc-ref inputs "gzip") "/bin/gzip"))
550 (quoted-file-name (assoc-ref inputs "bzip2") "/bin/bzip2"))
552 (quoted-file-name (assoc-ref inputs "xz") "/bin/xz")))
554 (delete 'configure) ; no configure script
555 (add-after 'build 'build-man
556 (lambda* (#:key make-flags #:allow-other-keys)
557 (zero? (apply system* `("make" ,@make-flags "doc-man")))))
559 (lambda* (#:key make-flags outputs #:allow-other-keys)
560 (let ((out (assoc-ref outputs "out")))
561 (and (zero? (apply system*
562 `("make" ,@make-flags
563 ,(string-append "prefix=" out)
565 "CGIT_SCRIPT_PATH=" out "/share/cgit")
566 "install" "install-man")))
567 ;; Move the platform-dependent 'cgit.cgi' into lib
568 ;; to get it stripped.
569 (rename-file (string-append out "/share/cgit/cgit.cgi")
570 (string-append out "/lib/cgit/cgit.cgi"))
573 ;; For building manpage.
574 `(("asciidoc" ,asciidoc)
579 `(;; Cgit directly accesses some internal Git interfaces that changed in
580 ;; Git 2.12. Try removing this special input and using the source of the
581 ;; Git package for cgit > 1.1.
585 (uri "mirror://kernel.org/software/scm/git/git-2.10.5.tar.xz")
588 "1r2aa19gnrvm2y4fqcvpw1g9l72n48axqmpgv18s6d0y2p72vhzj"))))
591 (home-page "https://git.zx2c4.com/cgit/")
592 (synopsis "Web frontend for git repositories")
594 "CGit is an attempt to create a fast web interface for the Git SCM, using
595 a built-in cache to decrease server I/O pressure.")
596 (license license:gpl2)))
598 (define-public python-ghp-import
600 (name "python-ghp-import")
606 "https://github.com/davisp/ghp-import/archive/"
608 (file-name (string-append name "-" version ".tar.gz"))
611 "0x887v690xsac2hzjkpbvp3a6crh3m08mqbk3nb4xwc9dnk869q7"))))
612 (build-system python-build-system)
614 `(#:phases (modify-phases %standard-phases
615 (add-after 'install 'install-documentation
616 (lambda* (#:key outputs #:allow-other-keys)
617 (let* ((out (assoc-ref outputs "out"))
618 (doc (string-append out "/share/doc"))
619 (licenses (string-append out "/share/licenses")))
620 (install-file "README.md" doc)
621 (install-file "LICENSE" licenses)))))))
622 (home-page "https://github.com/davisp/ghp-import")
623 (synopsis "Copy directory to the gh-pages branch")
624 (description "Script that copies a directory to the gh-pages branch (by
625 default) of the repository.")
627 ;; See <https://bugs.gnu.org/27913>.
628 (license (license:non-copyleft
629 "https://raw.githubusercontent.com/davisp/ghp-import/master/LICENSE"
630 "Tumbolia Public License"))))
632 (define-public python2-ghp-import
633 (package-with-python2
634 (strip-python2-variant python-ghp-import)))
636 (define-public shflags
642 (uri (string-append "https://github.com/kward/shflags/archive/v"
646 "0zxw12haylaq60a335xlqcs4afw2zrgwqymmpw0m21r51w6irdmr"))))
647 (build-system trivial-build-system)
648 (native-inputs `(("tar" ,tar)
651 `(#:modules ((guix build utils))
653 (use-modules (guix build utils))
654 (let* ((source (assoc-ref %build-inputs "source"))
655 (tar (assoc-ref %build-inputs "tar"))
656 (gzip (assoc-ref %build-inputs "gzip"))
657 (output (assoc-ref %outputs "out"))
658 (srcdir (string-append output "/src")))
660 (setenv "PATH" (string-append gzip "/bin"))
661 (system* (string-append tar "/bin/tar") "xzf"
663 (chdir ,(string-append name "-" version))
665 (copy-file "src/shflags"
666 (string-append srcdir "/shflags"))
668 (home-page "https://github.com/kward/shflags")
669 (synopsis "Command-line flags library for shell scripts")
671 "Shell Flags (shFlags) is a library written to greatly simplify the
672 handling of command-line flags in Bourne based Unix shell scripts (bash, dash,
673 ksh, sh, zsh). Most shell scripts use getopt for flags processing, but the
674 different versions of getopt on various OSes make writing portable shell
675 scripts difficult. shFlags instead provides an API that doesn't change across
676 shell and OS versions so the script writer can be confident that the script
678 (license license:lgpl2.1)))
680 (define-public git-flow
683 ;; This version has not be officially released yet, so we build it
684 ;; directly from the git repository.
685 (version "0.4.2-pre")
689 (url "https://github.com/nvie/gitflow/")
690 (commit "15aab26490facf285acef56cb5d61025eacb3a69")))
693 "01fs97q76fdfnvmrh2cyjhywcs3pykf1dg58sy0frflnsdzs6prx"))))
694 (build-system gnu-build-system)
695 (inputs `(("shflags" ,shflags)))
697 '(#:tests? #f ; no tests
698 #:make-flags (list (string-append "prefix="
699 (assoc-ref %outputs "out")))
701 (modify-phases %standard-phases
702 (add-after 'unpack 'reset-shFlags-link
703 (lambda* (#:key inputs #:allow-other-keys)
704 ;; The link points to a file in the shFlags submodule.
705 ;; Redirect it to point to our system shFlags.
706 (let ((shflags (assoc-ref inputs "shflags")))
708 (delete-file "gitflow-shFlags")
709 (symlink (string-append shflags "/src/shflags")
710 "gitflow-shFlags")))))
713 (home-page "http://nvie.com/posts/a-successful-git-branching-model/")
714 (synopsis "Git extensions for Vincent Driessen's branching model")
716 "Vincent Driessen's branching model is a git branching and release
717 management strategy that helps developers keep track of features, hotfixes,
718 and releases in bigger software projects. The git-flow library of git
719 subcommands helps automate some parts of the flow to make working with it a
721 (license license:bsd-2)))
729 (uri (string-append "https://github.com/ctmarinas/stgit/archive/v"
731 (file-name (string-append name "-" version ".tar.gz"))
734 "19fk6vw3pgp2a98wpd4j3kyiyll5dy9bi4921wq1mrky0l53mj00"))))
735 (build-system python-build-system)
741 (modify-phases %standard-phases
744 ;; two tests will fail -> disable them. TODO: fix the failing tests
745 (delete-file "t/t3300-edit.sh")
746 (delete-file "t/t7504-commit-msg-hook.sh")
747 (zero? (system* "make" "test")))))))
748 (home-page "http://procode.org/stgit/")
749 (synopsis "Stacked Git")
751 "StGit is a command-line application that provides functionality similar
752 to Quilt (i.e., pushing/popping patches to/from a stack), but using Git
753 instead of @command{diff} and @command{patch}. StGit stores its patches in a
754 Git repository as normal Git commits, and provides a number of commands to
755 manipulate them in various ways.")
756 (license license:gpl2)))
761 (version "1.20151229")
764 (uri (string-append "https://github.com/RichiH/vcsh/archive/v"
766 (file-name (string-append name "-" version ".tar.gz"))
769 "1ym3swkh738c3vciffvlr96vqzhwmzkb8ajqzap8f0j9n039a1mf"))))
770 (build-system gnu-build-system)
776 ("perl-test-harness" ,perl-test-harness)
777 ("perl-shell-command" ,perl-shell-command)
778 ("perl-test-most" ,perl-test-most)))
780 '(#:phases (modify-phases %standard-phases
783 #:make-flags (list (string-append "PREFIX="
784 (assoc-ref %outputs "out")))
785 #:test-target "test"))
786 (home-page "https://github.com/RichiH/vcsh")
787 (synopsis "Version control system for @code{$HOME}")
789 "vcsh version-controls configuration files in several Git repositories,
790 all in one single directory. They all maintain their working trees without
791 clobbering each other or interfering otherwise. By default, all Git
792 repositories maintained via vcsh store the actual files in @code{$HOME},
793 though this can be overridden.")
794 (license license:gpl2+)))
796 (define-public git-test-sequence
797 (let ((commit "48e5a2f5a13a5f30452647237e23362b459b9c76"))
799 (name "git-test-sequence")
800 (version (string-append "20140312." (string-take commit 7)))
804 ;; There are many other scripts in this directory; we
805 ;; are interested in just one for this package.
806 (url "https://github.com/dustin/bindir")
810 "1dcq0y16yznbv4k9h8gg90kv1gkn8r8dbvl4m2rpfd7q5nqhn617"))))
811 (build-system trivial-build-system)
813 `(#:modules ((guix build utils))
815 (use-modules (guix build utils))
816 (let* ((source (assoc-ref %build-inputs "source"))
817 (output (assoc-ref %outputs "out"))
818 (bindir (string-append output "/bin"))
819 (script "git-test-sequence"))
820 (install-file (string-append source "/" script)
823 (home-page "http://dustin.sallings.org/2010/03/28/git-test-sequence.html")
824 (synopsis "Run a command over a sequence of commits")
826 "git-test-sequence is similar to an automated git bisect except it’s
827 linear. It will test every change between two points in the DAG. It will
828 also walk each side of a merge and test those changes individually.")
829 (license (license:x11-style "file://LICENSE")))))
831 (define-public gitolite
838 "https://github.com/sitaramc/gitolite/archive/v"
840 (file-name (string-append name "-" version ".tar.gz"))
843 "07q33f86694s0x3k9lcmy1vzfw9appdrlmmb9j3bz4qkrxqdnwb9"))))
844 (build-system gnu-build-system)
846 '(#:tests? #f ; no tests
847 #:phases (modify-phases %standard-phases
850 (add-before 'install 'patch-scripts
851 (lambda* (#:key inputs #:allow-other-keys)
852 (let ((perl (string-append (assoc-ref inputs "perl")
854 ;; This seems to take care of every shell script that
856 (substitute* (find-files "." ".*")
858 (string-append " " perl " -")))
860 ;; Avoid references to the store in authorized_keys.
861 ;; This works because gitolite-shell is in the PATH.
862 (substitute* "src/triggers/post-compile/ssh-authkeys"
863 (("\\$glshell \\$user")
864 "gitolite-shell $user")))))
866 (lambda* (#:key outputs #:allow-other-keys)
867 (let* ((output (assoc-ref outputs "out"))
868 (sharedir (string-append output "/share/gitolite"))
869 (bindir (string-append output "/bin")))
872 (system* "./install" "-to" sharedir)
873 ;; Create symlinks for executable scripts in /bin.
874 (for-each (lambda (script)
875 (symlink (string-append sharedir "/" script)
876 (string-append bindir "/" script)))
877 '("gitolite" "gitolite-shell"))
881 ;; git and openssh are propagated because trying to patch the source via
882 ;; regexp matching is too brittle and prone to false positives.
885 ("openssh" ,openssh)))
886 (home-page "http://gitolite.com")
887 (synopsis "Git access control layer")
889 "Gitolite is an access control layer on top of Git, providing fine access
890 control to Git repositories.")
891 (license license:gpl2)))
893 (define-public mercurial
899 (uri (string-append "https://www.mercurial-scm.org/"
900 "release/mercurial-" version ".tar.gz"))
903 "0ik2ypzxjr6vpcghxvn39a73gw52629n7vwak04gnbycsq95aalg"))))
904 (build-system python-build-system)
906 `(;; Restrict to Python 2, as Python 3 would require
907 ;; the argument --c2to3.
909 ;; FIXME: Disabled tests because they require the nose unit
910 ;; testing framework: https://nose.readthedocs.org/en/latest/ .
912 (home-page "https://www.mercurial-scm.org/")
913 (synopsis "Decentralized version control system")
915 "Mercurial is a free, distributed source control management tool.
916 It efficiently handles projects of any size
917 and offers an easy and intuitive interface.")
918 (license license:gpl2+)))
926 (uri (string-append "http://www.webdav.org/neon/neon-"
930 "1jpvczcx658vimqm7c8my2q41fnmjaf1j03g7bsli6rjxk6xh2yv"))))
931 (build-system gnu-build-system)
934 ("pkg-config" ,pkg-config)))
936 `(("libxml2" ,libxml2)
940 `(;; FIXME: Add tests once reverse address lookup is fixed in glibc, see
941 ;; https://sourceware.org/bugzilla/show_bug.cgi?id=16475
943 #:configure-flags '("--enable-shared"
944 ;; requires libgnutils-config, deprecated
946 ; "--with-ssl=gnutls")))
947 "--with-ssl=openssl")))
948 (home-page "http://www.webdav.org/neon/")
949 (synopsis "HTTP and WebDAV client library")
951 "Neon is an HTTP and WebDAV client library, with a C interface and the
954 @item High-level wrappers for common HTTP and WebDAV operations (GET, MOVE,
956 @item low-level interface to the HTTP request/response engine, allowing the use
957 of arbitrary HTTP methods, headers, etc.;
958 @item authentication support including Basic and Digest support, along with
959 GSSAPI-based Negotiate on Unix, and SSPI-based Negotiate/NTLM on Win32;
960 @item SSL/TLS support using OpenSSL or GnuTLS, exposing an abstraction layer for
961 verifying server certificates, handling client certificates, and examining
962 certificate properties, smartcard-based client certificates are also
963 supported via a PKCS#11 wrapper interface;
964 @item abstract interface to parsing XML using libxml2 or expat, and wrappers for
965 simplifying handling XML HTTP response bodies;
966 @item WebDAV metadata support, wrappers for PROPFIND and PROPPATCH to simplify
967 property manipulation.
969 (license license:gpl2+))) ; for documentation and tests; source under lgpl2.0+
971 (define-public subversion
979 (string-append "https://archive.apache.org/dist/subversion/"
980 "subversion-" version ".tar.bz2")
981 (string-append "https://www-eu.apache.org/dist/subversion/"
982 "subversion-" version ".tar.bz2")))
985 "1gp6426gkdza6ni2whgifjcmjb4nq34ljy07yxkrhlarvfq6ks2n"))))
986 (build-system gnu-build-system)
989 (modify-phases %standard-phases
990 (add-after 'configure 'patch-libtool-wrapper-ls
991 (lambda* (#:key inputs #:allow-other-keys)
992 ;; This substitution allows tests svnauthz_tests and svnlook_tests
993 ;; to pass. These tests execute svnauthz and svnlook through
994 ;; their libtool wrapper scripts from svn hooks, whose empty
995 ;; environments cause "ls: command not found" errors. It would be
996 ;; nice if this fix ultimately made its way into libtool.
997 (let ((coreutils (assoc-ref inputs "coreutils")))
998 (substitute* "libtool"
999 (("\\\\`ls") (string-append "\\`" coreutils "/bin/ls")))
1001 (add-after 'install 'install-perl-bindings
1002 (lambda* (#:key outputs #:allow-other-keys)
1003 ;; Follow the instructions from 'subversion/bindings/swig/INSTALL'.
1004 (let ((out (assoc-ref outputs "out")))
1005 (and (zero? (system* "make" "swig-pl-lib"))
1006 ;; FIXME: Test failures.
1007 ;; (zero? (system* "make" "check-swig-pl"))
1008 (zero? (system* "make" "install-swig-pl-lib"))
1010 ;; Set the right installation prefix.
1011 (with-directory-excursion
1012 "subversion/bindings/swig/perl/native"
1014 (system* "perl" "Makefile.PL"
1016 (string-append "PREFIX=" out)))
1018 (system* "make" "install"
1019 (string-append "OTHERLDFLAGS="
1021 out "/lib"))))))))))))
1023 `(("pkg-config" ,pkg-config)
1024 ;; For the Perl bindings.
1028 ("apr-util" ,apr-util)
1031 ("python" ,python-2) ; incompatible with Python 3 (print syntax)
1034 (home-page "https://subversion.apache.org/")
1035 (synopsis "Revision control system")
1037 "Subversion exists to be universally recognized and adopted as a
1038 centralized version control system characterized by its
1039 reliability as a safe haven for valuable data; the simplicity of its model and
1040 usage; and its ability to support the needs of a wide variety of users and
1041 projects, from individuals to large-scale enterprise operations.")
1042 (license license:asl2.0)))
1050 (uri (string-append "mirror://gnu/rcs/rcs-"
1054 "1zsx7bb0rgvvvisiy4zlixf56ay8wbd9qqqcp1a1g0m1gl6mlg86"))
1055 (patches (search-patches "rcs-5.9.4-noreturn.patch"))))
1056 (build-system gnu-build-system)
1057 (native-inputs `(("ed" ,ed)))
1058 (home-page "https://www.gnu.org/software/rcs/")
1059 (synopsis "Per-file local revision control system")
1061 "RCS is the original Revision Control System. It works on a
1062 file-by-file basis, in contrast to subsequent version control systems such as
1063 CVS, Subversion, and Git. This can make it suitable for system
1064 administration files, for example, which are often inherently local to one
1066 (license license:gpl3+)))
1075 "https://ftp.gnu.org/non-gnu/cvs/source/feature/"
1076 version "/cvs-" version ".tar.bz2"))
1077 (patches (search-patches "cvs-2017-12836.patch"))
1080 "0pjir8cwn0087mxszzbsi1gyfc6373vif96cw4q3m1x6p49kd1bq"))))
1081 (build-system gnu-build-system)
1083 ;; XXX: The test suite looks flawed, and the package is obsolete anyway.
1085 #:configure-flags (list "--with-external-zlib")))
1086 (inputs `(("zlib" ,zlib)
1087 ("nano" ,nano))) ; the default editor
1088 (home-page "http://cvs.nongnu.org")
1089 (synopsis "Historical centralized version control system")
1091 "CVS is a version control system, an important component of Source
1092 Configuration Management (SCM). Using it, you can record the history of
1093 sources files, and documents. It fills a similar role to the free software
1094 RCS, PRCS, and Aegis packages.")
1095 (license license:gpl1+)))
1097 (define-public cvs-fast-export
1099 (name "cvs-fast-export")
1103 (uri (string-append "http://www.catb.org/~esr/"
1104 name "/" name "-" version ".tar.gz"))
1107 "17xp5q4cxmd6z0ii1fdr4j1djb9mz1qv7hzr6fawdapjzahi65m3"))))
1108 (build-system gnu-build-system)
1111 (modify-phases %standard-phases
1113 (add-after 'unpack 'remove-optimizations
1115 ;; Don't optimize for a specific processor architecture.
1116 (substitute* "Makefile"
1117 (("CFLAGS \\+= -march=native") ""))
1118 ;; This code runs with Python2 or Python3
1119 (substitute* "cvsreduce"
1120 (("python3") "python"))
1122 #:parallel-build? #f ; parallel a2x commands fail spectacularly
1124 (list "CC=gcc" (string-append "prefix?=" (assoc-ref %outputs "out")))))
1125 (inputs `(("git" ,git)))
1126 (native-inputs `(("asciidoc" ,asciidoc)
1127 ;; These are needed for the tests.
1129 ("python" ,python-2)
1131 (home-page "http://www.catb.org/esr/cvs-fast-export/")
1132 (synopsis "Export an RCS or CVS history as a fast-import stream")
1133 (description "This program analyzes a collection of RCS files in a CVS
1134 repository (or outside of one) and, when possible, emits an equivalent history
1135 in the form of a fast-import stream. Not all possible histories can be
1136 rendered this way; the program tries to emit useful warnings when it can't.
1138 The program can also produce a visualization of the resulting commit directed
1139 acyclic graph (DAG) in the input format of @uref{http://www.graphviz.org,
1140 Graphviz}. The package also includes @command{cvssync}, a tool for mirroring
1141 masters from remote CVS hosts.")
1142 (license license:gpl2+)))
1144 (define-public vc-dwim
1150 (uri (string-append "mirror://gnu/vc-dwim/vc-dwim-"
1154 "0d5sqafc40l878m8wjr35jxmalj4kam1m6ph60v08ng4ml5g7931"))))
1155 (build-system gnu-build-system)
1156 (inputs `(("perl" ,perl)
1157 ("inetutils" ,inetutils))) ; for `hostname', used in the tests
1158 (native-inputs `(("emacs" ,emacs-minimal))) ; for `ctags'
1159 (home-page "https://www.gnu.org/software/vc-dwim/")
1160 (synopsis "Version-control-agnostic ChangeLog diff and commit tool")
1162 "The vc-dwim package contains two tools, \"vc-dwim\" and \"vc-chlog\".
1163 vc-dwim is a tool that simplifies the task of maintaining a ChangeLog and
1164 using version control at the same time, for example by printing a reminder
1165 when a file change has been described in the ChangeLog but the file has not
1166 been added to the VC. vc-chlog scans changed files and generates
1167 standards-compliant ChangeLog entries based on the changes that it detects.")
1168 (license license:gpl3+)))
1170 (define-public diffstat
1178 (string-append "ftp://invisible-island.net/diffstat/"
1179 name "-" version ".tgz")
1180 (string-append "http://invisible-mirror.net/archives/diffstat/"
1181 name "-" version ".tgz")))
1184 "1vjmda2zfjxg0qkaj8hfqa8g6bfwnn1ja8696rxrjgqq4w69wd95"))))
1185 (build-system gnu-build-system)
1186 (home-page "https://invisible-island.net/diffstat/")
1187 (synopsis "Make histograms from the output of @command{diff}")
1189 "Diffstat reads the output of @command{diff} and displays a histogram of
1190 the insertions, deletions, and modifications per file. It is useful for
1191 reviewing large, complex patch files.")
1192 (license (license:x11-style "file://COPYING"))))
1200 (uri (string-append "mirror://gnu/" name "/CSSC-"
1204 "15191dh8hr46cvssmv4v52gymiiyk6ca9j1bfimlqakcqab6y51h"))))
1205 (build-system gnu-build-system)
1208 (modify-phases %standard-phases
1209 (add-before 'check 'precheck
1212 (substitute* "tests/common/test-common"
1213 (("/bin/pwd") (which "pwd")))
1215 (substitute* "tests/prt/all-512.sh"
1216 (("/bin/sh") (which "sh")))
1218 ;; XXX: This test has no hope of passing until there is a "nogroup"
1219 ;; entry (or at least some group to which the guix builder does
1220 ;; not belong) in the /etc/group file of the build environment.
1221 ;; Currently we do not have such a group. Disable this test for now.
1222 (substitute* "tests/Makefile"
1223 (("test-delta ") ""))))))))
1224 ;; These are needed for the tests
1225 (native-inputs `(("git" ,git)
1227 (home-page "https://www.gnu.org/software/cssc/")
1228 (synopsis "File-based version control like SCCS")
1229 (description "GNU CSSC provides a replacement for the legacy Unix source
1230 code control system SCCS. This allows old code still under that system to be
1231 accessed and migrated on modern systems.")
1232 (license license:gpl3+)))
1234 ;; This package can unfortunately work only in -TEST mode, since Aegis
1235 ;; requires that it is installed setuid root.
1236 (define-public aegis
1242 (uri (string-append "mirror://sourceforge/aegis/aegis/" version
1243 "/aegis-" version ".tar.gz"))
1246 "18s86ssarfmc4l17gbpzybca29m5wa37cbaimdji8czlcry3mcjl"))
1247 (patches (search-patches "aegis-perl-tempdir1.patch"
1248 "aegis-perl-tempdir2.patch"
1249 "aegis-test-fixup-1.patch"
1250 "aegis-test-fixup-2.patch"
1251 "aegis-constness-error.patch"))))
1252 (build-system gnu-build-system)
1254 `(("e2fsprogs" ,e2fsprogs)
1257 ("libxml2" ,libxml2)
1259 ("gettext" ,gettext-minimal)))
1264 ;; Various tests require the following:
1268 ("subversion" ,subversion)
1272 `(#:configure-flags (list "--with-no-aegis-configured"
1273 "--sharedstatedir=/var/com/aegis")
1274 #:parallel-build? #f ; There are some nasty racy rules in the Makefile.
1276 (modify-phases %standard-phases
1277 (add-before 'configure 'pre-conf
1279 (substitute* (append '("configure"
1280 "etc/check-tar-gz.sh"
1284 "script/aebisect.in"
1285 "script/aeintegratq.in"
1287 "script/test_funcs.in"
1288 "web/eg_oss_templ.sh"
1290 "libaegis/getpw_cache.cc")
1291 (find-files "test" "\\.sh"))
1292 (("/bin/sh") (which "sh")))
1293 (setenv "SH" (which "sh"))))
1296 (let ((home (string-append (getcwd) "/my-new-home")))
1297 ;; Some tests need to write to $HOME.
1299 (setenv "HOME" home)
1301 ;; This test assumes that flex has been symlinked to "lex".
1302 (substitute* "test/00/t0011a.sh"
1303 (("type lex") "type flex"))
1305 ;; The author decided to call the check rule "sure".
1306 (zero? (system* "make" "sure"))))))))
1307 (home-page "http://aegis.sourceforge.net")
1308 (synopsis "Project change supervisor")
1309 (description "Aegis is a project change supervisor, and performs some of
1310 the Software Configuration Management needed in a CASE environment. Aegis
1311 provides a framework within which a team of developers may work on many
1312 changes to a program independently, and Aegis coordinates integrating these
1313 changes back into the master source of the program, with as little disruption
1314 as possible. Resolution of contention for source files, a major headache for
1315 any project with more than one developer, is one of Aegis's major functions.")
1316 (license license:gpl3+)))
1318 (define-public reposurgeon
1320 (name "reposurgeon")
1324 (uri (string-append "http://www.catb.org/~esr/" name "/"
1325 name "-" version ".tar.xz"))
1328 "1af0z14wcm4bk5a9ysinbwq2fp3lf5f7i8mvwh7286hr3fnagcaz"))
1329 (patches (search-patches
1330 "reposurgeon-add-missing-docbook-files.patch"))))
1331 (build-system gnu-build-system)
1335 (string-append "target=" (assoc-ref %outputs "out")))
1337 (modify-phases %standard-phases
1338 (add-after 'unpack 'patch-inputs
1339 (lambda* (#:key inputs #:allow-other-keys)
1340 (let ((tzdata (assoc-ref inputs "tzdata")))
1341 (substitute* "reposurgeon"
1342 (("/usr/share/zoneinfo")
1343 (string-append tzdata "/share/zoneinfo")))
1344 (substitute* "test/svn-to-svn"
1345 (("/bin/echo") "echo"))
1347 (delete 'configure) ; no configure script
1348 (add-before 'build 'fix-docbook
1349 (lambda* (#:key inputs #:allow-other-keys)
1350 (substitute* (find-files "." "\\.xml$")
1351 (("docbook/docbookx.dtd")
1352 (string-append (assoc-ref inputs "docbook-xml")
1353 "/xml/dtd/docbook/docbookx.dtd")))
1355 (add-before 'check 'set-up-test-environment
1356 (lambda* (#:key inputs #:allow-other-keys)
1357 (let ((tzdata (assoc-ref inputs "tzdata")))
1358 (setenv "TZDIR" (string-append tzdata "/share/zoneinfo"))
1360 (add-after 'install 'install-emacs-data
1361 (lambda* (#:key outputs #:allow-other-keys)
1362 (install-file "reposurgeon-mode.el"
1363 (string-append (assoc-ref outputs "out")
1364 "/share/emacs/site-lisp")))))))
1366 `(("python" ,python-wrapper)
1367 ("tzdata" ,tzdata)))
1369 `( ;; For building documentation.
1370 ("asciidoc" ,asciidoc)
1371 ("docbook-xml" ,docbook-xml)
1372 ("docbook-xsl" ,docbook-xsl)
1373 ("libxml2" ,libxml2)
1379 ("mercurial" ,mercurial)
1380 ("subversion" ,subversion)))
1381 (home-page "http://www.catb.org/~esr/reposurgeon/")
1382 (synopsis "Edit version-control repository history")
1383 (description "Reposurgeon enables risky operations that version-control
1384 systems don't want to let you do, such as editing past comments and metadata
1385 and removing commits. It works with any version control system that can
1386 export and import Git fast-import streams, including Git, Mercurial, Fossil,
1387 Bazaar, CVS, RCS, and Src. It can also read Subversion dump files directly
1388 and can thus be used to script production of very high-quality conversions
1389 from Subversion to any supported Distributed Version Control System (DVCS).")
1390 ;; Most files are distributed under bsd-2, except 'repocutter' which is
1392 (license (list license:bsd-2 license:bsd-3))))
1401 "https://github.com/jonas/tig/releases/download/tig-"
1402 version "/tig-" version ".tar.gz"))
1405 "1vf02snz8qiiqiyqss1z63rzzmwbrc9agcgh21jdq13rja306vv8"))))
1406 (build-system gnu-build-system)
1408 `(("asciidoc" ,asciidoc)
1411 `(("ncurses" ,ncurses)
1412 ("readline" ,readline)))
1415 (modify-phases %standard-phases
1416 (add-after 'install 'install-doc
1418 (zero? (system* "make" "install-doc")))))
1419 #:tests? #f)) ; tests require access to /dev/tty
1420 ;; #:test-target "test"))
1421 (home-page "https://jonas.github.io/tig/")
1422 (synopsis "Ncurses-based text user interface for Git")
1424 "Tig is an ncurses text user interface for Git, primarily intended as
1425 a history browser. It can also stage hunks for commit, or colorize the
1426 output of the 'git' command.")
1427 (license license:gpl2+)))
1429 (define-public findnewest
1436 "https://github.com/0-wiz-0/findnewest/archive/findnewest-"
1440 "1ydis4y0amkgfr4y60sn076f1l41ya2kn89kfd9fqf44f9ccgb5r"))))
1441 (build-system gnu-build-system)
1443 '(#:phases (modify-phases %standard-phases
1444 (add-after 'unpack 'bootstrap
1446 (zero? (system* "autoreconf" "-vfi")))))))
1447 (native-inputs `(("autoconf" ,autoconf)
1448 ("automake" ,automake)))
1449 (home-page "https://github.com/0-wiz-0/findnewest/releases")
1450 (synopsis "Print the modification time of the latest file")
1452 "Recursively find the newest file in a file tree and print its
1453 modification time.")
1454 (license license:bsd-2)))
1456 (define-public myrepos
1459 (version "1.20171231")
1464 (url "git://myrepos.branchable.com/myrepos")
1466 (file-name (string-append name "-" version "-checkout"))
1468 (base32 "10q7lpx152xnkk701fscn4dq99q9znnmv3bc2482khhjg7z8rps0"))))
1469 (build-system gnu-build-system)
1473 '(#:test-target "test"
1474 #:phases (modify-phases %standard-phases (delete 'configure))
1475 #:make-flags (list (string-append "PREFIX=" %output))))
1476 (home-page "https://myrepos.branchable.com/")
1477 (synopsis "Multiple repository management tool")
1479 "Myrepos provides the @code{mr} command, which maps an operation (e.g.,
1480 fetching updates) over a collection of version control repositories. It
1481 supports a large number of version control systems: Git, Subversion,
1482 Mercurial, Bazaar, Darcs, CVS, Fossil, and Veracity.")
1483 (license license:gpl2+)))
1485 (define-public git-annex-remote-hubic
1487 (name "git-annex-remote-hubic")
1492 "https://github.com/Schnouki/" name "/archive/v"
1494 (file-name (string-append name "-" version ".tar.gz"))
1497 "196g3jkaybjx11nbr51n0cjps3wjzb145ab76y717diqvvxp5v4r"))))
1498 (build-system python-build-system)
1499 (arguments `(#:python ,python-2))
1502 ("python2-six" ,python2-six)))
1504 `(("python2-dateutil" ,python2-dateutil)
1505 ("python2-futures" ,python2-futures)
1506 ("python2-rauth" ,python2-rauth)
1507 ("python2-swiftclient" ,python2-swiftclient)))
1508 (home-page "https://github.com/Schnouki/git-annex-remote-hubic/")
1509 (synopsis "Use hubic as a git-annex remote")
1511 "This package allows you to use your hubic account as a \"special
1512 repository\" with git-annex.")
1513 (license license:gpl3+)))
1515 (define-public fossil
1522 ;; Older downloads are moved to another URL.
1525 "https://www.fossil-scm.org/index.html/uv/download/"
1526 "fossil-src-" version ".tar.gz")
1528 "https://www.fossil-scm.org/index.html/uv/"
1529 "fossil-src-" version ".tar.gz")))
1532 "0add35lk2ac4qg29d7ygj7pskv8lfln33f3kgf6x3548msv9hd6j"))))
1533 (build-system gnu-build-system)
1535 `(("tcl" ,tcl) ;for configuration only
1536 ("which" ,which) ;for tests only
1539 `(("openssl" ,openssl)
1541 ("sqlite" ,sqlite)))
1543 `(#:configure-flags (list "--with-openssl=auto"
1544 "--disable-internal-sqlite")
1545 #:test-target "test"
1546 #:phases (modify-phases %standard-phases
1548 (lambda* (#:key outputs (configure-flags '())
1550 ;; The 'configure' script is not an autoconf script and
1551 ;; chokes on unrecognized options.
1552 (zero? (apply system*
1554 (string-append "--prefix="
1555 (assoc-ref outputs "out"))
1557 (add-before 'check 'test-setup
1559 (setenv "USER" "guix")
1562 (home-page "https://fossil-scm.org")
1563 (synopsis "Software configuration management system")
1565 "Fossil is a distributed source control management system which supports
1566 access and administration over HTTP CGI or via a built-in HTTP server. It has
1567 a built-in wiki, built-in file browsing, built-in tickets system, etc.")
1568 (license (list license:public-domain ;src/miniz.c, src/shell.c
1571 (define-public stagit
1577 (uri (string-append "https://dl.2f30.org/releases/"
1578 name "-" version ".tar.gz"))
1581 "1m3s9g1z9szbjrhm8sic91xh6f2bfpi56rskdkqd5wc4wdycpyi5"))))
1582 (build-system gnu-build-system)
1584 `(#:tests? #f ; No tests
1585 #:make-flags (list "CC=gcc"
1586 (string-append "PREFIX=" %output))
1588 (modify-phases %standard-phases
1589 (delete 'configure)))) ; No configure script
1591 `(("libgit2" ,libgit2)))
1592 (home-page "https://2f30.org/")
1593 (synopsis "Static git page generator")
1594 (description "Stagit creates static pages for git repositories, the results can
1595 be served with a HTTP file server of your choice.")
1596 (license license:expat)))
1598 ;; Darcs has no https support: http://irclog.perlgeek.de/darcs/2016-09-17
1599 ;; http://darcs.net/manual/Configuring_darcs.html#SECTION00440070000000000000
1600 ;; and results of search engines will show that if the protocol is http, https
1601 ;; is never mentioned.
1602 (define-public darcs
1609 (uri (string-append "https://hackage.haskell.org/package/darcs/"
1610 "darcs-" version ".tar.gz"))
1613 "0lrm0sal5pl453mkqn8b9fc9l7lwinc140iqihya9g17bk408nrm"))
1614 (modules '((guix build utils)))
1615 ;; Remove time-dependent code for reproducibility.
1618 (substitute* "darcs/darcs.hs"
1619 (("__DATE__") "\"1970-01-01\"")
1620 (("__TIME__") "\"00:00:00\""))
1621 (substitute* "src/impossible.h"
1622 (("__DATE__") "\"\"")
1623 (("__TIME__") "\"\""))))))
1624 (build-system haskell-build-system)
1626 `(#:configure-flags '("-fpkgconfig" "-fcurl" "-flibiconv" "-fthreaded"
1627 "-fnetwork-uri" "-fhttp" "--flag=executable"
1629 "--allow-newer=shelly")
1630 ;; FIXME: darcs is not compatible with the latest QuickCheck
1633 `(("ghc-cmdargs" ,ghc-cmdargs)
1634 ("ghc-split" ,ghc-split)
1635 ("ghc-test-framework-quickcheck2" ,ghc-test-framework-quickcheck2)
1636 ("ghc-test-framework-hunit" ,ghc-test-framework-hunit)
1637 ("ghc-test-framework" ,ghc-test-framework)
1638 ("ghc-quickcheck" ,ghc-quickcheck)
1639 ("ghc-findbin" ,ghc-findbin)
1640 ("ghc-hunit" ,ghc-hunit)
1641 ("ghc-array" ,ghc-array)
1642 ("ghc-async" ,ghc-async)
1643 ("ghc-attoparsec" ,ghc-attoparsec)
1644 ("ghc-base16-bytestring" ,ghc-base16-bytestring)
1645 ("ghc-binary" ,ghc-binary)
1646 ("ghc-bytestring-builder" ,ghc-bytestring-builder)
1647 ("ghc-cryptohash" ,ghc-cryptohash)
1648 ("ghc-data-ordlist" ,ghc-data-ordlist)
1649 ("ghc-fgl" ,ghc-fgl)
1650 ("ghc-system-filepath" ,ghc-system-filepath)
1651 ("ghc-graphviz" ,ghc-graphviz)
1652 ("ghc-hashable" ,ghc-hashable)
1653 ("ghc-haskeline" ,ghc-haskeline)
1654 ("ghc-html" ,ghc-html)
1655 ("ghc-mmap" ,ghc-mmap)
1656 ("ghc-mtl" ,ghc-mtl)
1657 ("ghc-old-time" ,ghc-old-time)
1658 ("ghc-parsec" ,ghc-parsec)
1659 ("ghc-random" ,ghc-random)
1660 ("ghc-regex-applicative" ,ghc-regex-applicative)
1661 ("ghc-regex-compat-tdfa" ,ghc-regex-compat-tdfa)
1662 ("ghc-sandi" ,ghc-sandi)
1663 ("ghc-shelly" ,ghc-shelly)
1664 ("ghc-tar" ,ghc-tar)
1665 ("ghc-transformers-compat" ,ghc-transformers-compat)
1666 ("ghc-unix-compat" ,ghc-unix-compat)
1667 ("ghc-utf8-string" ,ghc-utf8-string)
1668 ("ghc-vector" ,ghc-vector)
1669 ("ghc-zip-archive" ,ghc-zip-archive)
1670 ("ghc-zlib" ,ghc-zlib)
1671 ("ghc-http" ,ghc-http)
1674 ("ncurses" ,ncurses)
1676 ("libiconv" ,libiconv)
1677 ("ghc-network" ,ghc-network)
1678 ("ghc-network-uri" ,ghc-network-uri)))
1680 `(("pkg-config" ,pkg-config)))
1681 (home-page "http://darcs.net")
1682 (synopsis "Distributed Revision Control System")
1684 "Darcs is a revision control system. It is:
1687 @item Distributed: Every user has access to the full command set, removing boundaries
1688 between server and client or committer and non-committers.
1689 @item Interactive: Darcs is easy to learn and efficient to use because it asks you
1690 questions in response to simple commands, giving you choices in your work flow.
1691 You can choose to record one change in a file, while ignoring another. As you update
1692 from upstream, you can review each patch name, even the full diff for interesting
1694 @item Smart: Originally developed by physicist David Roundy, darcs is based on a
1695 unique algebra of patches called @url{http://darcs.net/Theory,Patchtheory}.
1697 (license license:gpl2)))
1699 (define-public java-jgit
1702 (version "4.7.0.201704051617-r")
1705 (uri (string-append "https://repo1.maven.org/maven2/"
1706 "org/eclipse/jgit/org.eclipse.jgit/"
1707 version "/org.eclipse.jgit-"
1708 version "-sources.jar"))
1711 "13ii4jn02ynzq6i7gsyi21k2i94jpc85wf6bcm31q4cyvzv0mk4k"))))
1712 (build-system ant-build-system)
1714 `(#:tests? #f ; There are no tests to run.
1715 #:jar-name "jgit.jar"
1716 ;; JGit must be built with a JDK supporting Java 8.
1718 ;; Target our older default JDK.
1719 #:make-flags (list "-Dtarget=1.7")
1721 (modify-phases %standard-phases
1722 ;; The jar file generated by the default build.xml does not include
1723 ;; the text properties files, so we need to add them.
1724 (add-after 'build 'add-properties
1725 (lambda* (#:key jar-name #:allow-other-keys)
1726 (with-directory-excursion "src"
1727 (zero? (apply system* "jar" "-uf"
1728 (string-append "../build/jar/" jar-name)
1729 (find-files "." "\\.properties$")))))))))
1731 `(("java-classpathx-servletapi" ,java-classpathx-servletapi)
1732 ("java-javaewah" ,java-javaewah)
1733 ("java-jsch" ,java-jsch)
1734 ("java-slf4j-api" ,java-slf4j-api)))
1735 (home-page "https://eclipse.org/jgit/")
1736 (synopsis "Java library implementing the Git version control system")
1737 (description "JGit is a lightweight, pure Java library implementing the
1738 Git version control system, providing repository access routines, support for
1739 network protocols, and core version control algorithms.")
1740 (license license:edl1.0)))
1742 ;; For axoloti. This package can still be built with icedtea-7, which is
1743 ;; currently used as the default JDK.
1744 (define-public java-jgit-4.2
1745 (package (inherit java-jgit)
1746 (version "4.2.0.201601211800-r")
1749 (uri (string-append "https://repo1.maven.org/maven2/"
1750 "org/eclipse/jgit/org.eclipse.jgit/"
1751 version "/org.eclipse.jgit-"
1752 version "-sources.jar"))
1755 "15gm537iivhnzlkjym4x3wn5jqdjdragsw9pdpzqqg21nrc817mm"))))
1756 (build-system ant-build-system)
1758 (substitute-keyword-arguments (package-arguments java-jgit)
1759 ;; Build for default JDK.
1760 ((#:jdk _) icedtea-7)
1762 `(modify-phases ,phases
1763 (add-after 'unpack 'use-latest-javaewah-API
1765 (substitute* "src/org/eclipse/jgit/internal/storage/file/BitmapIndexImpl.java"
1766 (("wordinbits") "WORD_IN_BITS"))
1769 `(("java-javaewah" ,java-javaewah)
1770 ("java-jsch" ,java-jsch)
1771 ("java-slf4j-api" ,java-slf4j-api)))))
1773 (define-public gource
1780 "https://github.com/acaudwell/Gource/releases/download"
1781 "/gource-" version "/gource-" version ".tar.gz"))
1784 "1llqwdnfa1pff8bxk27qsqff1fcg0a9kfdib0rn7p28vl21n1cgj"))))
1785 (build-system gnu-build-system)
1788 (list (string-append "--with-boost-libdir="
1789 (assoc-ref %build-inputs "boost")
1792 `(("pkg-config" ,pkg-config)))
1802 ("sdl-union" ,(sdl-union (list sdl2 sdl2-image)))))
1803 (home-page "http://gource.io/")
1804 (synopsis "3D visualisation tool for source control repositories")
1805 (description "@code{gource} provides a software version control
1806 visualization. The repository is displayed as a tree where the root of the
1807 repository is the centre, directories are branches and files are leaves.
1808 Contributors to the source code appear and disappear as they contribute to
1809 specific files and directories.")
1810 (license license:gpl3+)))