1 ;;; GNU Guix --- Functional package management for GNU
2 ;;; Copyright © 2013 Nikita Karetnikov <nikita@karetnikov.org>
3 ;;; Copyright © 2013 Cyril Roelandt <tipecaml@gmail.com>
4 ;;; Copyright © 2013, 2014, 2015, 2016, 2017, 2018, 2019 Ludovic Courtès <ludo@gnu.org>
5 ;;; Copyright © 2013, 2014 Andreas Enge <andreas@enge.fr>
6 ;;; Copyright © 2015, 2016 Mathieu Lirzin <mthl@gnu.org>
7 ;;; Copyright © 2014, 2015, 2016 Mark H Weaver <mhw@netris.org>
8 ;;; Copyright © 2014, 2016, 2019 Eric Bavier <bavier@member.fsf.org>
9 ;;; Copyright © 2015, 2016, 2017, 2018, 2019 Efraim Flashner <efraim@flashner.co.il>
10 ;;; Copyright © 2015, 2018 Kyle Meyer <kyle@kyleam.com>
11 ;;; Copyright © 2015, 2017, 2018 Ricardo Wurmus <rekado@elephly.net>
12 ;;; Copyright © 2016, 2017 Leo Famulari <leo@famulari.name>
13 ;;; Copyright © 2016, 2017, 2018 ng0 <ng0@n0.is>
14 ;;; Copyright © 2017, 2018, 2019 Tobias Geerinckx-Rice <me@tobias.gr>
15 ;;; Copyright © 2017 Vasile Dumitrascu <va511e@yahoo.com>
16 ;;; Copyright © 2017 Clément Lassieur <clement@lassieur.org>
17 ;;; Copyright © 2017 André <eu@euandre.org>
18 ;;; Copyright © 2017, 2018 Marius Bakke <mbakke@fastmail.com>
19 ;;; Copyright © 2017 Stefan Reichör <stefan@xsteve.at>
20 ;;; Copyright © 2017 Oleg Pykhalov <go.wigust@gmail.com>
21 ;;; Copyright © 2018 Sou Bunnbu <iyzsong@member.fsf.org>
22 ;;; Copyright © 2018 Christopher Baines <mail@cbaines.net>
23 ;;; Copyright © 2018 Timothy Sample <samplet@ngyro.com>
24 ;;; Copyright © 2018 Arun Isaac <arunisaac@systemreboot.net>
25 ;;; Copyright © 2019 Jovany Leandro G.C <bit4bit@riseup.net>
26 ;;; Copyright © 2019 Kei Kebreau <kkebreau@posteo.net>
27 ;;; Copyright © 2019 Alex Griffin <a@ajgrf.com>
29 ;;; This file is part of GNU Guix.
31 ;;; GNU Guix is free software; you can redistribute it and/or modify it
32 ;;; under the terms of the GNU General Public License as published by
33 ;;; the Free Software Foundation; either version 3 of the License, or (at
34 ;;; your option) any later version.
36 ;;; GNU Guix is distributed in the hope that it will be useful, but
37 ;;; WITHOUT ANY WARRANTY; without even the implied warranty of
38 ;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
39 ;;; GNU General Public License for more details.
41 ;;; You should have received a copy of the GNU General Public License
42 ;;; along with GNU Guix. If not, see <http://www.gnu.org/licenses/>.
44 (define-module (gnu packages version-control)
45 #:use-module ((guix licenses) #:prefix license:)
46 #:use-module (guix utils)
47 #:use-module (guix packages)
48 #:use-module (guix download)
49 #:use-module (guix git-download)
50 #:use-module (guix build-system cmake)
51 #:use-module (guix build-system gnu)
52 #:use-module (guix build-system go)
53 #:use-module (guix build-system python)
54 #:use-module (guix build-system trivial)
55 #:use-module (gnu packages apr)
56 #:use-module (gnu packages autotools)
57 #:use-module (gnu packages documentation)
58 #:use-module (gnu packages base)
59 #:use-module (gnu packages bash)
60 #:use-module (gnu packages bison)
61 #:use-module (gnu packages boost)
62 #:use-module (gnu packages check)
63 #:use-module (gnu packages cook)
64 #:use-module (gnu packages curl)
65 #:use-module (gnu packages docbook)
66 #:use-module (gnu packages ed)
67 #:use-module (gnu packages file)
68 #:use-module (gnu packages flex)
69 #:use-module (gnu packages gettext)
70 #:use-module (gnu packages gl)
71 #:use-module (gnu packages groff)
72 #:use-module (gnu packages guile)
73 #:use-module (gnu packages image)
74 #:use-module (gnu packages linux)
75 #:use-module (gnu packages maths)
76 #:use-module (gnu packages nano)
77 #:use-module (gnu packages ncurses)
78 #:use-module (gnu packages ssh)
79 #:use-module (gnu packages web)
80 #:use-module (gnu packages openstack)
81 #:use-module (gnu packages pcre)
82 #:use-module (gnu packages perl)
83 #:use-module (gnu packages perl-check)
84 #:use-module (gnu packages pkg-config)
85 #:use-module (gnu packages python)
86 #:use-module (gnu packages python-web)
87 #:use-module (gnu packages python-xyz)
88 #:use-module (gnu packages readline)
89 #:use-module (gnu packages rsync)
90 #:use-module (gnu packages sqlite)
91 #:use-module (gnu packages admin)
92 #:use-module (gnu packages xml)
93 #:use-module (gnu packages emacs)
94 #:use-module (gnu packages compression)
95 #:use-module (gnu packages sdl)
96 #:use-module (gnu packages swig)
97 #:use-module (gnu packages sync)
98 #:use-module (gnu packages tcl)
99 #:use-module (gnu packages textutils)
100 #:use-module (gnu packages time)
101 #:use-module (gnu packages tls)
102 #:use-module (gnu packages)
103 #:use-module (ice-9 match)
104 #:use-module (srfi srfi-1))
106 (define-public bazaar
113 (uri (string-append "https://launchpad.net/bzr/"
114 (version-major+minor version) "/" version
115 "/+download/bzr-" version ".tar.gz"))
116 (patches (search-patches "bazaar-CVE-2017-14176.patch"))
119 "1cysix5k3wa6y7jjck3ckq3abls4gvz570s0v0hxv805nwki4i8d"))))
120 (build-system python-build-system)
122 ;; Note: 'tools/packaging/lp-upload-release' and 'tools/weavemerge.sh'
124 `(("gettext" ,gettext-minimal)))
126 `(#:tests? #f ; no test target
127 #:python ,python-2 ; Python 3 apparently not yet supported, see
128 ; https://answers.launchpad.net/bzr/+question/229048
130 (modify-phases %standard-phases
131 (add-after 'unpack 'fix-mandir
133 (substitute* "setup.py"
134 (("man/man1") "share/man/man1"))
136 (home-page "https://gnu.org/software/bazaar")
137 (synopsis "Version control system supporting both distributed and centralized workflows")
139 "GNU Bazaar is a version control system that allows you to record
140 changes to project files over time. It supports both a distributed workflow
141 as well as the classic centralized workflow.")
142 (license license:gpl2+)))
144 (define git-cross-configure-flags
145 '("ac_cv_fread_reads_directories=yes"
146 "ac_cv_snprintf_returns_bogus=no"))
151 ;; XXX When updating Git, check if the special 'git-source' input to cgit
152 ;; needs to be updated as well.
156 (uri (string-append "mirror://kernel.org/software/scm/git/git-"
160 "0rv0y45gcd3h191isppn77acih695v4pipdj031jvs9rd1ds0kr3"))))
161 (build-system gnu-build-system)
163 `(("native-perl" ,perl)
164 ("gettext" ,gettext-minimal)
169 "mirror://kernel.org/software/scm/git/git-manpages-"
173 "0sllhyl0w29v4n303hqfmcc3apafnwk4sk78anyjjhpzd0zl6n4m"))))
174 ;; For subtree documentation.
175 ("asciidoc" ,asciidoc)
176 ("docbook-xsl" ,docbook-xsl)
183 ("python" ,python-2) ; CAVEAT: incompatible with python-3 according to INSTALL
186 ;; Note: we keep this in inputs rather than native-inputs to work around
187 ;; a problem in 'patch-shebangs'; see <https://bugs.gnu.org/31952>.
188 ("bash-for-tests" ,bash)
191 ("perl-cgi" ,perl-cgi)
194 ("subversion" ,subversion)
195 ("perl-term-readkey" ,perl-term-readkey)
197 ;; For 'git-send-email'
198 ("perl-authen-sasl" ,perl-authen-sasl)
199 ("perl-net-smtp-ssl" ,perl-net-smtp-ssl)
200 ("perl-io-socket-ssl" ,perl-io-socket-ssl)
202 ;; For 'git gui', 'gitk', and 'git citool'.
205 (outputs '("out" ; the core
206 "send-email" ; for git-send-email
208 "credential-netrc" ; git-credential-netrc
209 "subtree" ; git-subtree
210 "gui")) ; gitk, git gui
212 `(#:make-flags `("V=1" ;more verbose compilation
214 ,(string-append "SHELL_PATH="
215 (assoc-ref %build-inputs "bash")
218 ;; Tests require a bash with completion support.
219 ,(string-append "TEST_SHELL_PATH="
220 (assoc-ref %build-inputs "bash-for-tests")
223 ;; By default 'make install' creates hard links for
224 ;; things in 'libexec/git-core', which leads to huge
225 ;; nars; see <https://bugs.gnu.org/21949>.
226 "NO_INSTALL_HARDLINKS=indeed")
228 ;; Make sure the full bash does not end up in the final closure.
229 #:disallowed-references (,bash)
233 ;; Tests fail randomly when parallel: <https://bugs.gnu.org/29512>.
236 ;; The explicit --with-tcltk forces the build system to hardcode the
237 ;; absolute file name to 'wish'.
238 #:configure-flags (list (string-append "--with-tcltk="
239 (assoc-ref %build-inputs "tk")
240 "/bin/wish8.6") ; XXX
241 ,@(if (%current-target-system)
242 git-cross-configure-flags
245 #:modules ((srfi srfi-1)
247 ,@%gnu-build-system-modules)
249 (modify-phases %standard-phases
250 (add-after 'unpack 'modify-PATH
251 (lambda* (#:key inputs #:allow-other-keys)
252 (let ((path (string-split (getenv "PATH") #\:))
253 (bash-full (assoc-ref inputs "bash-for-tests")))
254 ;; Drop the test bash from PATH so that (which "sh") and
255 ;; similar does the right thing.
256 (setenv "PATH" (string-join
257 (remove (cut string-prefix? bash-full <>) path)
260 ;; Add cross curl-config script to PATH when cross-compiling.
261 ,@(if (%current-target-system)
262 '((add-before 'configure 'add-cross-curl-config
263 (lambda* (#:key inputs #:allow-other-keys)
265 (string-append (assoc-ref inputs "curl") "/bin:"
269 (add-after 'configure 'patch-makefiles
271 (substitute* "Makefile"
272 (("/usr/bin/perl") (which "perl"))
273 (("/usr/bin/python") (which "python")))
275 (add-after 'configure 'add-PM.stamp
277 ;; Add the "PM.stamp" to avoid "no rule to make target".
278 (call-with-output-file "perl/PM.stamp" (const #t))
280 (add-after 'build 'build-subtree
281 (lambda* (#:key inputs #:allow-other-keys)
282 (with-directory-excursion "contrib/subtree"
283 (substitute* "Makefile"
284 ;; Apparently `xmlto' does not bother to looks up the stylesheets
285 ;; specified in the XML, unlike the above substitution. Instead it
286 ;; uses a hard-coded URL. Work around it here, but if this is
287 ;; common perhaps we should hardcode this path in xmlto itself.
288 (("\\$\\(XMLTO\\) -m \\$\\(MANPAGE_XSL\\) man")
289 (string-append "$(XMLTO) -x "
290 (string-append (assoc-ref inputs "docbook-xsl")
291 "/xml/xsl/docbook-xsl-"
292 ,(package-version docbook-xsl))
293 "/manpages/docbook.xsl -m $(MANPAGE_XSL) man")))
295 (invoke "make" "install")
296 (invoke "make" "install-doc")
297 (substitute* "git-subtree"
298 (("/bin/sh") (which "sh"))))
300 (add-before 'check 'patch-tests
302 (let ((store-directory (%store-directory)))
303 ;; These files contain some funny bytes that Guile is unable
304 ;; to decode for shebang patching. Just delete them.
305 (for-each delete-file '("t/t4201-shortlog.sh"
306 "t/t7813-grep-icase-iso.sh"))
307 ;; Many tests contain inline shell scripts (hooks etc).
308 (substitute* (find-files "t" "\\.sh$")
309 (("#!/bin/sh") (string-append "#!" (which "sh"))))
310 ;; Un-do shebang patching here to prevent checksum mismatch.
311 (substitute* '("t/t4034/perl/pre" "t/t4034/perl/post")
312 (("^#!.*/bin/perl") "#!/usr/bin/perl"))
313 (substitute* "t/t5003-archive-zip.sh"
314 (("cp /bin/sh") (string-append "cp " (which "sh"))))
315 (substitute* "t/t6030-bisect-porcelain.sh"
316 (("\"/bin/sh\"") (string-append "\"" (which "sh") "\"")))
317 ;; FIXME: This test runs `git commit` with a bogus EDITOR
318 ;; and empty commit message, but does not fail the way it's
319 ;; expected to. The test passes when invoked interactively.
320 (substitute* "t/t7508-status.sh"
321 (("\tcommit_template_commented") "\ttrue"))
322 ;; More checksum mismatches due to odd shebangs.
323 (substitute* "t/t9100-git-svn-basic.sh"
324 (((string-append "\"#!" store-directory ".*/bin/sh")) "\"#!/bin/sh") )
325 (substitute* "t/t9300-fast-import.sh"
326 (((string-append "\t#!" store-directory ".*/bin/sh")) "\t#!/bin/sh")
327 (((string-append "'#!" store-directory ".*/bin/sh")) "'#!/bin/sh"))
328 ;; FIXME: Some hooks fail with "basename: command not found".
329 ;; See 't/trash directory.t9164.../svn-hook.log'.
330 (delete-file "t/t9164-git-svn-dcommit-concurrent.sh")
332 ;; XXX: These tests fail intermittently for unknown reasons:
333 ;; <https://bugs.gnu.org/29546>.
334 (for-each delete-file
335 '("t/t9128-git-svn-cmd-branch.sh"
336 "t/t9167-git-svn-cmd-branch-subproject.sh"
337 "t/t9141-git-svn-multiple-branches.sh"))
339 (add-after 'install 'install-shell-completion
340 (lambda* (#:key outputs #:allow-other-keys)
341 (let* ((out (assoc-ref outputs "out"))
342 (completions (string-append out "/etc/bash_completion.d")))
343 ;; TODO: Install the tcsh and zsh completions in the right place.
344 (mkdir-p completions)
345 (copy-file "contrib/completion/git-completion.bash"
346 (string-append completions "/git"))
348 (add-after 'install 'install-credential-netrc
349 (lambda* (#:key outputs #:allow-other-keys)
350 (let* ((netrc (assoc-ref outputs "credential-netrc")))
351 (install-file "contrib/credential/netrc/git-credential-netrc"
352 (string-append netrc "/bin"))
353 ;; Previously, Git.pm was automatically found by netrc.
354 ;; Perl 5.26 changed how it locates modules so that @INC no
355 ;; longer includes the current working directory (the Perl
356 ;; community calls this "dotless @INC").
357 (wrap-program (string-append netrc "/bin/git-credential-netrc")
358 `("PERL5LIB" ":" prefix
359 (,(string-append (assoc-ref outputs "out") "/share/perl5"))))
361 (add-after 'install 'install-subtree
362 (lambda* (#:key outputs #:allow-other-keys)
363 (let ((subtree (assoc-ref outputs "subtree")))
364 (install-file "contrib/subtree/git-subtree"
365 (string-append subtree "/bin"))
366 (install-file "contrib/subtree/git-subtree.1"
367 (string-append subtree "/share/man/man1"))
369 (add-after 'install 'split
370 (lambda* (#:key inputs outputs #:allow-other-keys)
371 ;; Split the binaries to the various outputs.
372 (let* ((out (assoc-ref outputs "out"))
373 (se (assoc-ref outputs "send-email"))
374 (svn (assoc-ref outputs "svn"))
375 (gui (assoc-ref outputs "gui"))
376 (gitk (string-append out "/bin/gitk"))
377 (gitk* (string-append gui "/bin/gitk"))
378 (git-gui (string-append out "/libexec/git-core/git-gui"))
379 (git-gui* (string-append gui "/libexec/git-core/git-gui"))
380 (git-cit (string-append out "/libexec/git-core/git-citool"))
381 (git-cit* (string-append gui "/libexec/git-core/git-citool"))
382 (git-se (string-append out "/libexec/git-core/git-send-email"))
383 (git-se* (string-append se "/libexec/git-core/git-send-email"))
384 (git-svn (string-append out "/libexec/git-core/git-svn"))
385 (git-svn* (string-append svn "/libexec/git-core/git-svn"))
386 (git-sm (string-append out
387 "/libexec/git-core/git-submodule")))
388 (mkdir-p (string-append gui "/bin"))
389 (mkdir-p (string-append gui "/libexec/git-core"))
390 (mkdir-p (string-append se "/libexec/git-core"))
391 (mkdir-p (string-append svn "/libexec/git-core"))
393 (for-each (lambda (old new)
397 (list gitk git-gui git-cit git-se git-svn)
398 (list gitk* git-gui* git-cit* git-se* git-svn*))
400 ;; Tell 'git-svn' where Subversion and perl-term-readkey are.
401 (wrap-program git-svn*
403 (,(string-append (assoc-ref inputs "subversion")
405 `("PERL5LIB" ":" prefix
406 ,(map (lambda (i) (string-append (assoc-ref inputs i)
407 "/lib/perl5/site_perl"))
408 '("subversion" "perl-term-readkey")))
410 ;; XXX: The .so for SVN/Core.pm lacks a RUNPATH, so
411 ;; help it find 'libsvn_client-1.so'.
412 `("LD_LIBRARY_PATH" ":" prefix
413 (,(string-append (assoc-ref inputs "subversion")
416 ;; Tell 'git-send-email' where perl modules are.
417 (wrap-program git-se*
418 `("PERL5LIB" ":" prefix
419 ,(map (lambda (o) (string-append o "/lib/perl5/site_perl"))
421 ,@(transitive-input-references
424 (assoc l (package-inputs this-package)))
427 "perl-io-socket-ssl")))))))
429 ;; Tell 'gitweb.cgi' where perl modules are.
430 (wrap-program (string-append out "/share/gitweb/gitweb.cgi")
431 `("PERL5LIB" ":" prefix
432 ,(map (lambda (o) (string-append o "/lib/perl5/site_perl"))
434 ,@(transitive-input-references
437 (assoc l (package-inputs this-package)))
440 ;; Tell 'git-submodule' where Perl is.
443 (,(string-append (assoc-ref inputs "perl")
447 (add-after 'split 'install-man-pages
448 (lambda* (#:key inputs outputs #:allow-other-keys)
449 (let* ((out (assoc-ref outputs "out"))
450 (man (string-append out "/share/man"))
451 (manpages (assoc-ref inputs "git-manpages")))
453 (with-directory-excursion man
454 (invoke "tar" "xvf" manpages))))))))
457 ;; For HTTPS access, Git needs a single-file certificate bundle, specified
458 ;; with $GIT_SSL_CAINFO.
459 (list (search-path-specification
460 (variable "GIT_SSL_CAINFO")
462 (separator #f) ;single entry
463 (files '("etc/ssl/certs/ca-certificates.crt")))
464 (search-path-specification
465 (variable "GIT_EXEC_PATH")
466 (separator #f) ;single entry
467 (files '("libexec/git-core")))))
469 (synopsis "Distributed version control system")
471 "Git is a free distributed version control system designed to handle
472 everything from small to very large projects with speed and efficiency.")
473 (license license:gpl2)
474 (home-page "https://git-scm.com/")))
476 (define-public git-minimal
477 ;; The size of the closure of 'git-minimal' is two thirds that of 'git'.
478 ;; Its test suite runs slightly faster and most importantly it doesn't
479 ;; depend on packages that are expensive to build such as Subversion.
484 (substitute-keyword-arguments (package-arguments git)
486 `(modify-phases ,phases
487 (replace 'patch-makefiles
489 (substitute* "Makefile"
490 (("/usr/bin/perl") (which "perl")))
492 (delete 'build-subtree)
494 (delete 'install-man-pages)
495 (delete 'install-subtree)
496 (delete 'install-credential-netrc)
497 (add-before 'check 'delete-svn-test
499 ;; This test cannot run since we are not building 'git-svn'.
500 (delete-file "t/t9020-remote-svn.sh")
502 (add-after 'install 'remove-unusable-perl-commands
503 (lambda* (#:key outputs #:allow-other-keys)
504 (let* ((out (assoc-ref outputs "out"))
505 (bin (string-append out "/bin"))
506 (libexec (string-append out "/libexec")))
507 (for-each (lambda (file)
508 (delete-file (string-append libexec
510 '("git-svn" "git-cvsimport" "git-archimport"
511 "git-cvsserver" "git-request-pull"
512 "git-add--interactive" "git-cvsexportcommit"
513 "git-instaweb" "git-send-email"))
514 (delete-file (string-append bin "/git-cvsserver"))
516 ;; These templates typically depend on Perl. Remove them.
517 (delete-file-recursively
518 (string-append out "/share/git-core/templates/hooks"))
520 ;; Gitweb depends on Perl as well.
521 (delete-file-recursively
522 (string-append out "/share/gitweb"))
524 ((#:configure-flags flags)
526 ,@(if (%current-target-system)
527 git-cross-configure-flags
529 ((#:disallowed-references lst '())
533 `(("native-perl" ,perl)
534 ("gettext" ,gettext-minimal)))
536 `(("curl" ,curl) ;for HTTP(S) access
537 ("expat" ,expat) ;for 'git push' over HTTP(S)
541 ("bash-for-tests" ,bash)))))
543 (define-public libgit2
550 (url "https://github.com/libgit2/libgit2.git")
551 (commit (string-append "v" version))))
552 (file-name (git-file-name name version))
555 "0cm8fvs05rj0baigs2133q5a0sm3pa234y8h6hmwhl2bz9xq3k4b"))
556 (patches (search-patches "libgit2-avoid-python.patch"
557 "libgit2-mtime-0.patch"))
559 ;; Remove bundled software.
561 (delete-file-recursively "deps")
563 (modules '((guix build utils)))))
564 (build-system cmake-build-system)
565 (outputs '("out" "debug"))
568 (list "-DUSE_SHA1DC=ON" ; SHA-1 collision detection
569 ,@(if (%current-target-system)
571 "-DPKG_CONFIG_EXECUTABLE="
572 (assoc-ref %build-inputs "pkg-config")
573 "/bin/" ,(%current-target-system) "-pkg-config"))
576 (modify-phases %standard-phases
577 (add-after 'unpack 'fix-hardcoded-paths
579 (substitute* "tests/repo/init.c"
580 (("#!/bin/sh") (string-append "#!" (which "sh"))))
581 (substitute* "tests/clar/fs.h"
582 (("/bin/cp") (which "cp"))
583 (("/bin/rm") (which "rm")))
585 (add-after 'unpack 'make-git-checkout-writable
587 (for-each make-file-writable (find-files "."))
589 ;; Run checks more verbosely, unless we are cross-compiling.
591 (lambda* (#:key (tests? #t) #:allow-other-keys)
593 (invoke "./libgit2_clar" "-v" "-Q")
594 ;; Tests may be disabled if cross-compiling.
595 (format #t "Test suite not run.~%")))))))
597 `(("libssh2" ,libssh2)
598 ("http-parser" ,http-parser)))
600 `(("guile" ,guile-2.2)
601 ("pkg-config" ,pkg-config)))
603 ;; These two libraries are in 'Requires.private' in libgit2.pc.
604 `(("openssl" ,openssl)
606 (home-page "https://libgit2.github.com/")
607 (synopsis "Library providing Git core methods")
609 "Libgit2 is a portable, pure C implementation of the Git core methods
610 provided as a re-entrant linkable library with a solid API, allowing you to
611 write native speed custom Git applications in any language with bindings.")
612 ;; GPLv2 with linking exception
613 (license license:gpl2)))
615 (define-public git-crypt
623 (url "https://github.com/AGWA/git-crypt.git")
625 (file-name (git-file-name name version))
627 (base32 "1x9209n3k49k998saadr2d0lmvs01smjinx7gzzyjdwj9l904sii"))))
628 (build-system gnu-build-system)
631 ("openssl" ,openssl)))
633 `(#:tests? #f ; No tests.
635 (modify-phases %standard-phases
641 (lambda* (#:key outputs #:allow-other-keys)
642 (let ((out (assoc-ref outputs "out")))
643 (invoke "make" "install"
644 (string-append "PREFIX=" out))))))))
645 (home-page "https://www.agwa.name/projects/git-crypt")
646 (synopsis "Transparent encryption of files in a git repository")
647 (description "git-crypt enables transparent encryption and decryption of
648 files in a git repository. Files which you choose to protect are encrypted when
649 committed, and decrypted when checked out. git-crypt lets you freely share a
650 repository containing a mix of public and private content. git-crypt gracefully
651 degrades, so developers without the secret key can still clone and commit to a
652 repository with encrypted files. This lets you store your secret material (such
653 as keys or passwords) in the same repository as your code, without requiring you
654 to lock down your entire repository.")
655 (license license:gpl3+)))
657 (define-public git-remote-gcrypt
659 (name "git-remote-gcrypt")
664 (url "https://git.spwhitton.name/git-remote-gcrypt")
666 (file-name (string-append name "-" version "-checkout"))
669 "1vay3204729c7wajgn3nxf0s0hzwpdrw14pl6kd8w2ss25gvw2k1"))))
670 (build-system trivial-build-system)
672 `(#:modules ((guix build utils))
674 (use-modules (guix build utils))
675 (let* ((source (assoc-ref %build-inputs "source"))
676 (output (assoc-ref %outputs "out"))
677 (bindir (string-append output "/bin")))
678 (install-file (string-append source "/git-remote-gcrypt")
681 (home-page "https://spwhitton.name/tech/code/git-remote-gcrypt/")
682 (synopsis "Whole remote repository encryption")
683 (description "git-remote-gcrypt is a Git remote helper to push and pull from
684 repositories encrypted with GnuPG. It works with the standard Git transports,
685 including repository hosting services like GitLab.
687 Remote helper programs are invoked by Git to handle network transport. This
688 helper handles @code{gcrypt:} URLs that access a remote repository encrypted
689 with GPG, using our custom format.
691 Supported locations are local, @code{rsync://} and @code{sftp://}, where the
692 repository is stored as a set of files, or instead any Git URL where gcrypt
693 will store the same representation in a Git repository, bridged over arbitrary
696 The aim is to provide confidential, authenticated Git storage and
697 collaboration using typical untrusted file hosts or services.")
698 (license license:gpl3+)))
707 "https://git.zx2c4.com/cgit/snapshot/cgit-"
711 "1gw2j5xc5qdx2hwiwkr8h6kgya7v9d9ff9j32ga1dys0cca7qm1w"))))
712 (build-system gnu-build-system)
714 '(#:tests? #f ; XXX: fail to build the in-source git.
716 #:make-flags '("CC=gcc" "SHELL_PATH=sh")
718 (modify-phases %standard-phases
719 (add-after 'unpack 'unpack-git
720 (lambda* (#:key inputs #:allow-other-keys)
721 ;; Unpack the source of git into the 'git' directory.
722 (invoke "tar" "--strip-components=1" "-C" "git" "-xf"
723 (assoc-ref inputs "git-source"))))
724 (add-after 'unpack 'patch-absolute-file-names
725 (lambda* (#:key inputs #:allow-other-keys)
726 (define (quoted-file-name input path)
727 (string-append "\"" input path "\""))
728 (substitute* "ui-snapshot.c"
730 (quoted-file-name (assoc-ref inputs "gzip") "/bin/gzip"))
732 (quoted-file-name (assoc-ref inputs "bzip2") "/bin/bzip2"))
734 (quoted-file-name (assoc-ref inputs "xz") "/bin/xz")))
736 (substitute* "filters/about-formatting.sh"
737 (("$\\(dirname $0\\)") (string-append (assoc-ref outputs "out")
738 "/lib/cgit/filters"))
739 (("\\| tr") (string-append "| " (which "tr"))))
741 (substitute* "filters/html-converters/txt2html"
742 (("sed") (which "sed")))
744 (substitute* "filters/html-converters/man2html"
745 (("groff") (which "groff")))
747 (substitute* "filters/html-converters/rst2html"
748 (("rst2html\\.py") (which "rst2html.py")))
751 (delete 'configure) ; no configure script
752 (add-after 'build 'build-man
753 (lambda* (#:key make-flags #:allow-other-keys)
754 (apply invoke "make" "doc-man" make-flags)))
756 (lambda* (#:key make-flags outputs #:allow-other-keys)
757 (let ((out (assoc-ref outputs "out")))
759 "make" "install" "install-man"
760 (string-append "prefix=" out)
761 (string-append "CGIT_SCRIPT_PATH=" out "/share/cgit")
763 ;; Move the platform-dependent 'cgit.cgi' into lib to get it
765 (rename-file (string-append out "/share/cgit/cgit.cgi")
766 (string-append out "/lib/cgit/cgit.cgi"))
768 (add-after 'install 'wrap-python-scripts
769 (lambda* (#:key outputs #:allow-other-keys)
772 (wrap-program (string-append (assoc-ref outputs "out")
773 "/lib/cgit/filters/" file)
774 `("PYTHONPATH" ":" prefix (,(getenv "PYTHONPATH")))))
775 '("syntax-highlighting.py"
776 "html-converters/md2html"))
779 ;; For building manpage.
780 `(("asciidoc" ,asciidoc)
785 `(;; Building cgit requires a Git source tree.
789 ;; XXX CGit is currently incompatible with Git > 2.18.
790 (uri "mirror://kernel.org/software/scm/git/git-2.18.0.tar.xz")
793 "14hfwfkrci829a9316hnvkglnqqw1p03cw9k56p4fcb078wbwh4b"))))
797 ("python-docutils" ,python-docutils)
798 ("python-markdown" ,python-markdown)
799 ("python-pygments" ,python-pygments)
801 (home-page "https://git.zx2c4.com/cgit/")
802 (synopsis "Web frontend for git repositories")
804 "CGit is an attempt to create a fast web interface for the Git SCM, using
805 a built-in cache to decrease server I/O pressure.")
806 (license license:gpl2)))
808 (define-public python-ghp-import
810 (name "python-ghp-import")
816 (url "https://github.com/davisp/ghp-import.git")
818 (file-name (git-file-name name version))
820 (base32 "12pmw3zz3i57ljnm0rxdyjqdyhisbvy18mjwkb3bzp5pgzs2f45c"))))
821 (build-system python-build-system)
823 `(#:phases (modify-phases %standard-phases
824 (add-after 'install 'install-documentation
825 (lambda* (#:key outputs #:allow-other-keys)
826 (let* ((out (assoc-ref outputs "out"))
827 (doc (string-append out "/share/doc"))
828 (licenses (string-append out "/share/licenses")))
829 (install-file "README.md" doc)
830 (install-file "LICENSE" licenses)))))))
831 (home-page "https://github.com/davisp/ghp-import")
832 (synopsis "Copy directory to the gh-pages branch")
833 (description "Script that copies a directory to the gh-pages branch (by
834 default) of the repository.")
836 ;; See <https://bugs.gnu.org/27913>.
837 (license (license:non-copyleft
838 "https://raw.githubusercontent.com/davisp/ghp-import/master/LICENSE"
839 "Tumbolia Public License"))))
841 (define-public python2-ghp-import
842 (package-with-python2
843 (strip-python2-variant python-ghp-import)))
845 (define-public python-gitdb
847 (name "python-gitdb")
851 (uri (pypi-uri "gitdb2" version))
854 "0i608q9c47rdsmyac1cn6s0hzwwj7cb957y8fc9wacc5lnw8ak5v"))))
855 (build-system python-build-system)
857 `(#:phases (modify-phases %standard-phases
858 (add-before 'check 'create-test-repository
860 (mkdir "/tmp/testrepo")
861 ;; Some tests require a git repository, so create one.
862 (with-directory-excursion "/tmp/testrepo"
863 (do ((filecount 1 (1+ filecount)))
865 (call-with-output-file (string-append
866 "file" (number->string filecount))
868 (format port "~a" filecount))))
870 (invoke "git" "init")
871 (invoke "git" "config" "user.name" "Total Git")
872 (invoke "git" "config" "user.email" "git@localhost")
873 (invoke "git" "add" "-A")
874 (invoke "git" "commit" "-q" "-m" "dummy commit")))
876 ;; The repository checkout must be a "bare" clone.
877 (invoke "git" "clone" "--bare" "/tmp/testrepo"
878 "/tmp/testrepo.git")))
881 (setenv "GITDB_TEST_GIT_REPO_BASE" "/tmp/testrepo.git")
882 ;; Skip tests that must be run from the gitdb repository.
883 (setenv "TRAVIS" "1")
884 (invoke "nosetests" "-v"))))))
886 `(("python-smmap2" ,python-smmap2)))
889 ("python-nose" ,python-nose)))
890 (home-page "https://github.com/gitpython-developers/gitdb")
891 (synopsis "Python implementation of the Git object database")
893 "GitDB allows you to access @dfn{bare} Git repositories for reading and
894 writing. It aims at allowing full access to loose objects as well as packs
895 with performance and scalability in mind. It operates exclusively on streams,
896 allowing to handle large objects with a small memory footprint.")
897 (license license:bsd-3)))
899 (define-public python2-gitdb
900 (package-with-python2 python-gitdb))
902 (define-public python-gitpython
904 (name "python-gitpython")
908 (uri (pypi-uri "GitPython" version))
911 "1a357c28dnhgvq3saia7v29r71ynp48l2qp5xsmnc4vgzmdxqdw2"))))
912 (build-system python-build-system)
914 `(#:tests? #f ;XXX: Tests can only be run within the GitPython repository.
915 #:phases (modify-phases %standard-phases
916 (add-after 'unpack 'embed-git-reference
917 (lambda* (#:key inputs #:allow-other-keys)
918 (substitute* "git/cmd.py"
919 (("git_exec_name = \"git\"")
920 (string-append "git_exec_name = \""
921 (assoc-ref inputs "git")
927 `(("python-gitdb" ,python-gitdb)))
929 `(("python-ddt" ,python-ddt)
930 ("python-nose" ,python-nose)))
931 (home-page "https://github.com/gitpython-developers/GitPython")
932 (synopsis "Python library for interacting with Git repositories")
934 "GitPython is a python library used to interact with Git repositories,
935 high-level like git-porcelain, or low-level like git-plumbing.
937 It provides abstractions of Git objects for easy access of repository data,
938 and additionally allows you to access the Git repository more directly using
939 either a pure Python implementation, or the faster, but more resource intensive
940 @command{git} command implementation.")
941 (license license:bsd-3)))
943 (define-public python2-gitpython
944 (package-with-python2 python-gitpython))
946 (define-public shflags
953 (url "https://github.com/kward/shflags.git")
954 (commit (string-append "v" version))))
955 (file-name (git-file-name name version))
958 "1ydx0sb6vz9s2dgp5bd64y7fpzh9qvmlfjxrbmzac8saknijrlly"))))
959 (build-system gnu-build-system)
961 `(#:tests? #f ; no tests
963 (modify-phases %standard-phases
964 (delete 'configure) ; nothing to configure
965 (delete 'build) ; nothing to build
967 (lambda* (#:key outputs #:allow-other-keys)
968 (let* ((out (assoc-ref outputs "out"))
969 (src (string-append out "/src")))
970 (install-file "shflags" src)
972 (home-page "https://github.com/kward/shflags")
973 (synopsis "Command-line flags library for shell scripts")
975 "Shell Flags (shFlags) is a library written to greatly simplify the
976 handling of command-line flags in Bourne based Unix shell scripts (bash, dash,
977 ksh, sh, zsh). Most shell scripts use getopt for flags processing, but the
978 different versions of getopt on various OSes make writing portable shell
979 scripts difficult. shFlags instead provides an API that doesn't change across
980 shell and OS versions so the script writer can be confident that the script
982 (license license:lgpl2.1)))
984 (define-public git-flow
987 ;; This version has not be officially released yet, so we build it
988 ;; directly from the git repository.
989 (version "0.4.2-pre")
993 (url "https://github.com/nvie/gitflow/")
994 (commit "15aab26490facf285acef56cb5d61025eacb3a69")))
995 (file-name (git-file-name name version))
998 "01fs97q76fdfnvmrh2cyjhywcs3pykf1dg58sy0frflnsdzs6prx"))))
999 (build-system gnu-build-system)
1000 (inputs `(("shflags" ,shflags)))
1002 '(#:tests? #f ; no tests
1003 #:make-flags (list (string-append "prefix="
1004 (assoc-ref %outputs "out")))
1006 (modify-phases %standard-phases
1007 (add-after 'unpack 'reset-shFlags-link
1008 (lambda* (#:key inputs #:allow-other-keys)
1009 ;; The link points to a file in the shFlags submodule.
1010 ;; Redirect it to point to our system shFlags.
1011 (let ((shflags (assoc-ref inputs "shflags")))
1013 (delete-file "gitflow-shFlags")
1014 (symlink (string-append shflags "/src/shflags")
1015 "gitflow-shFlags")))))
1018 (home-page "http://nvie.com/posts/a-successful-git-branching-model/")
1019 (synopsis "Git extensions for Vincent Driessen's branching model")
1021 "Vincent Driessen's branching model is a git branching and release
1022 management strategy that helps developers keep track of features, hotfixes,
1023 and releases in bigger software projects. The git-flow library of git
1024 subcommands helps automate some parts of the flow to make working with it a
1026 (license license:bsd-2)))
1028 (define-public stgit
1036 (url "https://github.com/ctmarinas/stgit.git")
1037 (commit (string-append "v" version))))
1038 (file-name (git-file-name name version))
1040 (base32 "0ydgg744m671nkhg7h4q2z3b9vpbc9914rbc0wcgimqfqsxkxx2y"))))
1041 (build-system python-build-system)
1045 `(#:python ,python-2
1047 (modify-phases %standard-phases
1050 ;; Two tests will fail -> disable them. TODO: fix the failing tests
1051 (delete-file "t/t3300-edit.sh")
1052 (delete-file "t/t7504-commit-msg-hook.sh")
1053 (invoke "make" "test"))))))
1054 (home-page "http://procode.org/stgit/")
1055 (synopsis "Stacked Git")
1057 "StGit is a command-line application that provides functionality similar
1058 to Quilt (i.e., pushing/popping patches to/from a stack), but using Git
1059 instead of @command{diff} and @command{patch}. StGit stores its patches in a
1060 Git repository as normal Git commits, and provides a number of commands to
1061 manipulate them in various ways.")
1062 (license license:gpl2)))
1067 (version "1.20151229")
1072 (url "https://github.com/RichiH/vcsh.git")
1073 (commit (string-append "v" version))))
1074 (file-name (git-file-name name version))
1076 (base32 "1grpj45nbpv4j60vd2kg4rj53zrm0bc0h9l4pfd3c2mwbvywm6ab"))))
1077 (build-system gnu-build-system)
1079 `(("which" ,which)))
1083 ("perl-test-harness" ,perl-test-harness)
1084 ("perl-shell-command" ,perl-shell-command)
1085 ("perl-test-most" ,perl-test-most)))
1087 '(#:phases (modify-phases %standard-phases
1090 #:make-flags (list (string-append "PREFIX="
1091 (assoc-ref %outputs "out")))
1092 #:test-target "test"))
1093 (home-page "https://github.com/RichiH/vcsh")
1094 (synopsis "Version control system for @code{$HOME}")
1096 "vcsh version-controls configuration files in several Git repositories,
1097 all in one single directory. They all maintain their working trees without
1098 clobbering each other or interfering otherwise. By default, all Git
1099 repositories maintained via vcsh store the actual files in @code{$HOME},
1100 though this can be overridden.")
1101 (license license:gpl2+)))
1103 (define-public git-test-sequence
1104 (let ((commit "48e5a2f5a13a5f30452647237e23362b459b9c76"))
1106 (name "git-test-sequence")
1107 (version (string-append "20140312." (string-take commit 7)))
1111 ;; There are many other scripts in this directory; we
1112 ;; are interested in just one for this package.
1113 (url "https://github.com/dustin/bindir")
1115 (file-name (git-file-name name version))
1118 "1dcq0y16yznbv4k9h8gg90kv1gkn8r8dbvl4m2rpfd7q5nqhn617"))))
1119 (build-system trivial-build-system)
1121 `(#:modules ((guix build utils))
1123 (use-modules (guix build utils))
1124 (let* ((source (assoc-ref %build-inputs "source"))
1125 (output (assoc-ref %outputs "out"))
1126 (bindir (string-append output "/bin"))
1127 (script "git-test-sequence"))
1128 (install-file (string-append source "/" script)
1131 (home-page "http://dustin.sallings.org/2010/03/28/git-test-sequence.html")
1132 (synopsis "Run a command over a sequence of commits")
1134 "git-test-sequence is similar to an automated git bisect except it’s
1135 linear. It will test every change between two points in the DAG. It will
1136 also walk each side of a merge and test those changes individually.")
1137 (license (license:x11-style "file://LICENSE")))))
1139 (define-public gitolite
1147 (url "https://github.com/sitaramc/gitolite.git")
1148 (commit (string-append "v" version))))
1149 (file-name (git-file-name name version))
1151 (base32 "0rmyzr66lxh2ildf3h1nh3hh2ndwk21rjdin50r5vhwbdd7jg8vb"))))
1152 (build-system gnu-build-system)
1154 '(#:tests? #f ; no tests
1155 #:phases (modify-phases %standard-phases
1158 (add-before 'install 'patch-scripts
1159 (lambda* (#:key inputs #:allow-other-keys)
1160 (let ((perl (string-append (assoc-ref inputs "perl")
1162 ;; This seems to take care of every shell script that
1164 (substitute* (find-files "." ".*")
1166 (string-append " " perl " -")))
1168 (substitute* (find-files "src/triggers" ".*")
1170 (string-append " " (which "sed") " ")))
1173 '("src/triggers/post-compile/update-gitweb-access-list"
1174 "src/triggers/post-compile/ssh-authkeys-split"
1175 "src/triggers/upstream")
1177 (string-append " " (which "grep") " ")))
1179 ;; Avoid references to the store in authorized_keys.
1180 ;; This works because gitolite-shell is in the PATH.
1181 (substitute* "src/triggers/post-compile/ssh-authkeys"
1182 (("\\$glshell \\$user")
1183 "gitolite-shell $user"))
1185 (add-before 'install 'patch-source
1186 (lambda* (#:key inputs #:allow-other-keys)
1187 ;; Gitolite uses cat to test the readability of the
1189 (substitute* "src/lib/Gitolite/Setup.pm"
1191 (string-append "\"" (which "cat") " "))
1193 (string-append "\"" (which "ssh-keygen"))))
1195 (substitute* '("src/lib/Gitolite/Hooks/PostUpdate.pm"
1196 "src/lib/Gitolite/Hooks/Update.pm")
1198 (string-append (assoc-ref inputs "perl")
1201 (substitute* "src/lib/Gitolite/Common.pm"
1203 (string-append "\"" (which "ssh-keygen")))
1206 (assoc-ref inputs "inetutils")
1211 (lambda* (#:key outputs #:allow-other-keys)
1212 (let* ((output (assoc-ref outputs "out"))
1213 (sharedir (string-append output "/share/gitolite"))
1214 (bindir (string-append output "/bin")))
1217 (invoke "./install" "-to" sharedir)
1218 ;; Create symlinks for executable scripts in /bin.
1219 (for-each (lambda (script)
1220 (symlink (string-append sharedir "/" script)
1221 (string-append bindir "/" script)))
1222 '("gitolite" "gitolite-shell"))
1224 (add-after 'install 'wrap-scripts
1225 (lambda* (#:key inputs outputs #:allow-other-keys)
1226 (let ((out (assoc-ref outputs "out"))
1227 (coreutils (assoc-ref inputs "coreutils"))
1228 (findutils (assoc-ref inputs "findutils"))
1229 (git (assoc-ref inputs "git")))
1230 (wrap-program (string-append out "/bin/gitolite")
1233 (string-append dir "/bin"))
1234 (list out coreutils findutils git))))
1238 ("coreutils" ,coreutils)
1239 ("findutils" ,findutils)
1240 ("inetutils" ,inetutils)))
1241 ;; git and openssh are propagated because trying to patch the source via
1242 ;; regexp matching is too brittle and prone to false positives.
1245 ("openssh" ,openssh)))
1246 (home-page "http://gitolite.com")
1247 (synopsis "Git access control layer")
1249 "Gitolite is an access control layer on top of Git, providing fine access
1250 control to Git repositories.")
1251 (license license:gpl2)))
1253 (define-public mercurial
1259 (uri (string-append "https://www.mercurial-scm.org/"
1260 "release/mercurial-" version ".tar.gz"))
1263 "1y60hfc8gh4ha9sw650qs7hndqmvbn0qxpmqwpn4q18z5xwm1f19"))))
1264 (build-system python-build-system)
1266 `(;; Restrict to Python 2, as Python 3 would require
1267 ;; the argument --c2to3.
1269 ;; FIXME: Disabled tests because they require the nose unit
1270 ;; testing framework: https://nose.readthedocs.org/en/latest/ .
1272 (home-page "https://www.mercurial-scm.org/")
1273 (synopsis "Decentralized version control system")
1275 "Mercurial is a free, distributed source control management tool.
1276 It efficiently handles projects of any size
1277 and offers an easy and intuitive interface.")
1278 (license license:gpl2+)))
1286 (uri (string-append "http://www.webdav.org/neon/neon-"
1290 "1jpvczcx658vimqm7c8my2q41fnmjaf1j03g7bsli6rjxk6xh2yv"))))
1291 (build-system gnu-build-system)
1294 ("pkg-config" ,pkg-config)))
1296 `(("libxml2" ,libxml2)
1297 ("openssl" ,openssl)
1300 `(;; FIXME: Add tests once reverse address lookup is fixed in glibc, see
1301 ;; https://sourceware.org/bugzilla/show_bug.cgi?id=16475
1303 #:configure-flags '("--enable-shared"
1304 ;; requires libgnutils-config, deprecated
1306 ; "--with-ssl=gnutls")))
1307 "--with-ssl=openssl")))
1308 (home-page "http://www.webdav.org/neon/")
1309 (synopsis "HTTP and WebDAV client library")
1311 "Neon is an HTTP and WebDAV client library, with a C interface and the
1314 @item High-level wrappers for common HTTP and WebDAV operations (GET, MOVE,
1316 @item low-level interface to the HTTP request/response engine, allowing the use
1317 of arbitrary HTTP methods, headers, etc.;
1318 @item authentication support including Basic and Digest support, along with
1319 GSSAPI-based Negotiate on Unix, and SSPI-based Negotiate/NTLM on Win32;
1320 @item SSL/TLS support using OpenSSL or GnuTLS, exposing an abstraction layer for
1321 verifying server certificates, handling client certificates, and examining
1322 certificate properties, smartcard-based client certificates are also
1323 supported via a PKCS#11 wrapper interface;
1324 @item abstract interface to parsing XML using libxml2 or expat, and wrappers for
1325 simplifying handling XML HTTP response bodies;
1326 @item WebDAV metadata support, wrappers for PROPFIND and PROPPATCH to simplify
1327 property manipulation.
1329 (license license:gpl2+))) ; for documentation and tests; source under lgpl2.0+
1331 (define-public subversion
1339 (string-append "https://archive.apache.org/dist/subversion/"
1340 "subversion-" version ".tar.bz2")
1341 (string-append "https://www-eu.apache.org/dist/subversion/"
1342 "subversion-" version ".tar.bz2")))
1345 "19zc215mhpnm92mlyl5jbv57r5zqp6cavr3s2g9yglp6j4kfgj0q"))))
1346 (build-system gnu-build-system)
1349 (modify-phases %standard-phases
1350 (add-after 'configure 'patch-libtool-wrapper-ls
1351 (lambda* (#:key inputs #:allow-other-keys)
1352 ;; This substitution allows tests svnauthz_tests and svnlook_tests
1353 ;; to pass. These tests execute svnauthz and svnlook through
1354 ;; their libtool wrapper scripts from svn hooks, whose empty
1355 ;; environments cause "ls: command not found" errors. It would be
1356 ;; nice if this fix ultimately made its way into libtool.
1357 (let ((coreutils (assoc-ref inputs "coreutils")))
1358 (substitute* "libtool"
1359 (("\\\\`ls") (string-append "\\`" coreutils "/bin/ls")))
1361 (add-before 'build 'patch-test-sh
1363 (substitute* "subversion/tests/libsvn_repos/repos-test.c"
1364 (("#!/bin/sh") (string-append "#!" (which "sh"))))
1366 (add-after 'install 'install-perl-bindings
1367 (lambda* (#:key outputs #:allow-other-keys)
1368 ;; Follow the instructions from 'subversion/bindings/swig/INSTALL'.
1369 (let ((out (assoc-ref outputs "out")))
1370 (invoke "make" "swig-pl-lib")
1371 ;; FIXME: Test failures.
1372 ;; (invoke "make" "check-swig-pl")
1373 (invoke "make" "install-swig-pl-lib")
1375 ;; Set the right installation prefix.
1376 (with-directory-excursion
1377 "subversion/bindings/swig/perl/native"
1378 (invoke "perl" "Makefile.PL"
1380 (string-append "PREFIX=" out))
1381 (invoke "make" "install"
1382 (string-append "OTHERLDFLAGS="
1386 `(("pkg-config" ,pkg-config)
1387 ;; For the Perl bindings.
1391 ("apr-util" ,apr-util)
1395 ("python" ,python-wrapper)
1397 ("utf8proc" ,utf8proc)
1399 (home-page "https://subversion.apache.org/")
1400 (synopsis "Revision control system")
1402 "@dfn{Subversion} (svn) exists to be recognized and adopted as a
1403 centralized version control system characterized by its
1404 reliability as a safe haven for valuable data; the simplicity of its model and
1405 usage; and its ability to support the needs of a wide variety of users and
1406 projects, from individuals to large-scale enterprise operations.")
1407 (license license:asl2.0)))
1415 (uri (string-append "mirror://gnu/rcs/rcs-"
1419 "1zsx7bb0rgvvvisiy4zlixf56ay8wbd9qqqcp1a1g0m1gl6mlg86"))
1420 (patches (search-patches "rcs-5.9.4-noreturn.patch"))))
1421 (build-system gnu-build-system)
1422 (native-inputs `(("ed" ,ed)))
1424 `(#:phases (modify-phases %standard-phases
1425 (add-before 'check 'disable-t810
1426 ;; See https://savannah.gnu.org/bugs/index.php?52288
1427 ;; Back-porting the fix is non-trivial, so disable for now.
1429 (substitute* "tests/Makefile"
1430 ((" t810 \\\\\n") ""))
1432 (home-page "https://www.gnu.org/software/rcs/")
1433 (synopsis "Per-file local revision control system")
1435 "RCS is the original Revision Control System. It works on a
1436 file-by-file basis, in contrast to subsequent version control systems such as
1437 CVS, Subversion, and Git. This can make it suitable for system
1438 administration files, for example, which are often inherently local to one
1440 (license license:gpl3+)))
1449 "https://ftp.gnu.org/non-gnu/cvs/source/feature/"
1450 version "/cvs-" version ".tar.bz2"))
1451 (patches (search-patches "cvs-CVE-2017-12836.patch"))
1454 "0pjir8cwn0087mxszzbsi1gyfc6373vif96cw4q3m1x6p49kd1bq"))))
1455 (build-system gnu-build-system)
1457 ;; XXX: The test suite looks flawed, and the package is obsolete anyway.
1459 #:configure-flags (list "--with-external-zlib")))
1460 (inputs `(("zlib" ,zlib)
1461 ("nano" ,nano))) ; the default editor
1462 (home-page "http://cvs.nongnu.org")
1463 (synopsis "Historical centralized version control system")
1465 "CVS is a version control system, an important component of Source
1466 Configuration Management (SCM). Using it, you can record the history of
1467 sources files, and documents. It fills a similar role to the free software
1468 RCS, PRCS, and Aegis packages.")
1469 (license license:gpl1+)))
1471 (define-public cvs-fast-export
1473 (name "cvs-fast-export")
1477 (uri (string-append "http://www.catb.org/~esr/cvs-fast-export/"
1478 "cvs-fast-export-" version ".tar.gz"))
1481 "19pxg6p0pcgyd2fbnh3wy1kazv6vcfi5lzc2whhdi1w9kj4r9c4z"))))
1482 (build-system gnu-build-system)
1485 (modify-phases %standard-phases
1486 (delete 'configure) ; no configure script
1487 (add-after 'unpack 'remove-optimizations
1489 ;; Don't optimize for a specific processor architecture.
1490 (substitute* "Makefile"
1491 (("CFLAGS \\+= -march=native") ""))
1493 #:parallel-build? #f ; parallel a2x commands fail spectacularly
1495 (list "CC=gcc" (string-append "prefix?=" (assoc-ref %outputs "out")))))
1496 (inputs `(("git" ,git)))
1497 (native-inputs `(("asciidoc" ,asciidoc)
1498 ;; These are needed for the tests.
1500 ("python" ,python-2)
1502 (home-page "http://www.catb.org/esr/cvs-fast-export/")
1503 (synopsis "Export an RCS or CVS history as a fast-import stream")
1504 (description "This program analyzes a collection of RCS files in a CVS
1505 repository (or outside of one) and, when possible, emits an equivalent history
1506 in the form of a fast-import stream. Not all possible histories can be
1507 rendered this way; the program tries to emit useful warnings when it can't.
1509 The program can also produce a visualization of the resulting commit directed
1510 acyclic graph (DAG) in the input format of @uref{http://www.graphviz.org,
1511 Graphviz}. The package also includes @command{cvssync}, a tool for mirroring
1512 masters from remote CVS hosts.")
1513 (license license:gpl2+)))
1515 (define-public vc-dwim
1521 (uri (string-append "mirror://gnu/vc-dwim/vc-dwim-"
1525 "0d5sqafc40l878m8wjr35jxmalj4kam1m6ph60v08ng4ml5g7931"))))
1526 (build-system gnu-build-system)
1527 (inputs `(("perl" ,perl)
1528 ("inetutils" ,inetutils))) ; for `hostname', used in the tests
1529 (native-inputs `(("emacs" ,emacs-minimal))) ; for `ctags'
1530 (home-page "https://www.gnu.org/software/vc-dwim/")
1531 (synopsis "Version-control-agnostic ChangeLog diff and commit tool")
1533 "The vc-dwim package contains two tools, \"vc-dwim\" and \"vc-chlog\".
1534 vc-dwim is a tool that simplifies the task of maintaining a ChangeLog and
1535 using version control at the same time, for example by printing a reminder
1536 when a file change has been described in the ChangeLog but the file has not
1537 been added to the VC. vc-chlog scans changed files and generates
1538 standards-compliant ChangeLog entries based on the changes that it detects.")
1539 (license license:gpl3+)))
1541 (define-public diffstat
1549 (string-append "ftp://invisible-island.net/diffstat/"
1550 name "-" version ".tgz")
1551 (string-append "http://invisible-mirror.net/archives/diffstat/"
1552 name "-" version ".tgz")))
1555 "07sr482y6iw7n7ddkba0w51kbjc99snvnijkn5ba2xzd8hv1h2bz"))))
1556 (build-system gnu-build-system)
1557 (home-page "https://invisible-island.net/diffstat/")
1558 (synopsis "Make histograms from the output of @command{diff}")
1560 "Diffstat reads the output of @command{diff} and displays a histogram of
1561 the insertions, deletions, and modifications per file. It is useful for
1562 reviewing large, complex patch files.")
1563 (license (license:x11-style "file://COPYING"))))
1571 (uri (string-append "mirror://gnu/" name "/CSSC-"
1575 "1vsisqq573xjr2qpn19iwmpqgl3mq03m790akpa4rvj60b4d1gni"))))
1576 (build-system gnu-build-system)
1579 (modify-phases %standard-phases
1580 (add-before 'check 'precheck
1583 (substitute* "tests/common/test-common"
1584 (("/bin/pwd") (which "pwd")))
1586 (substitute* "tests/prt/all-512.sh"
1587 (("/bin/sh") (which "sh")))
1589 ;; XXX: This test has no hope of passing until there is a "nogroup"
1590 ;; entry (or at least some group to which the guix builder does
1591 ;; not belong) in the /etc/group file of the build environment.
1592 ;; Currently we do not have such a group. Disable this test for now.
1593 (substitute* "tests/Makefile"
1594 (("test-delta ") ""))))))))
1595 ;; These are needed for the tests
1596 (native-inputs `(("git" ,git)
1598 (home-page "https://www.gnu.org/software/cssc/")
1599 (synopsis "File-based version control like SCCS")
1600 (description "GNU CSSC provides a replacement for the legacy Unix source
1601 code control system SCCS. This allows old code still under that system to be
1602 accessed and migrated on modern systems.")
1603 (license license:gpl3+)))
1605 ;; This package can unfortunately work only in -TEST mode, since Aegis
1606 ;; requires that it is installed setuid root.
1607 (define-public aegis
1613 (uri (string-append "mirror://sourceforge/aegis/aegis/" version
1614 "/aegis-" version ".tar.gz"))
1617 "18s86ssarfmc4l17gbpzybca29m5wa37cbaimdji8czlcry3mcjl"))
1618 (patches (search-patches "aegis-perl-tempdir1.patch"
1619 "aegis-perl-tempdir2.patch"
1620 "aegis-test-fixup-1.patch"
1621 "aegis-test-fixup-2.patch"
1622 "aegis-constness-error.patch"))))
1623 (build-system gnu-build-system)
1625 `(("e2fsprogs" ,e2fsprogs)
1628 ("libxml2" ,libxml2)
1630 ("gettext" ,gettext-minimal)))
1635 ;; Various tests require the following:
1639 ("subversion" ,subversion)
1643 `(#:configure-flags (list "--with-no-aegis-configured"
1644 "--sharedstatedir=/var/com/aegis")
1645 #:parallel-build? #f ; There are some nasty racy rules in the Makefile.
1647 (modify-phases %standard-phases
1648 (add-before 'configure 'pre-conf
1650 (substitute* (append '("configure"
1651 "etc/check-tar-gz.sh"
1655 "script/aebisect.in"
1656 "script/aeintegratq.in"
1658 "script/test_funcs.in"
1659 "web/eg_oss_templ.sh"
1661 "libaegis/getpw_cache.cc")
1662 (find-files "test" "\\.sh"))
1663 (("/bin/sh") (which "sh")))
1664 (setenv "SH" (which "sh"))
1668 (let ((home (string-append (getcwd) "/my-new-home")))
1669 ;; Some tests need to write to $HOME.
1671 (setenv "HOME" home)
1673 ;; This test assumes that flex has been symlinked to "lex".
1674 (substitute* "test/00/t0011a.sh"
1675 (("type lex") "type flex"))
1677 ;; XXX Disable tests that fail, for unknown reasons, ‘for now’.
1679 (lambda (test) (substitute* "Makefile"
1680 (((string-append "test/" test "\\.ES ")) "")))
1685 ;; The author decided to call the check rule "sure".
1686 (invoke "make" "sure")))))))
1687 (home-page "http://aegis.sourceforge.net")
1688 (synopsis "Project change supervisor")
1689 (description "Aegis is a project change supervisor, and performs some of
1690 the Software Configuration Management needed in a CASE environment. Aegis
1691 provides a framework within which a team of developers may work on many
1692 changes to a program independently, and Aegis coordinates integrating these
1693 changes back into the master source of the program, with as little disruption
1694 as possible. Resolution of contention for source files, a major headache for
1695 any project with more than one developer, is one of Aegis's major functions.")
1696 (license license:gpl3+)))
1698 (define-public reposurgeon
1700 (name "reposurgeon")
1704 (uri (string-append "http://www.catb.org/~esr/" name "/"
1705 name "-" version ".tar.xz"))
1708 "1af0z14wcm4bk5a9ysinbwq2fp3lf5f7i8mvwh7286hr3fnagcaz"))
1709 (patches (search-patches
1710 "reposurgeon-add-missing-docbook-files.patch"))))
1711 (build-system gnu-build-system)
1715 (string-append "target=" (assoc-ref %outputs "out")))
1717 (modify-phases %standard-phases
1718 (add-after 'unpack 'patch-inputs
1719 (lambda* (#:key inputs #:allow-other-keys)
1720 (let ((tzdata (assoc-ref inputs "tzdata")))
1721 (substitute* "reposurgeon"
1722 (("/usr/share/zoneinfo")
1723 (string-append tzdata "/share/zoneinfo")))
1724 (substitute* "test/svn-to-svn"
1725 (("/bin/echo") "echo"))
1727 (delete 'configure) ; no configure script
1728 (add-before 'build 'fix-docbook
1729 (lambda* (#:key inputs #:allow-other-keys)
1730 (substitute* (find-files "." "\\.xml$")
1731 (("docbook/docbookx.dtd")
1732 (string-append (assoc-ref inputs "docbook-xml")
1733 "/xml/dtd/docbook/docbookx.dtd")))
1735 (add-before 'check 'set-up-test-environment
1736 (lambda* (#:key inputs #:allow-other-keys)
1737 (let ((tzdata (assoc-ref inputs "tzdata")))
1738 (setenv "TZDIR" (string-append tzdata "/share/zoneinfo"))
1740 (add-after 'install 'install-emacs-data
1741 (lambda* (#:key outputs #:allow-other-keys)
1742 (install-file "reposurgeon-mode.el"
1743 (string-append (assoc-ref outputs "out")
1744 "/share/emacs/site-lisp"))
1747 `(("python" ,python-wrapper)
1748 ("tzdata" ,tzdata)))
1750 `( ;; For building documentation.
1751 ("asciidoc" ,asciidoc)
1752 ("docbook-xml" ,docbook-xml)
1753 ("docbook-xsl" ,docbook-xsl)
1754 ("libxml2" ,libxml2)
1760 ("mercurial" ,mercurial)
1761 ("subversion" ,subversion)))
1762 (home-page "http://www.catb.org/~esr/reposurgeon/")
1763 (synopsis "Edit version-control repository history")
1764 (description "Reposurgeon enables risky operations that version-control
1765 systems don't want to let you do, such as editing past comments and metadata
1766 and removing commits. It works with any version control system that can
1767 export and import Git fast-import streams, including Git, Mercurial, Fossil,
1768 Bazaar, CVS, RCS, and Src. It can also read Subversion dump files directly
1769 and can thus be used to script production of very high-quality conversions
1770 from Subversion to any supported Distributed Version Control System (DVCS).")
1771 ;; Most files are distributed under bsd-2, except 'repocutter' which is
1773 (license (list license:bsd-2 license:bsd-3))))
1782 "https://github.com/jonas/tig/releases/download/tig-"
1783 version "/tig-" version ".tar.gz"))
1786 "1f2qhpzbl7f35lsjcnx8lxzskha24m4frczsw78284jp7qcamdmn"))))
1787 (build-system gnu-build-system)
1789 `(("asciidoc" ,asciidoc)
1792 `(("ncurses" ,ncurses)
1793 ("readline" ,readline)))
1796 (modify-phases %standard-phases
1797 (add-after 'install 'install-doc
1799 (invoke "make" "install-doc"))))
1800 #:tests? #f)) ; tests require access to /dev/tty
1801 ;; #:test-target "test"))
1802 (home-page "https://jonas.github.io/tig/")
1803 (synopsis "Ncurses-based text user interface for Git")
1805 "Tig is an ncurses text user interface for Git, primarily intended as
1806 a history browser. It can also stage hunks for commit, or colorize the
1807 output of the @code{git} command.")
1808 (license license:gpl2+)))
1810 (define-public findnewest
1818 (url "https://github.com/0-wiz-0/findnewest.git")
1819 (commit (string-append "findnewest-" version))))
1820 (file-name (git-file-name name version))
1822 (base32 "1x1cbn2b27h5r0ah5xc06fkalfdci2ngrgd4wibxjw0h88h0nvgq"))))
1823 (build-system gnu-build-system)
1824 (native-inputs `(("autoconf" ,autoconf)
1825 ("automake" ,automake)))
1826 (home-page "https://github.com/0-wiz-0/findnewest/releases")
1827 (synopsis "Print the modification time of the latest file")
1829 "Recursively find the newest file in a file tree and print its
1830 modification time.")
1831 (license license:bsd-2)))
1833 (define-public myrepos
1836 (version "1.20180726")
1841 (url "git://myrepos.branchable.com/myrepos")
1843 (file-name (string-append name "-" version "-checkout"))
1845 (base32 "0jphw61plm8cgklja6hs639xhdvxgvjwbr6jpvjwpp7hc5gmhms5"))))
1846 (build-system gnu-build-system)
1848 '(#:test-target "test"
1849 #:make-flags (list (string-append "PREFIX=" %output))
1851 (modify-phases %standard-phases
1853 (add-after 'install 'wrap-webcheckout
1854 (lambda* (#:key inputs outputs #:allow-other-keys)
1855 (let ((out (assoc-ref outputs "out")))
1856 (wrap-program (string-append out "/bin/webcheckout")
1857 `("PERL5LIB" ":" prefix
1858 ,(map (lambda (i) (string-append (assoc-ref inputs i)
1859 "/lib/perl5/site_perl"))
1860 '("perl-encode-locale" "perl-http-date"
1861 "perl-http-message" "perl-html-parser" "perl-libwww"
1862 "perl-uri" "perl-try-tiny"))))
1866 ("perl-encode-locale" ,perl-encode-locale)
1867 ("perl-html-parser" ,perl-html-parser)
1868 ("perl-http-date" ,perl-http-date)
1869 ("perl-http-message" ,perl-http-message)
1870 ("perl-libwww" ,perl-libwww)
1871 ("perl-try-tiny" ,perl-try-tiny)
1872 ("perl-uri" ,perl-uri)))
1873 (home-page "https://myrepos.branchable.com/")
1874 (synopsis "Multiple repository management tool")
1876 "Myrepos provides the @code{mr} command, which maps an operation (e.g.,
1877 fetching updates) over a collection of version control repositories. It
1878 supports a large number of version control systems: Git, Subversion,
1879 Mercurial, Bazaar, Darcs, CVS, Fossil, and Veracity.")
1880 (license license:gpl2+)))
1882 (define-public git-annex-remote-hubic
1884 (name "git-annex-remote-hubic")
1890 (url "https://github.com/Schnouki/git-annex-remote-hubic.git")
1891 (commit (string-append "v" version))))
1892 (file-name (git-file-name name version))
1894 (base32 "16y9sk67hfi17h9n2kkffyabfccksh5rab40hhk69v6cxmbpn2sx"))))
1895 (build-system python-build-system)
1896 (arguments `(#:python ,python-2))
1899 ("python2-six" ,python2-six)))
1901 `(("python2-dateutil" ,python2-dateutil)
1902 ("python2-futures" ,python2-futures)
1903 ("python2-rauth" ,python2-rauth)
1904 ("python2-swiftclient" ,python2-swiftclient)))
1905 (home-page "https://github.com/Schnouki/git-annex-remote-hubic/")
1906 (synopsis "Use hubic as a git-annex remote")
1908 "This package allows you to use your hubic account as a \"special
1909 repository\" with git-annex.")
1910 (license license:gpl3+)))
1912 (define-public git-annex-remote-rclone
1914 (name "git-annex-remote-rclone")
1920 (url "https://github.com/DanielDent/git-annex-remote-rclone.git")
1921 (commit (string-append "v" version))))
1922 (file-name (git-file-name name version))
1925 "0j0hlxji8d974fq7zd4xc02n0jpi31ylhxc7z4zp8iiwad5mkpxp"))))
1926 (build-system trivial-build-system)
1928 `(#:modules ((guix build utils))
1931 (use-modules (guix build utils))
1932 (let ((bash (string-append (assoc-ref %build-inputs "bash")
1934 (rclone (string-append (assoc-ref %build-inputs "rclone")
1936 (copy-file (string-append (assoc-ref %build-inputs "source")
1937 "/git-annex-remote-rclone")
1938 "git-annex-remote-rclone")
1939 (substitute* "git-annex-remote-rclone"
1940 (("/bin/bash") bash)
1941 (("runcmd rclone") (string-append "runcmd " rclone)))
1942 (install-file "git-annex-remote-rclone"
1943 (string-append %output "/bin"))
1947 ("rclone" ,rclone)))
1948 (home-page "https://github.com/DanielDent/git-annex-remote-rclone")
1949 (synopsis "Use rclone-supported cloud storage providers with git-annex")
1950 (description "This wrapper around rclone makes any destination supported
1951 by rclone usable with git-annex.")
1952 (license license:gpl3+)))
1954 (define-public fossil
1961 ;; Older downloads are moved to another URL.
1964 "https://www.fossil-scm.org/index.html/uv/download/"
1965 "fossil-src-" version ".tar.gz")
1967 "https://www.fossil-scm.org/index.html/uv/"
1968 "fossil-src-" version ".tar.gz")))
1971 "0pbinf8d2kj1j7niblhzjd2l2khg6r2pn2xvig6gavz27p3vwcka"))
1972 (modules '((guix build utils)))
1975 (delete-file-recursively "compat") #t))))
1976 (build-system gnu-build-system)
1978 `(("tcl" ,tcl) ;for configuration only
1979 ("which" ,which) ;for tests only
1982 `(("openssl" ,openssl)
1984 ("sqlite" ,sqlite)))
1986 `(#:configure-flags (list "--with-openssl=auto"
1987 "--disable-internal-sqlite")
1988 #:test-target "test"
1989 #:phases (modify-phases %standard-phases
1990 (add-after 'patch-source-shebangs 'patch-sh
1992 (substitute* '("auto.def")
1993 (("/bin/sh") (which "sh")))
1996 (lambda* (#:key outputs (configure-flags '())
1998 ;; The 'configure' script is not an autoconf script and
1999 ;; chokes on unrecognized options.
2002 (string-append "--prefix="
2003 (assoc-ref outputs "out"))
2006 (add-before 'check 'test-setup
2008 (setenv "USER" "guix")
2011 (home-page "https://fossil-scm.org")
2012 (synopsis "Software configuration management system")
2014 "Fossil is a distributed source control management system which supports
2015 access and administration over HTTP CGI or via a built-in HTTP server. It has
2016 a built-in wiki, built-in file browsing, built-in tickets system, etc.")
2017 (license (list license:public-domain ;src/miniz.c, src/shell.c
2020 (define-public stagit
2026 (uri (string-append "https://dl.2f30.org/releases/"
2027 name "-" version ".tar.gz"))
2030 "1m3s9g1z9szbjrhm8sic91xh6f2bfpi56rskdkqd5wc4wdycpyi5"))))
2031 (build-system gnu-build-system)
2033 `(#:tests? #f ; No tests
2034 #:make-flags (list "CC=gcc"
2035 (string-append "PREFIX=" %output))
2037 (modify-phases %standard-phases
2038 (delete 'configure)))) ; No configure script
2040 `(("libgit2" ,libgit2)))
2041 (home-page "https://2f30.org/")
2042 (synopsis "Static git page generator")
2043 (description "Stagit creates static pages for git repositories, the results can
2044 be served with a HTTP file server of your choice.")
2045 (license license:expat)))
2047 (define-public gource
2054 "https://github.com/acaudwell/Gource/releases/download"
2055 "/gource-" version "/gource-" version ".tar.gz"))
2058 "12hf5ipcsp9dxsqn84n4kr63xaiskrnf5a084wr29qk171lj7pd9"))))
2059 (build-system gnu-build-system)
2062 (list (string-append "--with-boost-libdir="
2063 (assoc-ref %build-inputs "boost")
2066 `(("pkg-config" ,pkg-config)))
2076 ("sdl-union" ,(sdl-union (list sdl2 sdl2-image)))))
2077 (home-page "http://gource.io/")
2078 (synopsis "3D visualisation tool for source control repositories")
2079 (description "@code{gource} provides a software version control
2080 visualization. The repository is displayed as a tree where the root of the
2081 repository is the centre, directories are branches and files are leaves.
2082 Contributors to the source code appear and disappear as they contribute to
2083 specific files and directories.")
2084 (license license:gpl3+)))
2093 "http://www.catb.org/~esr/src/src-" version ".tar.gz"))
2096 "0n0skhvya8w2az45h2gsafxy8m2mvqas64nrgxifcmrzfv0rf26c"))))
2097 (build-system gnu-build-system)
2100 (list (string-append "prefix=" (assoc-ref %outputs "out")))
2102 (modify-phases %standard-phases
2103 (delete 'configure) ; no 'configure' script
2104 (add-after 'install 'wrap-program
2105 (lambda* (#:key inputs outputs #:allow-other-keys)
2106 (let* ((out (assoc-ref outputs "out"))
2107 (prog (string-append out "/bin/src"))
2108 (rcs (assoc-ref inputs "rcs")))
2110 `("PATH" ":" prefix (,(string-append rcs "/bin"))))
2114 (setenv "HOME" (getenv "TMPDIR"))
2115 (invoke "git" "config" "--global" "user.name" "guix")
2116 (invoke "git" "config" "--global" "user.email" "guix")
2117 (invoke "./srctest"))))))
2123 `(("python" ,python-wrapper)
2125 (synopsis "Simple revision control")
2126 (home-page "http://www.catb.org/~esr/src/")
2128 "SRC (or src) is simple revision control, a version-control system for
2129 single-file projects by solo developers and authors. It modernizes the
2130 venerable RCS, hence the anagrammatic acronym. The design is tuned for use
2131 cases like all those little scripts in your @file{~/bin} directory, or a
2132 directory full of HOWTOs.")
2133 (license license:bsd-2)))
2135 (define-public git-when-merged
2136 ;; Use an unreleased version to get a PY3 compatibility fix.
2137 (let ((commit "ab6af7865a0ba55ba364a6c507e0be6f84f31c6d"))
2139 (name "git-when-merged")
2140 (version (string-append "1.2.0-" (string-take commit 7)))
2144 (url "https://github.com/mhagger/git-when-merged/")
2146 (file-name (git-file-name name version))
2149 "0iyk2psf97bc9h43m89p3xjmm79fsx99i7px29g4lcnmdy5kmz0p"))))
2150 (build-system gnu-build-system)
2152 `(#:tests? #f ; there are no tests
2154 (modify-phases %standard-phases
2158 (lambda* (#:key outputs #:allow-other-keys)
2159 (install-file "bin/git-when-merged"
2160 (string-append (assoc-ref outputs "out")
2163 (add-before 'install 'patch-git
2164 (lambda* (#:key inputs #:allow-other-keys)
2165 (let ((git (string-append (assoc-ref inputs "git")
2167 (substitute* "bin/git-when-merged"
2168 (("'git'") (string-append "'" git "'")))
2170 (add-after 'install 'wrap-script
2171 (lambda* (#:key outputs #:allow-other-keys)
2172 (wrap-program (string-append (assoc-ref outputs "out")
2173 "/bin/git-when-merged")
2174 `("PYTHONPATH" ":" prefix (,(getenv "PYTHONPATH"))))
2178 ("python" ,python-wrapper)))
2179 (home-page "https://github.com/mhagger/git-when-merged")
2180 (synopsis "Determine when a commit was merged into a Git branch")
2181 (description "This Git extension defines a subcommand,
2182 @code{when-merged}, whose core operation is to find the merge that brought a
2183 given commit into the specified ref(s). It has various options that control
2184 how information about the merge is displayed.")
2185 (license license:gpl2+))))
2187 (define-public git-imerge
2195 (url "https://github.com/mhagger/git-imerge.git")
2196 (commit (string-append "v" version))))
2197 (file-name (git-file-name name version))
2199 (base32 "0vi1w3f0yk4gqhxj2hzqafqq28rihyhyfnp8x7xzib96j2si14a4"))))
2200 (build-system gnu-build-system)
2202 `(#:tests? #f ; only manual test scripts
2203 #:make-flags (list (string-append "DESTDIR=" %output)
2206 (modify-phases %standard-phases
2208 (add-before 'install 'patch-git
2209 (lambda* (#:key inputs #:allow-other-keys)
2210 (let ((git (string-append (assoc-ref inputs "git")
2212 (substitute* "git-imerge"
2213 (("'git'") (string-append "'" git "'")))
2215 (add-after 'install 'wrap-script
2216 (lambda* (#:key outputs #:allow-other-keys)
2217 (wrap-program (string-append (assoc-ref outputs "out")
2219 `("PYTHONPATH" ":" prefix (,(getenv "PYTHONPATH"))))
2223 ("python" ,python-wrapper)))
2224 (home-page "https://github.com/mhagger/git-imerge")
2225 (synopsis "Incremental merge for Git")
2226 (description "This Git extension defines a subcommand, @code{imerge},
2227 which performs an incremental merge between two branches. Its two primary
2228 design goals are to reduce the pain of resolving merge conflicts by finding
2229 the smallest possible conflicts and to allow a merge to be saved, tested,
2230 interrupted, published, and collaborated on while in progress.")
2231 (license license:gpl2+)))
2233 (define-public git-lfs
2240 (url "https://github.com/git-lfs/git-lfs")
2241 (commit (string-append "v" version))))
2242 (file-name (git-file-name name version))
2245 "1nf40rbdz901vsahg5cm09pznpina6wimmxl0lmh8pn0mi51yzvc"))))
2246 (build-system go-build-system)
2248 '(#:import-path "github.com/git-lfs/git-lfs"))
2249 (home-page "https://git-lfs.github.com/")
2250 (synopsis "Git extension for versioning large files")
2252 "Git Large File Storage (LFS) replaces large files such as audio samples,
2253 videos, datasets, and graphics with text pointers inside Git, while storing the
2254 file contents on a remote server.")
2255 (license license:expat)))