| 1 | |
| 2 | |
| 3 | |
| 4 | |
| 5 | |
| 6 | |
| 7 | |
| 8 | |
| 9 | |
| 10 | |
| 11 | |
| 12 | |
| 13 | |
| 14 | |
| 15 | |
| 16 | |
| 17 | |
| 18 | |
| 19 | |
| 20 | |
| 21 | |
| 22 | |
| 23 | |
| 24 | |
| 25 | |
| 26 | |
| 27 | |
| 28 | |
| 29 | |
| 30 | |
| 31 | |
| 32 | |
| 33 | |
| 34 | |
| 35 | |
| 36 | |
| 37 | |
| 38 | |
| 39 | |
| 40 | |
| 41 | |
| 42 | |
| 43 | |
| 44 | |
| 45 | |
| 46 | |
| 47 | |
| 48 | |
| 49 | |
| 50 | |
| 51 | |
| 52 | |
| 53 | |
| 54 | |
| 55 | |
| 56 | |
| 57 | |
| 58 | |
| 59 | |
| 60 | |
| 61 | |
| 62 | |
| 63 | |
| 64 | |
| 65 | |
| 66 | |
| 67 | |
| 68 | |
| 69 | |
| 70 | |
| 71 | |
| 72 | |
| 73 | |
| 74 | |
| 75 | |
| 76 | |
| 77 | |
| 78 | |
| 79 | |
| 80 | |
| 81 | |
| 82 | |
| 83 | |
| 84 | |
| 85 | |
| 86 | |
| 87 | |
| 88 |
|
| 89 | (define-module (gnu packages version-control)
|
| 90 | #:use-module ((guix licenses) #:prefix license:)
|
| 91 | #:use-module (guix utils)
|
| 92 | #:use-module (guix packages)
|
| 93 | #:use-module (guix deprecation)
|
| 94 | #:use-module (guix gexp)
|
| 95 | #:use-module (guix download)
|
| 96 | #:use-module (guix fossil-download)
|
| 97 | #:use-module (guix git-download)
|
| 98 | #:use-module (guix hg-download)
|
| 99 | #:use-module (guix build-system cargo)
|
| 100 | #:use-module (guix build-system cmake)
|
| 101 | #:use-module (guix build-system copy)
|
| 102 | #:use-module (guix build-system emacs)
|
| 103 | #:use-module (guix build-system gnu)
|
| 104 | #:use-module (guix build-system go)
|
| 105 | #:use-module (guix build-system perl)
|
| 106 | #:use-module (guix build-system pyproject)
|
| 107 | #:use-module (guix build-system qt)
|
| 108 | #:use-module (guix build-system trivial)
|
| 109 | #:use-module (gnu packages apr)
|
| 110 | #:use-module (gnu packages autotools)
|
| 111 | #:use-module (gnu packages documentation)
|
| 112 | #:use-module (gnu packages base)
|
| 113 | #:use-module (gnu packages bash)
|
| 114 | #:use-module (gnu packages bison)
|
| 115 | #:use-module (gnu packages boost)
|
| 116 | #:use-module (gnu packages bootloaders)
|
| 117 | #:use-module (gnu packages build-tools)
|
| 118 | #:use-module (gnu packages check)
|
| 119 | #:use-module (gnu packages crypto)
|
| 120 | #:use-module (gnu packages curl)
|
| 121 | #:use-module (gnu packages databases)
|
| 122 | #:use-module (gnu packages docbook)
|
| 123 | #:use-module (gnu packages file)
|
| 124 | #:use-module (gnu packages compiler-tools)
|
| 125 | #:use-module (gnu packages freedesktop)
|
| 126 | #:use-module (gnu packages gawk)
|
| 127 | #:use-module (gnu packages gettext)
|
| 128 | #:use-module (gnu packages gcc)
|
| 129 | #:use-module (gnu packages gl)
|
| 130 | #:use-module (gnu packages glib)
|
| 131 | #:use-module (gnu packages gnome)
|
| 132 | #:use-module (gnu packages gnupg)
|
| 133 | #:use-module (gnu packages golang)
|
| 134 | #:use-module (gnu packages golang-build)
|
| 135 | #:use-module (gnu packages golang-check)
|
| 136 | #:use-module (gnu packages golang-compression)
|
| 137 | #:use-module (gnu packages golang-crypto)
|
| 138 | #:use-module (gnu packages golang-vcs)
|
| 139 | #:use-module (gnu packages golang-web)
|
| 140 | #:use-module (gnu packages golang-xyz)
|
| 141 | #:use-module (gnu packages groff)
|
| 142 | #:use-module (gnu packages guile)
|
| 143 | #:use-module (gnu packages guile-xyz)
|
| 144 | #:use-module (gnu packages image)
|
| 145 | #:use-module (gnu packages imagemagick)
|
| 146 | #:use-module (gnu packages less)
|
| 147 | #:use-module (gnu packages libbsd)
|
| 148 | #:use-module (gnu packages libevent)
|
| 149 | #:use-module (gnu packages linux)
|
| 150 | #:use-module (gnu packages mail)
|
| 151 | #:use-module (gnu packages man)
|
| 152 | #:use-module (gnu packages maths)
|
| 153 | #:use-module (gnu packages ncurses)
|
| 154 | #:use-module (gnu packages ssh)
|
| 155 | #:use-module (gnu packages web)
|
| 156 | #:use-module (gnu packages patchutils)
|
| 157 | #:use-module (gnu packages pcre)
|
| 158 | #:use-module (gnu packages perl)
|
| 159 | #:use-module (gnu packages perl-check)
|
| 160 | #:use-module (gnu packages php)
|
| 161 | #:use-module (gnu packages pkg-config)
|
| 162 | #:use-module (gnu packages prometheus)
|
| 163 | #:use-module (gnu packages python)
|
| 164 | #:use-module (gnu packages python-build)
|
| 165 | #:use-module (gnu packages python-check)
|
| 166 | #:use-module (gnu packages python-crypto)
|
| 167 | #:use-module (gnu packages python-web)
|
| 168 | #:use-module (gnu packages python-xyz)
|
| 169 | #:use-module (gnu packages readline)
|
| 170 | #:use-module (gnu packages rsync)
|
| 171 | #:use-module (gnu packages ruby-xyz)
|
| 172 | #:use-module (gnu packages sqlite)
|
| 173 | #:use-module (gnu packages texinfo)
|
| 174 | #:use-module (gnu packages text-editors)
|
| 175 | #:use-module (gnu packages admin)
|
| 176 | #:use-module (gnu packages xml)
|
| 177 | #:use-module (gnu packages emacs)
|
| 178 | #:use-module (gnu packages compression)
|
| 179 | #:use-module (gnu packages qt)
|
| 180 | #:use-module (gnu packages rust)
|
| 181 | #:use-module (gnu packages sdl)
|
| 182 | #:use-module (gnu packages ssh)
|
| 183 | #:use-module (gnu packages swig)
|
| 184 | #:use-module (gnu packages sync)
|
| 185 | #:use-module (gnu packages tcl)
|
| 186 | #:use-module (gnu packages textutils)
|
| 187 | #:use-module (gnu packages time)
|
| 188 | #:use-module (gnu packages tls)
|
| 189 | #:use-module (gnu packages tor)
|
| 190 | #:use-module (gnu packages)
|
| 191 | #:use-module (ice-9 match)
|
| 192 | #:use-module (srfi srfi-1)
|
| 193 | #:export (make-gitolite))
|
| 194 |
|
| 195 | (define-public breezy
|
| 196 | (package
|
| 197 | (name "breezy")
|
| 198 | (version "3.3.22")
|
| 199 | (source
|
| 200 | (origin
|
| 201 | (method git-fetch)
|
| 202 | (uri (git-reference
|
| 203 | (url "https://github.com/breezy-team/breezy")
|
| 204 | (commit (string-append "brz-" version))))
|
| 205 | (file-name (git-file-name name version))
|
| 206 | (sha256
|
| 207 | (base32 "05xrwn8i8djrd2n9bwcas0y3sy51im8klw1w8ykvg3qhcnl4qlcg"))))
|
| 208 | (build-system pyproject-build-system)
|
| 209 | (arguments
|
| 210 | (list
|
| 211 | #:modules
|
| 212 | '(((guix build cargo-build-system) #:prefix cargo:)
|
| 213 | (guix build pyproject-build-system)
|
| 214 | (guix build utils))
|
| 215 | #:imported-modules
|
| 216 | `(,@%cargo-build-system-modules
|
| 217 | ,@%pyproject-build-system-modules)
|
| 218 | #:phases
|
| 219 | #~(modify-phases %standard-phases
|
| 220 | (add-after 'unpack 'prepare-cargo-build-system
|
| 221 | (lambda args
|
| 222 | (for-each
|
| 223 | (lambda (phase)
|
| 224 | (format #t "Running cargo phase: ~a~%" phase)
|
| 225 | (apply (assoc-ref cargo:%standard-phases phase)
|
| 226 | #:cargo-target #$(cargo-triplet)
|
| 227 | args))
|
| 228 | '(unpack-rust-crates
|
| 229 | configure
|
| 230 | check-for-pregenerated-files
|
| 231 | patch-cargo-checksums))))
|
| 232 | (add-after 'unpack 'patch-test-shebangs
|
| 233 | (lambda _
|
| 234 | (substitute* (append (find-files "breezy/bzr/tests")
|
| 235 | (find-files "breezy/tests"))
|
| 236 | (("#!/bin/sh")
|
| 237 | (format #f "#!~a" (which "sh"))))))
|
| 238 | (add-after 'build 'build-man
|
| 239 | (lambda _
|
| 240 | (invoke "python3" "tools/generate_docs.py" "man")))
|
| 241 | (add-after 'install 'install-man
|
| 242 | (lambda _
|
| 243 | (let ((man1 (string-append #$output "/share/man/man1")))
|
| 244 | (install-file "brz.1" man1)
|
| 245 | (install-file "breezy/git/git-remote-bzr.1" man1))))
|
| 246 | (add-after 'install 'install-completion
|
| 247 | (lambda* (#:key outputs #:allow-other-keys)
|
| 248 | (let* ((bash (string-append #$output
|
| 249 | "/share/bash-completion/completions")))
|
| 250 | (install-file "contrib/bash/brz" bash))))
|
| 251 | (add-after 'install-man 'bzr-compat
|
| 252 | (lambda _
|
| 253 | (let ((bin (string-append #$output "/bin"))
|
| 254 | (man1 (string-append #$output "/share/man/man1")))
|
| 255 | (symlink (in-vicinity bin "brz")
|
| 256 | (in-vicinity bin "bzr"))
|
| 257 | (call-with-output-file (string-append man1 "/bzr.1")
|
| 258 | (lambda (port)
|
| 259 | (format port ".so man1/brz.1"))))))
|
| 260 | |
| 261 | (replace 'check
|
| 262 | (lambda* (#:key tests? #:allow-other-keys)
|
| 263 | (when tests?
|
| 264 | (setenv "BZR_EDITOR" "nano")
|
| 265 | (invoke "brz" "selftest" "--verbose" "--parallel=fork"
|
| 266 | |
| 267 | "-x" "breezy.tests.blackbox.test_serve"
|
| 268 | |
| 269 | "-x" "breezy.tests.test_gpg"
|
| 270 | |
| 271 | "-x" "bash_completion"
|
| 272 | |
| 273 | "-x" "breezy.tests.blackbox.test_diff.TestExternalDiff.test_external_diff"
|
| 274 | |
| 275 | "-x" "breezy.tests.test_https_urllib.CaCertsConfigTests.test_default_exists"
|
| 276 | |
| 277 | "-x" "breezy.tests.test_plugins.TestLoadPluginAt.test_compiled_loaded"
|
| 278 | "-x" "breezy.tests.test_plugins.TestPlugins.test_plugin_get_path_pyc_only"
|
| 279 | "-x" "breezy.tests.test_selftest.TestActuallyStartBzrSubprocess.test_start_and_stop_bzr_subprocess_send_signal"
|
| 280 | |
| 281 | "-x" "breezy.tests.test_transport.TestSSHConnections.test_bzr_connect_to_bzr_ssh"
|
| 282 | |
| 283 | "-x" "breezy.git.tests.test_server.TestPlainFetch.test_fetch_from_native_git"
|
| 284 | "-x" "breezy.git.tests.test_server.TestPlainFetch.test_fetch_from_non_git"
|
| 285 | "-x" "breezy.git.tests.test_server.TestPlainFetch.test_fetch_nothin")))))))
|
| 286 | (native-inputs
|
| 287 | (append
|
| 288 | (list gettext-minimal
|
| 289 | python-cython
|
| 290 | python-setuptools
|
| 291 | python-setuptools-gettext
|
| 292 | python-setuptools-rust
|
| 293 | python-tomli
|
| 294 | rust
|
| 295 | `(,rust "cargo")
|
| 296 | |
| 297 | nano
|
| 298 | python-testtools
|
| 299 | python-packaging
|
| 300 | python-subunit)
|
| 301 | (or (and=> (%current-target-system)
|
| 302 | (compose list make-rust-sysroot))
|
| 303 | '())))
|
| 304 | (inputs (cons* python-catalogus
|
| 305 | python-configobj
|
| 306 | python-dulwich
|
| 307 | python-fastbencode
|
| 308 | python-merge3
|
| 309 | python-patiencediff
|
| 310 | python-pyyaml
|
| 311 | python-urllib3
|
| 312 | python-vcsgraph
|
| 313 | |
| 314 | python-fastimport
|
| 315 | python-gpg
|
| 316 | python-launchpadlib
|
| 317 | python-paramiko
|
| 318 | python-pygithub
|
| 319 | python-subunit
|
| 320 |
|
| 321 | (cargo-inputs 'breezy)))
|
| 322 | (home-page "https://www.breezy-vcs.org/")
|
| 323 | (synopsis "Decentralized revision control system")
|
| 324 | (description
|
| 325 | "Breezy (@command{brz}) is a decentralized revision control system. By
|
| 326 | default, Breezy provides support for both the
|
| 327 | @uref{https://bazaar.canonical.com/, Bazaar} and @uref{https://www.git-scm.com,
|
| 328 | Git} file formats. Breezy is backwards compatible with Bazaar's disk format
|
| 329 | and protocols. One of the key differences with Bazaar is that Breezy runs on
|
| 330 | Python 3.3 and later, rather than on Python 2.")
|
| 331 | (license license:gpl2+)))
|
| 332 |
|
| 333 | (define-public python-vcsgraph
|
| 334 | (package
|
| 335 | (name "python-vcsgraph")
|
| 336 | (version "0.3.2")
|
| 337 | (source
|
| 338 | (origin
|
| 339 | (method git-fetch)
|
| 340 | (uri (git-reference
|
| 341 | (url "https://github.com/breezy-team/vcsgraph")
|
| 342 | (commit (string-append "v" version))))
|
| 343 | (file-name (git-file-name name version))
|
| 344 | (sha256
|
| 345 | (base32 "15hxlvvz2s21rpgk6nvlhzv9lb8glicjfsgx5vvcaqrh2y0qdr05"))))
|
| 346 | (build-system pyproject-build-system)
|
| 347 | (arguments
|
| 348 | (list
|
| 349 | #:imported-modules (append %cargo-build-system-modules
|
| 350 | %pyproject-build-system-modules)
|
| 351 | #:modules '(((guix build cargo-build-system) #:prefix cargo:)
|
| 352 | (guix build pyproject-build-system)
|
| 353 | (guix build utils))
|
| 354 | #:test-flags #~(list "--pyargs" "vcsgraph")
|
| 355 | #:phases
|
| 356 | #~(modify-phases %standard-phases
|
| 357 | (add-after 'unpack 'prepare-cargo-build-system
|
| 358 | (lambda args
|
| 359 | (for-each (lambda (phase)
|
| 360 | (format #t "Running cargo phase: ~a~%" phase)
|
| 361 | (apply (assoc-ref cargo:%standard-phases phase)
|
| 362 | #:cargo-target #$(cargo-triplet)
|
| 363 | args))
|
| 364 | '(prepare-rust-crates
|
| 365 | unpack-rust-crates
|
| 366 | configure
|
| 367 | check-for-pregenerated-files
|
| 368 | patch-cargo-checksums))))
|
| 369 | (add-before 'check 'remove-local-source
|
| 370 | (lambda _
|
| 371 | (delete-file-recursively "vcsgraph"))))))
|
| 372 | (native-inputs
|
| 373 | (append (list python-pytest
|
| 374 | python-setuptools
|
| 375 | python-setuptools-rust
|
| 376 | rust
|
| 377 | (list rust "cargo"))
|
| 378 | (or (and=> (%current-target-system)
|
| 379 | (compose list make-rust-sysroot))
|
| 380 | '())))
|
| 381 | (inputs (cargo-inputs 'python-vcsgraph))
|
| 382 | (home-page "https://github.com/breezy-team/vcsgraph")
|
| 383 | (synopsis "Graph algorithms for version control systems")
|
| 384 | (description
|
| 385 | "This package provides a Python library providing graph algorithms
|
| 386 | optimized for version control systems.")
|
| 387 | (license license:gpl2+)))
|
| 388 |
|
| 389 | (define git-cross-configure-flags
|
| 390 | #~(list "ac_cv_fread_reads_directories=yes"
|
| 391 | "ac_cv_snprintf_returns_bogus=no"
|
| 392 | "ac_cv_iconv_omits_bom=no"))
|
| 393 |
|
| 394 | |
| 395 | |
| 396 | |
| 397 | (define-public git-minimal/pinned
|
| 398 | (package
|
| 399 | (name "git-minimal")
|
| 400 | (version "2.55.0")
|
| 401 | (source (origin
|
| 402 | (method url-fetch)
|
| 403 | (uri (string-append "mirror://kernel.org/software/scm/git/git-"
|
| 404 | version ".tar.xz"))
|
| 405 | (sha256
|
| 406 | (base32
|
| 407 | "0mska0bwrshipx02l3wj4w3nhvrfj7k9b1k8sh3y0a47vh2dnzs5"))))
|
| 408 | (build-system gnu-build-system)
|
| 409 | (arguments
|
| 410 | (list
|
| 411 | #:modules `((srfi srfi-1)
|
| 412 | (srfi srfi-26)
|
| 413 | (ice-9 format)
|
| 414 | (ice-9 textual-ports)
|
| 415 | ((guix build gnu-build-system) #:prefix gnu:)
|
| 416 | ,@%default-gnu-modules)
|
| 417 | |
| 418 | #:disallowed-references (list (this-package-native-input "bash")
|
| 419 | (this-package-native-input "perl"))
|
| 420 | #:test-target "test"
|
| 421 | #:configure-flags
|
| 422 | #~(cons "--with-gitconfig=/etc/gitconfig"
|
| 423 | #$(if (%current-target-system) git-cross-configure-flags #~(list)))
|
| 424 | #:make-flags
|
| 425 | #~(list "V=1" |
| 426 | "NO_RUST=1" |
| 427 | (string-append "SHELL_PATH="
|
| 428 | #+(this-package-native-input "bash-minimal")
|
| 429 | "/bin/sh")
|
| 430 |
|
| 431 | |
| 432 | (string-append "TEST_SHELL_PATH="
|
| 433 | #+(this-package-native-input "bash")
|
| 434 | "/bin/bash")
|
| 435 |
|
| 436 | |
| 437 | |
| 438 | |
| 439 | "NO_INSTALL_HARDLINKS=indeed")
|
| 440 | #:phases
|
| 441 | #~(modify-phases %standard-phases
|
| 442 | #$@(if (%current-target-system)
|
| 443 | |
| 444 | #~((add-after 'unpack 'use-host-uname_S
|
| 445 | (lambda _
|
| 446 | (substitute* "config.mak.uname"
|
| 447 | (("uname_S := .*" all)
|
| 448 | (if #$(target-hurd?)
|
| 449 | "uname_S := GNU\n"
|
| 450 | all))))))
|
| 451 | |
| 452 | #~((add-after 'unpack 'modify-PATH
|
| 453 | (lambda* (#:key inputs #:allow-other-keys)
|
| 454 | (let ((path (string-split (getenv "PATH") #\:))
|
| 455 | (bash-full #$(this-package-native-input "bash")))
|
| 456 | |
| 457 | |
| 458 | (setenv "PATH"
|
| 459 | (string-join
|
| 460 | (remove (cut string-prefix? bash-full <>)
|
| 461 | path)
|
| 462 | ":")))))))
|
| 463 | #$@(if (system-hurd?)
|
| 464 | #~((add-after 'unpack 'delete-tests/hurd
|
| 465 | (lambda _
|
| 466 | (delete-file "t/t0052-simple-ipc.sh")
|
| 467 | (delete-file "t/t5562-http-backend-content-length.sh")
|
| 468 | (delete-file "t/t9902-completion.sh"))))
|
| 469 | #~())
|
| 470 | |
| 471 | #$@(if (%current-target-system)
|
| 472 | #~((add-before 'configure 'add-cross-curl-config
|
| 473 | (lambda* (#:key inputs #:allow-other-keys)
|
| 474 | (setenv "PATH"
|
| 475 | (string-append
|
| 476 | (dirname (search-input-file
|
| 477 | inputs "bin/curl-config"))
|
| 478 | ":" (getenv "PATH"))))))
|
| 479 | #~())
|
| 480 | (add-after 'unpack 'patch-commands
|
| 481 | (lambda* (#:key inputs #:allow-other-keys)
|
| 482 | (define (prepend-string-to-file text file)
|
| 483 | "Prepend TEXT to FILE."
|
| 484 | (let ((content (call-with-input-file file
|
| 485 | (cut get-string-all <>))))
|
| 486 | (call-with-output-file file
|
| 487 | (lambda (port)
|
| 488 | (display text port)
|
| 489 | (display content port)))))
|
| 490 |
|
| 491 | (define PATH-variable-definition
|
| 492 | (format #f "PATH=~{~a~^:~}${PATH:+:}$PATH~%~%"
|
| 493 | (map (compose dirname (cut search-input-file inputs <>))
|
| 494 | '("bin/basename"
|
| 495 | "bin/sed"))))
|
| 496 |
|
| 497 | |
| 498 | |
| 499 | (prepend-string-to-file PATH-variable-definition
|
| 500 | "git-sh-setup.sh")
|
| 501 |
|
| 502 | |
| 503 | |
| 504 | |
| 505 | (substitute* "git-sh-setup.sh"
|
| 506 | (("\\$\\(uname -s)")
|
| 507 | (if #$(target-mingw?)
|
| 508 | "MINGW"
|
| 509 | "GNU"))) |
| 510 |
|
| 511 | |
| 512 | |
| 513 | |
| 514 | (substitute* "git-submodule.sh"
|
| 515 | (("\\$\\(basename")
|
| 516 | (string-append "$(" (search-input-file inputs "bin/basename")))
|
| 517 | (("sed -e")
|
| 518 | (string-append (search-input-file inputs "bin/sed") " -e")))
|
| 519 |
|
| 520 | |
| 521 | (substitute* "git-send-email.perl"
|
| 522 | (("'sh'")
|
| 523 | (format #f "'~a'" (search-input-file inputs "bin/sh"))))))
|
| 524 | (add-after 'configure 'patch-makefiles
|
| 525 | (lambda _
|
| 526 | (substitute* "Makefile"
|
| 527 | (("/usr/bin/perl") (which "perl")))))
|
| 528 | (add-after 'configure 'add-PM.stamp
|
| 529 | (lambda _
|
| 530 | |
| 531 | (call-with-output-file "perl/PM.stamp" (const #t))))
|
| 532 | (add-before 'check 'patch-tests
|
| 533 | (lambda _
|
| 534 | (let ((store-directory (%store-directory)))
|
| 535 | |
| 536 | |
| 537 | (for-each delete-file '("t/t4201-shortlog.sh"
|
| 538 | "t/t7813-grep-icase-iso.sh"))
|
| 539 | |
| 540 | (substitute* (find-files "t" "\\.sh$")
|
| 541 | (("#!/bin/sh") (string-append "#!" (which "sh"))))
|
| 542 | |
| 543 | (substitute* '("t/t4034/perl/pre" "t/t4034/perl/post")
|
| 544 | (("^#!.*/bin/perl") "#!/usr/bin/perl"))
|
| 545 | (substitute* "t/t5003-archive-zip.sh"
|
| 546 | (("cp /bin/sh") (string-append "cp " (which "sh"))))
|
| 547 | (substitute* "t/t6030-bisect-porcelain.sh"
|
| 548 | (("\"/bin/sh\"") (string-append "\"" (which "sh") "\"")))
|
| 549 | |
| 550 | |
| 551 | |
| 552 | (substitute* "t/t7508-status.sh"
|
| 553 | (("\tcommit_template_commented") "\ttrue"))
|
| 554 | |
| 555 | (substitute* "t/t9100-git-svn-basic.sh"
|
| 556 | (((string-append "\"#!" store-directory ".*/bin/sh"))
|
| 557 | "\"#!/bin/sh") )
|
| 558 | (substitute* "t/t9300-fast-import.sh"
|
| 559 | (((string-append "\t#!" store-directory ".*/bin/sh"))
|
| 560 | "\t#!/bin/sh")
|
| 561 | (((string-append "'#!" store-directory ".*/bin/sh"))
|
| 562 | "'#!/bin/sh"))
|
| 563 | |
| 564 | |
| 565 | (delete-file "t/t9164-git-svn-dcommit-concurrent.sh")
|
| 566 |
|
| 567 | |
| 568 | |
| 569 | (for-each delete-file
|
| 570 | '("t/t9128-git-svn-cmd-branch.sh"
|
| 571 | "t/t9167-git-svn-cmd-branch-subproject.sh"
|
| 572 | "t/t9141-git-svn-multiple-branches.sh"))
|
| 573 |
|
| 574 | #$@(if (version>=? (package-version this-package)
|
| 575 | "2.48.0")
|
| 576 | |
| 577 | #~((substitute
|
| 578 | "t/meson.build"
|
| 579 | (list (cons "^(.+')(t[^']+[.]sh)('.*)$"
|
| 580 | (lambda (line matches)
|
| 581 | (let* ((match-offset (vector-ref (car matches) 3))
|
| 582 | (test-file (string-append "t/"
|
| 583 | (substring line
|
| 584 | (car match-offset)
|
| 585 | (cdr match-offset)))))
|
| 586 | (if (file-exists? test-file)
|
| 587 | line
|
| 588 | "")))))))
|
| 589 | #~()))))
|
| 590 | (add-after 'install 'install-shell-completion
|
| 591 | (lambda _
|
| 592 | (let ((bash (string-append #$output "/etc/bash_completion.d")))
|
| 593 | |
| 594 | (for-each mkdir-p (list bash))
|
| 595 | (copy-file "contrib/completion/git-completion.bash"
|
| 596 | (string-append bash "/git"))
|
| 597 | (copy-file "contrib/completion/git-prompt.sh"
|
| 598 | (string-append #$output "/bin/git-prompt")))))
|
| 599 | (add-after 'install 'remove-unusable-perl-commands
|
| 600 | (lambda _
|
| 601 | (let ((bin (string-append #$output "/bin"))
|
| 602 | (libexec (string-append #$output "/libexec")))
|
| 603 | (for-each (lambda (file)
|
| 604 | (delete-file (string-append libexec
|
| 605 | "/git-core/" file)))
|
| 606 | '("git-svn" "git-cvsimport" "git-archimport"
|
| 607 | "git-cvsserver" "git-request-pull"
|
| 608 |
|
| 609 | |
| 610 | |
| 611 | #$@(if (version>=? (package-version this-package)
|
| 612 | "2.40.1")
|
| 613 | #~()
|
| 614 | #~("git-add--interactive"))
|
| 615 |
|
| 616 | "git-cvsexportcommit"
|
| 617 | "git-instaweb" "git-send-email"))
|
| 618 | (delete-file (string-append bin "/git-cvsserver"))
|
| 619 |
|
| 620 | |
| 621 | (delete-file-recursively
|
| 622 | (string-append #$output "/share/git-core/templates/hooks"))
|
| 623 |
|
| 624 | |
| 625 | (delete-file-recursively
|
| 626 | (string-append #$output "/share/gitweb")))))
|
| 627 | (add-after 'install 'restore-sample-hooks-shebang
|
| 628 | (lambda _
|
| 629 | (let* ((dir (string-append #$output
|
| 630 | "/share/git-core/templates/hooks")))
|
| 631 | (for-each (lambda (file)
|
| 632 | (format #t "restoring shebang on `~a'~%" file)
|
| 633 | (substitute* file
|
| 634 | (("^#!.*/bin/sh") "#!/bin/sh")))
|
| 635 | (find-files dir ".*"))))))))
|
| 636 | (native-inputs
|
| 637 | |
| 638 | |
| 639 | (list bash-minimal
|
| 640 | bash
|
| 641 | gettext-minimal
|
| 642 | perl))
|
| 643 | (inputs
|
| 644 | (list bash-minimal
|
| 645 | coreutils-minimal
|
| 646 | curl |
| 647 | expat |
| 648 | openssl
|
| 649 | perl
|
| 650 | sed
|
| 651 | zlib))
|
| 652 | (native-search-paths
|
| 653 | |
| 654 | |
| 655 | (list (search-path-specification
|
| 656 | (variable "GIT_SSL_CAINFO")
|
| 657 | (file-type 'regular)
|
| 658 | (separator #f) |
| 659 | (files '("etc/ssl/certs/ca-certificates.crt")))
|
| 660 | (search-path-specification
|
| 661 | (variable "GIT_EXEC_PATH")
|
| 662 | (separator #f) |
| 663 | (files '("libexec/git-core")))))
|
| 664 | (synopsis "Distributed version control system")
|
| 665 | (description
|
| 666 | "Git is a free distributed version control system designed to handle
|
| 667 | everything from small to very large projects with speed and efficiency.")
|
| 668 | (properties '((hidden? . #t) |
| 669 | (lint-hidden-cpe-vendors . ("jenkins"))
|
| 670 | (upstream-name . "git")))
|
| 671 | (license license:gpl2)
|
| 672 | (home-page "https://git-scm.com/")))
|
| 673 |
|
| 674 | (define-public git-minimal
|
| 675 | (package
|
| 676 | (inherit git-minimal/pinned)
|
| 677 | (properties (alist-delete 'hidden?
|
| 678 | (package-properties git-minimal/pinned)))))
|
| 679 |
|
| 680 | (define-public git
|
| 681 | (package/inherit git-minimal
|
| 682 | (name "git")
|
| 683 | (outputs '("out" |
| 684 | "send-email" |
| 685 | "svn" |
| 686 | "credential-netrc" |
| 687 | "credential-libsecret" |
| 688 | "subtree" |
| 689 | "gui")) |
| 690 | (arguments
|
| 691 | (substitute-keyword-arguments arguments
|
| 692 | ((#:disallowed-references disallowed-refs ''())
|
| 693 | (list (this-package-native-input "bash")))
|
| 694 | ((#:make-flags flags #~'())
|
| 695 | #~(cons "USE_LIBPCRE2=yes" #$flags))
|
| 696 | ((#:configure-flags flags #~'())
|
| 697 | |
| 698 | |
| 699 | #~(cons (string-append "--with-tcltk="
|
| 700 | (search-input-file %build-inputs
|
| 701 | "bin/wish8.6"))
|
| 702 | #$flags))
|
| 703 | ((#:phases phases '%standard-phases)
|
| 704 | #~(modify-phases #$phases
|
| 705 | (delete 'remove-unusable-perl-commands)
|
| 706 | (replace 'patch-makefiles
|
| 707 | (lambda _
|
| 708 | (substitute* (find-files "." "Makefile")
|
| 709 | (("/bin/sh") (which "sh"))
|
| 710 | (("/usr/bin/perl") (which "perl"))
|
| 711 | (("/usr/bin/python") (which "python3")))))
|
| 712 | (add-after 'build 'build-subtree
|
| 713 | (lambda* (#:key native-inputs inputs #:allow-other-keys)
|
| 714 | (invoke "make" "-C" "Documentation" "asciidoc.conf")
|
| 715 | (with-directory-excursion "contrib/subtree"
|
| 716 | (invoke "make")
|
| 717 | (invoke "make" "install")
|
| 718 | (invoke "make" "install-doc")
|
| 719 | (substitute* "git-subtree"
|
| 720 | (("/bin/sh") (which "sh"))))))
|
| 721 | (add-after 'install 'install-doc
|
| 722 | (lambda* (#:key parallel-build? #:allow-other-keys)
|
| 723 | (define job-count (if parallel-build?
|
| 724 | (number->string (parallel-job-count))
|
| 725 | "1"))
|
| 726 | (invoke "make" "-C" "Documentation"
|
| 727 | "install-info" "install-man"
|
| 728 | "-j" job-count
|
| 729 | |
| 730 | |
| 731 | "DOCBOOK2X_TEXI=docbook2texi" "PERL_PATH=perl")))
|
| 732 | (add-after 'install 'install-credential-netrc
|
| 733 | (lambda _
|
| 734 | (install-file
|
| 735 | "contrib/credential/netrc/git-credential-netrc.perl"
|
| 736 | (string-append #$output:credential-netrc "/bin"))
|
| 737 | (rename-file (string-append #$output:credential-netrc
|
| 738 | "/bin/git-credential-netrc.perl")
|
| 739 | (string-append #$output:credential-netrc
|
| 740 | "/bin/git-credential-netrc"))
|
| 741 | |
| 742 | |
| 743 | |
| 744 | |
| 745 | (wrap-program (string-append #$output:credential-netrc
|
| 746 | "/bin/git-credential-netrc")
|
| 747 | `("PERL5LIB" ":" prefix
|
| 748 | (,(string-append #$output "/share/perl5"))))))
|
| 749 | (add-after 'install 'install-credential-libsecret
|
| 750 | (lambda _
|
| 751 | (with-directory-excursion "contrib/credential/libsecret"
|
| 752 | ((assoc-ref gnu:%standard-phases 'build))
|
| 753 | (install-file "git-credential-libsecret"
|
| 754 | (string-append #$output:credential-libsecret
|
| 755 | "/bin")))))
|
| 756 | (add-after 'install 'install-subtree
|
| 757 | (lambda _
|
| 758 | (install-file "contrib/subtree/git-subtree"
|
| 759 | (string-append #$output:subtree "/bin"))
|
| 760 | (install-file "contrib/subtree/git-subtree.1"
|
| 761 | (string-append #$output:subtree
|
| 762 | "/share/man/man1"))))
|
| 763 | (add-after 'install 'split
|
| 764 | (lambda* (#:key inputs #:allow-other-keys)
|
| 765 | |
| 766 | (let* ((out #$output)
|
| 767 | (se #$output:send-email)
|
| 768 | (svn #$output:svn)
|
| 769 | (gui #$output:gui)
|
| 770 | (gitk (string-append out "/bin/gitk"))
|
| 771 | (gitk* (string-append gui "/bin/gitk"))
|
| 772 | (git-gui (string-append
|
| 773 | out "/libexec/git-core/git-gui"))
|
| 774 | (git-gui* (string-append
|
| 775 | gui "/libexec/git-core/git-gui"))
|
| 776 | (git-cit (string-append
|
| 777 | out "/libexec/git-core/git-citool"))
|
| 778 | (git-cit* (string-append
|
| 779 | gui "/libexec/git-core/git-citool"))
|
| 780 | (git-se (string-append
|
| 781 | out "/libexec/git-core/git-send-email"))
|
| 782 | (git-se* (string-append
|
| 783 | se "/libexec/git-core/git-send-email"))
|
| 784 | (git-svn (string-append
|
| 785 | out "/libexec/git-core/git-svn"))
|
| 786 | (git-svn* (string-append
|
| 787 | svn "/libexec/git-core/git-svn"))
|
| 788 | (git-sm (string-append
|
| 789 | out "/libexec/git-core/git-submodule")))
|
| 790 | (mkdir-p (string-append gui "/bin"))
|
| 791 | (mkdir-p (string-append gui "/libexec/git-core"))
|
| 792 | (mkdir-p (string-append se "/libexec/git-core"))
|
| 793 | (mkdir-p (string-append svn "/libexec/git-core"))
|
| 794 |
|
| 795 | (for-each (lambda (old new)
|
| 796 | (copy-file old new)
|
| 797 | (delete-file old)
|
| 798 | (chmod new #o555))
|
| 799 | (list gitk git-gui git-cit git-se git-svn)
|
| 800 | (list gitk* git-gui* git-cit* git-se* git-svn*))
|
| 801 |
|
| 802 | |
| 803 |
|
| 804 | |
| 805 | |
| 806 | |
| 807 | (wrap-program git-svn*
|
| 808 | `("PATH" ":" prefix
|
| 809 | (,(dirname (search-input-file inputs "bin/perl"))))
|
| 810 | `("PERL5LIB" ":" prefix
|
| 811 | ,(search-path-as-list
|
| 812 | '("lib/perl5/site_perl")
|
| 813 | (list (assoc-ref inputs "subversion")
|
| 814 | #$(this-package-input "perl-term-readkey"))))
|
| 815 |
|
| 816 | |
| 817 | |
| 818 | `("LD_LIBRARY_PATH" ":" prefix
|
| 819 | (,(string-append (assoc-ref inputs "subversion")
|
| 820 | "/lib"))))
|
| 821 |
|
| 822 | |
| 823 | (wrap-program git-se*
|
| 824 | `("PERL5LIB" ":" prefix
|
| 825 | ,(search-path-as-list
|
| 826 | '("lib/perl5/site_perl")
|
| 827 | '#$(delete-duplicates
|
| 828 | (let ((perl-inputs
|
| 829 | (list (this-package-input "perl-authen-sasl")
|
| 830 | (this-package-input "perl-net-smtp-ssl")
|
| 831 | (this-package-input "perl-io-socket-ssl"))))
|
| 832 | (append perl-inputs
|
| 833 | (map last
|
| 834 | (append-map
|
| 835 | package-transitive-propagated-inputs
|
| 836 | perl-inputs))))))))
|
| 837 |
|
| 838 | |
| 839 | (wrap-program (string-append out "/share/gitweb/gitweb.cgi")
|
| 840 | `("PERL5LIB" ":" prefix
|
| 841 | ,(search-path-as-list
|
| 842 | '("lib/perl5/site_perl")
|
| 843 | '#$(delete-duplicates
|
| 844 | (let ((perl-inputs (list (this-package-input
|
| 845 | "perl-cgi"))))
|
| 846 | (append perl-inputs
|
| 847 | (map last
|
| 848 | (append-map
|
| 849 | package-transitive-propagated-inputs
|
| 850 | perl-inputs)))))))))))))))
|
| 851 | (native-inputs
|
| 852 | (modify-inputs native-inputs
|
| 853 | |
| 854 | (append asciidoc
|
| 855 | docbook2x
|
| 856 | docbook-xml-4.5
|
| 857 | docbook-xsl
|
| 858 | libxslt
|
| 859 | pkg-config
|
| 860 | texinfo
|
| 861 | xmlto)))
|
| 862 | (inputs
|
| 863 | (modify-inputs inputs
|
| 864 | (append bash-minimal |
| 865 | python |
| 866 |
|
| 867 | |
| 868 | pcre2
|
| 869 |
|
| 870 | |
| 871 | perl-cgi
|
| 872 |
|
| 873 | |
| 874 | subversion
|
| 875 | perl-term-readkey
|
| 876 |
|
| 877 | |
| 878 | perl-authen-sasl
|
| 879 | perl-net-smtp-ssl
|
| 880 | perl-io-socket-ssl
|
| 881 |
|
| 882 | |
| 883 | tcl
|
| 884 | tk
|
| 885 |
|
| 886 | |
| 887 | glib
|
| 888 | libsecret)))))
|
| 889 |
|
| 890 | |
| 891 | |
| 892 | (define-deprecated/public-alias git-minimal/fixed git-minimal/pinned)
|
| 893 |
|
| 894 | (define-public mergiraf
|
| 895 | (package
|
| 896 | (name "mergiraf")
|
| 897 | (version "0.16.3")
|
| 898 | (source
|
| 899 | (origin
|
| 900 | (method url-fetch)
|
| 901 | (uri (crate-uri "mergiraf" version))
|
| 902 | (file-name (string-append name "-" version ".tar.gz"))
|
| 903 | (sha256
|
| 904 | (base32 "0b5rsdz1s68kc37rqvjwpgwj2651arigbzgcf7chdspzjc9fkllk"))))
|
| 905 | (build-system cargo-build-system)
|
| 906 | (arguments
|
| 907 | (list #:install-source? #f))
|
| 908 | |
| 909 | (native-inputs (list git-minimal/pinned))
|
| 910 | (inputs (cargo-inputs 'mergiraf))
|
| 911 | (home-page "https://mergiraf.org/")
|
| 912 | (synopsis "Syntax-aware merge driver for Git")
|
| 913 | (description "This package provides a syntax-aware merge driver for Git.")
|
| 914 | (license license:gpl3)))
|
| 915 |
|
| 916 | (define-public python-klaus
|
| 917 | (package
|
| 918 | (name "python-klaus")
|
| 919 | (version "3.0.1")
|
| 920 | (source (origin
|
| 921 | (method url-fetch)
|
| 922 | (uri (pypi-uri "klaus" version))
|
| 923 | (sha256
|
| 924 | (base32
|
| 925 | "1w6sl15llnkcg7kmnpn64awdiis061q2gijnhdx0ng7z4p1glapl"))
|
| 926 | (patches
|
| 927 | (search-patches "python-klaus-support-python-3.12.patch"))))
|
| 928 | (build-system pyproject-build-system)
|
| 929 | (arguments
|
| 930 | (list
|
| 931 | #:tests? #f |
| 932 | #:phases
|
| 933 | #~(modify-phases %standard-phases
|
| 934 | (add-after 'unpack 'configure-git
|
| 935 | (lambda* (#:key inputs #:allow-other-keys)
|
| 936 | (for-each (lambda (file)
|
| 937 | (substitute* file
|
| 938 | (("\"git\"")
|
| 939 | (string-append "\""
|
| 940 | (search-input-file inputs "/bin/git") "\""))))
|
| 941 | (list "klaus/ctagsutils.py"
|
| 942 | "klaus/repo.py"
|
| 943 | "klaus/utils.py"
|
| 944 | "tests/test_contrib.py"
|
| 945 | "tests/test_make_app.py")))))))
|
| 946 | (inputs (list git-minimal))
|
| 947 | (native-inputs
|
| 948 | (list python-pytest python-setuptools python-wheel))
|
| 949 | (propagated-inputs
|
| 950 | (list python-dulwich python-flask python-httpauth
|
| 951 | python-humanize python-pygments python-werkzeug))
|
| 952 | (home-page "https://github.com/jonashaag/klaus")
|
| 953 | (synopsis "Simple git web viewer")
|
| 954 | (description
|
| 955 | "@code{klaus} is a simple, easy-to-set-up git web viewer. It features
|
| 956 | @itemize
|
| 957 | @item Super easy to set up -- no configuration required
|
| 958 | @item Syntax highlighting
|
| 959 | @item Markdown + RestructuredText rendering support
|
| 960 | @item Pull + push support (Git Smart HTTP)
|
| 961 | @item Code navigation using Exuberant ctags
|
| 962 | @end itemize")
|
| 963 | (license license:isc)))
|
| 964 |
|
| 965 | (define-public git2cl
|
| 966 | (let ((commit "1d74d4c0d933fc69ed5cec838c73502584dead05"))
|
| 967 | (package
|
| 968 | (name "git2cl")
|
| 969 | (version (string-append "20120919." (string-take commit 7)))
|
| 970 | (source (origin
|
| 971 | (method git-fetch)
|
| 972 | (uri (git-reference
|
| 973 | (url "https://git.savannah.nongnu.org/git/git2cl.git")
|
| 974 | (commit commit)))
|
| 975 | (file-name (git-file-name name version))
|
| 976 | (sha256
|
| 977 | (base32
|
| 978 | "0wnnbm2sjvfj0qrksj89jlnl69miwl0vk3wrrvgvpclgys3na2g1"))))
|
| 979 | (build-system copy-build-system)
|
| 980 | (inputs
|
| 981 | (list perl))
|
| 982 | (arguments
|
| 983 | `(#:install-plan '(("git2cl" "bin/git2cl"))))
|
| 984 | (home-page "https://savannah.nongnu.org/projects/git2cl")
|
| 985 | (synopsis "Convert Git logs to GNU ChangeLog format")
|
| 986 | (description "@code{git2cl} is a command line tool for converting Git
|
| 987 | logs to GNU ChangeLog format.")
|
| 988 | (license license:gpl2+))))
|
| 989 |
|
| 990 | (define-public git-cal
|
| 991 | (package
|
| 992 | (name "git-cal")
|
| 993 | (version "0.9.1")
|
| 994 | (source (origin
|
| 995 | (method git-fetch)
|
| 996 | (uri (git-reference
|
| 997 | (url "https://github.com/k4rthik/git-cal")
|
| 998 | (commit (string-append "v" version))))
|
| 999 | (file-name (git-file-name name version))
|
| 1000 | (sha256
|
| 1001 | (base32
|
| 1002 | "08s9sif3qlk5n2dqpzq5yjczggnqlnxldljspjdqgpfydb2dqg3z"))))
|
| 1003 | (build-system perl-build-system)
|
| 1004 | (home-page "https://github.com/k4rthik/git-cal/")
|
| 1005 | (synopsis "GitHub like contributions calendar for terminal")
|
| 1006 | (description "@code{git-cal} is a script to view commits calendar similar
|
| 1007 | to GitHub contributions calendar.")
|
| 1008 | (license license:expat)))
|
| 1009 |
|
| 1010 | (define-public git-cliff
|
| 1011 | (package
|
| 1012 | (name "git-cliff")
|
| 1013 | (version "2.12.0")
|
| 1014 | (source
|
| 1015 | (origin
|
| 1016 | (method url-fetch)
|
| 1017 | (uri (crate-uri "git-cliff" version))
|
| 1018 | (file-name (string-append name "-" version ".tar.gz"))
|
| 1019 | (sha256
|
| 1020 | (base32 "1vz1qix1yi6j5lb95q39pdxn4b6nrq8m235kjjh605m2mf0r8wyd"))))
|
| 1021 | (build-system cargo-build-system)
|
| 1022 | (arguments
|
| 1023 | (list
|
| 1024 | #:install-source? #f
|
| 1025 | #:imported-modules (append %copy-build-system-modules
|
| 1026 | %cargo-build-system-modules)
|
| 1027 | #:modules '((guix build cargo-build-system)
|
| 1028 | ((guix build copy-build-system) #:prefix copy:)
|
| 1029 | (guix build utils))
|
| 1030 | #:phases
|
| 1031 | #~(modify-phases %standard-phases
|
| 1032 | (add-after 'install 'install-extras
|
| 1033 | (lambda args
|
| 1034 | (mkdir "assets")
|
| 1035 | (setenv "OUT_DIR" "assets")
|
| 1036 | (let ((git-cliff-mangen
|
| 1037 | (if #$(%current-target-system)
|
| 1038 | (search-input-file native-inputs
|
| 1039 | "bin/git-cliff-mangen")
|
| 1040 | (in-vicinity #$output "bin/git-cliff-mangen")))
|
| 1041 | (git-cliff-completions
|
| 1042 | (if #$(%current-target-system)
|
| 1043 | (search-input-file native-inputs
|
| 1044 | "bin/git-cliff-completions")
|
| 1045 | (in-vicinity #$output "bin/git-cliff-completions"))))
|
| 1046 | (invoke git-cliff-mangen)
|
| 1047 | (invoke git-cliff-completions))
|
| 1048 | |
| 1049 | (delete-file (string-append #$output "/bin/git-cliff-mangen"))
|
| 1050 | (delete-file (string-append #$output "/bin/git-cliff-completions"))
|
| 1051 | (apply (assoc-ref copy:%standard-phases 'install)
|
| 1052 | #:install-plan
|
| 1053 | '(("assets/git-cliff.bash"
|
| 1054 | "share/bash-completion/completions/git-cliff")
|
| 1055 | ("assets/git-cliff.elv"
|
| 1056 | "share//elvish/lib/git-cliff")
|
| 1057 | ("assets/git-cliff.fish"
|
| 1058 | "share/fish/vendor_completions.d/")
|
| 1059 | ("assets/_git-cliff" "share/zsh/site-functions/")
|
| 1060 | ("assets/git-cliff.1" "share/man/man1/"))
|
| 1061 | args))))))
|
| 1062 | (native-inputs
|
| 1063 | (append (if (%current-target-system)
|
| 1064 | (list this-package)
|
| 1065 | '())
|
| 1066 | (list pkg-config)))
|
| 1067 | (inputs (cons* libgit2-1.9
|
| 1068 | zlib
|
| 1069 | `(,zstd "lib")
|
| 1070 | (cargo-inputs 'git-cliff)))
|
| 1071 | (home-page "https://github.com/orhun/git-cliff")
|
| 1072 | (synopsis "Highly customizable changelog generator")
|
| 1073 | (description "@command{git-cliff} can generate
|
| 1074 | @url{https://en.wikipedia.org/wiki/Changelog, changelog} files from the
|
| 1075 | @url{https://git-scm.com/, Git} history by utilizing
|
| 1076 | @url{https://git-cliff.org/docs/configuration/git#conventional_commits,
|
| 1077 | conventional commits} as well as regex-powered
|
| 1078 | @url{https://git-cliff.org/docs/configuration/git#commit_parsers,
|
| 1079 | custom parsers}. The @url{https://git-cliff.org/docs/category/templating,
|
| 1080 | changelog template} can be customized with a
|
| 1081 | @url{https://git-cliff.org/docs/configuration, configuration file} to match the
|
| 1082 | desired format.")
|
| 1083 | (license (list license:expat license:asl2.0))))
|
| 1084 |
|
| 1085 | (define-public git-pages
|
| 1086 | (package
|
| 1087 | (name "git-pages")
|
| 1088 | (version "0.9.1")
|
| 1089 | (source
|
| 1090 | (origin
|
| 1091 | (method git-fetch)
|
| 1092 | (uri (git-reference
|
| 1093 | (url "https://codeberg.org/git-pages/git-pages.git")
|
| 1094 | (commit (string-append "v" version))))
|
| 1095 | (file-name (git-file-name name version))
|
| 1096 | (sha256
|
| 1097 | (base32 "029zas5pfky6qkbw4j9whrlyxd1pa4jfhj9jm8dg6fav292kf973"))))
|
| 1098 | (build-system go-build-system)
|
| 1099 | (arguments
|
| 1100 | (list
|
| 1101 | #:build-flags
|
| 1102 | #~(list (string-append "-ldflags=-X main.versionOverride=" #$version))
|
| 1103 | #:embed-files #~(list "children" "nodes" "text")
|
| 1104 | #:import-path "codeberg.org/git-pages/git-pages"
|
| 1105 | #:install-source? #f))
|
| 1106 | (native-inputs
|
| 1107 | (list go-codeberg-org-git-pages-go-headers
|
| 1108 | go-codeberg-org-git-pages-go-slog-syslog
|
| 1109 | go-github-com-bits-and-blooms-bloom-v3
|
| 1110 | go-github-com-burntsushi-toml
|
| 1111 | go-github-com-c2h5oh-datasize
|
| 1112 | go-github-com-creasty-defaults
|
| 1113 | go-github-com-fatih-color
|
| 1114 | go-github-com-go-git-go-billy-v6
|
| 1115 | go-github-com-go-git-go-git-v6
|
| 1116 | go-github-com-jpillora-backoff
|
| 1117 | go-github-com-kankanreno-go-snowflake
|
| 1118 | go-github-com-kimmachinegun-automemlimit
|
| 1119 | go-github-com-klauspost-compress
|
| 1120 | go-github-com-maypok86-otter-v2
|
| 1121 | go-github-com-minio-minio-go-v7
|
| 1122 | go-github-com-pquerna-cachecontrol
|
| 1123 | go-github-com-prometheus-client-golang
|
| 1124 | go-github-com-samber-slog-multi
|
| 1125 | go-github-com-stretchr-testify
|
| 1126 | go-github-com-tj-go-redirects
|
| 1127 | go-github-com-valyala-fasttemplate
|
| 1128 | go-golang-org-x-net
|
| 1129 | go-google-golang-org-protobuf))
|
| 1130 | (home-page "https://codeberg.org/git-pages/git-pages")
|
| 1131 | (synopsis "Scalable static site server for Git forges")
|
| 1132 | (description
|
| 1133 | "@command{git-pages} is a static site server for use with Git
|
| 1134 | forges (i.e. a @code{GitHub} Pages replacement). It is written with
|
| 1135 | efficiency in mind, scaling horizontally to any number of machines and serving
|
| 1136 | sites up to multiple gigabytes in size, while being equally suitable for small
|
| 1137 | single-user deployments.")
|
| 1138 | (license license:bsd-0)))
|
| 1139 |
|
| 1140 | (define-public git-pages-cli
|
| 1141 | (package
|
| 1142 | (name "git-pages-cli")
|
| 1143 | (version "1.9.0")
|
| 1144 | (source
|
| 1145 | (origin
|
| 1146 | (method git-fetch)
|
| 1147 | (uri (git-reference
|
| 1148 | (url "https://codeberg.org/git-pages/git-pages-cli")
|
| 1149 | (commit (string-append "v" version))))
|
| 1150 | (file-name (git-file-name name version))
|
| 1151 | (sha256
|
| 1152 | (base32 "1ijkbc9d4jh5hn9lmcb39v0x03nbrf4zgzm0mb0c1p132py8p2mn"))))
|
| 1153 | (build-system go-build-system)
|
| 1154 | (arguments
|
| 1155 | (list
|
| 1156 | #:install-source? #f
|
| 1157 | #:import-path "codeberg.org/git-pages/git-pages-cli"))
|
| 1158 | (native-inputs
|
| 1159 | (list go-github-com-google-uuid
|
| 1160 | go-github-com-klauspost-compress
|
| 1161 | go-github-com-spf13-pflag))
|
| 1162 | (home-page "https://codeberg.org/git-pages/git-pages-cli")
|
| 1163 | (synopsis "Command-line tool for publishing a site to a git-pages server")
|
| 1164 | (description
|
| 1165 | "@command{git-pages-cli} is a command-line application for publishing
|
| 1166 | sites to @url{https://codeberg.org/git-pages/git-pages, git-pages}.")
|
| 1167 | (license license:bsd-0)))
|
| 1168 |
|
| 1169 | (define-public git-tools
|
| 1170 | (package
|
| 1171 | (name "git-tools")
|
| 1172 | (version "2025.08")
|
| 1173 | (source
|
| 1174 | (origin
|
| 1175 | (method git-fetch)
|
| 1176 | (uri (git-reference
|
| 1177 | (url "https://github.com/MestreLion/git-tools")
|
| 1178 | (commit (string-append "v" version))))
|
| 1179 | (file-name (git-file-name name version))
|
| 1180 | (sha256
|
| 1181 | (base32 "1djc40yzyrh4xhj1c717j7sqyhgwapz9mvsn9ja4yph3jxx6zs0f"))))
|
| 1182 | (build-system copy-build-system)
|
| 1183 | (arguments
|
| 1184 | `(#:install-plan '(("git-branches-rename" "bin/git-branches-rename")
|
| 1185 | ("git-clone-subset" "bin/git-clone-subset")
|
| 1186 | ("git-find-uncommitted-repos"
|
| 1187 | "bin/git-find-uncommitted-repos")
|
| 1188 | ("git-rebase-theirs" "bin/git-rebase-theirs")
|
| 1189 | ("git-restore-mtime" "bin/git-restore-mtime")
|
| 1190 | ("git-strip-merge" "bin/git-strip-merge")
|
| 1191 | ("./man1/" "share/man/man1"
|
| 1192 | #:include-regexp (".*\\.1$")))))
|
| 1193 | (inputs (list bash-minimal git-minimal python-minimal))
|
| 1194 | (home-page "https://github.com/MestreLion/git-tools")
|
| 1195 | (synopsis "Assorted git-related scripts and tools")
|
| 1196 | (description
|
| 1197 | "@code{git-tools} is a collection of bash and python scripts.
|
| 1198 | Specifically, it includes the following tools:
|
| 1199 |
|
| 1200 | @itemize
|
| 1201 | @item @code{git-branches-rename}: Batch rename branches with a matching prefix
|
| 1202 | to another prefix
|
| 1203 | @item @code{git-clone-subset}: Clone a subset of a git repository
|
| 1204 | @item @code{git-find-uncommitted-repos}: Recursively list repositories in the
|
| 1205 | given directory(ies) that have uncommitted changes
|
| 1206 | @item @code{git-rebase-theirs}: Resolve rebase conflicts and failed
|
| 1207 | cherry-picks by favoring \"theirs\" version
|
| 1208 | @item @code{git-restore-mtime}: Restore modification time of files based on
|
| 1209 | the date of the most recent commit that modified them
|
| 1210 | @item @code{git-strip-merge}: A git-merge wrapper that deletes files on a
|
| 1211 | \"foreign\" branch before merging
|
| 1212 | @end itemize")
|
| 1213 | (license license:gpl3+)))
|
| 1214 |
|
| 1215 | (define-public git-spice
|
| 1216 | (package
|
| 1217 | (name "git-spice")
|
| 1218 | (version "0.23.0")
|
| 1219 | (source
|
| 1220 | (origin
|
| 1221 | (method git-fetch)
|
| 1222 | (uri (git-reference
|
| 1223 | (url "https://github.com/abhinav/git-spice")
|
| 1224 | (commit (string-append "v" version))))
|
| 1225 | (file-name (git-file-name name version))
|
| 1226 | (sha256
|
| 1227 | (base32 "1za4rr1jxjhlbbx0gw8wlsfa9dhw4zrpm43fz8scxlbh126wlid7"))))
|
| 1228 | (build-system go-build-system)
|
| 1229 | (arguments
|
| 1230 | (list
|
| 1231 | #:import-path "go.abhg.dev/gs"
|
| 1232 | #:install-source? #f
|
| 1233 | #:build-flags
|
| 1234 | #~(list (string-append "-ldflags=-X main._version=" #$version))
|
| 1235 | #:test-flags
|
| 1236 | #~(list "-skip"
|
| 1237 | (string-join
|
| 1238 | |
| 1239 | |
| 1240 | |
| 1241 | (list "TestAuthenticationFlow_PAT"
|
| 1242 | "TestBuildRESTHandler_GETRequest"
|
| 1243 | "TestBuildRESTHandler_GenericError"
|
| 1244 | "TestBuildRESTHandler_HTTPError"
|
| 1245 | "TestBuildRESTHandler_IntegerPath"
|
| 1246 | "TestBuildRESTHandler_InvalidIntegerPath"
|
| 1247 | "TestBuildRESTHandler_PathParameters"
|
| 1248 | "TestDeviceFlowAuthenticator"
|
| 1249 | "TestDeviceFlowAuthenticator"
|
| 1250 | "TestForkWorkflow"
|
| 1251 | "TestSelectAuthenticator")
|
| 1252 | "|"))
|
| 1253 | #:phases
|
| 1254 | #~(modify-phases %standard-phases
|
| 1255 | (add-after 'install 'install-shell-completion
|
| 1256 | (lambda _
|
| 1257 | (let* ((out #$output)
|
| 1258 | (share (string-append out "/share"))
|
| 1259 | (gs (string-append out "/bin/gs"))
|
| 1260 | (bash-completions-dir
|
| 1261 | (string-append out "/etc/bash_completion.d/"))
|
| 1262 | (fish-completions-dir
|
| 1263 | (string-append share "/fish/vendor_completions.d"))
|
| 1264 | (zsh-completions-dir
|
| 1265 | (string-append share "/zsh/site-functions")))
|
| 1266 | (for-each mkdir-p
|
| 1267 | (list bash-completions-dir
|
| 1268 | fish-completions-dir
|
| 1269 | zsh-completions-dir))
|
| 1270 | (with-output-to-file
|
| 1271 | (string-append bash-completions-dir "/gs")
|
| 1272 | (lambda _ (invoke gs "shell" "completion" "bash")))
|
| 1273 | (with-output-to-file
|
| 1274 | (string-append fish-completions-dir "/gs.fish")
|
| 1275 | (lambda _ (invoke gs "shell" "completion" "fish")))
|
| 1276 | (with-output-to-file
|
| 1277 | (string-append zsh-completions-dir "/_gs")
|
| 1278 | (lambda _ (invoke gs "shell" "completion" "zsh")))))))))
|
| 1279 | (native-inputs
|
| 1280 | (list git-minimal/pinned |
| 1281 | go-github-com-alecthomas-kong
|
| 1282 | go-github-com-buildkite-shellwords
|
| 1283 | go-github-com-charmbracelet-bubbles
|
| 1284 | go-github-com-charmbracelet-bubbletea
|
| 1285 | go-github-com-charmbracelet-lipgloss
|
| 1286 | go-github-com-cli-browser
|
| 1287 | go-github-com-creack-pty
|
| 1288 | go-github-com-dustin-go-humanize
|
| 1289 | go-github-com-hexops-autogold-v2
|
| 1290 | go-github-com-mattn-go-isatty
|
| 1291 | go-github-com-rogpeppe-go-internal-1.14
|
| 1292 | go-github-com-sahilm-fuzzy
|
| 1293 | go-github-com-shurcool-githubv4
|
| 1294 | go-github-com-stretchr-testify
|
| 1295 | go-github-com-tidwall-gjson
|
| 1296 | go-github-com-vito-midterm
|
| 1297 | go-github-com-zalando-go-keyring
|
| 1298 | go-gitlab-com-gitlab-org-api-client-go
|
| 1299 | go-go-abhg-dev-container-ring
|
| 1300 | go-go-abhg-dev-io-ioutil
|
| 1301 | go-go-abhg-dev-komplete
|
| 1302 | go-go-abhg-dev-log-silog
|
| 1303 | go-go-abhg-dev-testing-stub
|
| 1304 | go-go-uber-org-mock
|
| 1305 | go-golang-org-x-oauth2
|
| 1306 | go-gopkg-in-dnaeon-go-vcr-v4
|
| 1307 | go-gopkg-in-yaml-v3
|
| 1308 | go-pgregory-net-rapid))
|
| 1309 | (home-page "https://go.abhg.dev/gs")
|
| 1310 | (synopsis "Manage stacks of Git branches")
|
| 1311 | (description
|
| 1312 | "git-spice (@code{gs}) is a command line tool for stacking Git branches,
|
| 1313 | a collection of branches expecting the trunk has a base branch. It manages
|
| 1314 | and navigates stacks of branches, conveniently modifies and rebases them also
|
| 1315 | provides an integration with GitHub and GitLab.")
|
| 1316 | (license license:gpl3)))
|
| 1317 |
|
| 1318 | (define-public got
|
| 1319 | (package
|
| 1320 | (name "got")
|
| 1321 | (version "0.128")
|
| 1322 | (source (origin
|
| 1323 | (method url-fetch)
|
| 1324 | (uri
|
| 1325 | (string-append
|
| 1326 | "https://gameoftrees.org/releases/portable/got-portable-"
|
| 1327 | version ".tar.gz"))
|
| 1328 | (sha256
|
| 1329 | (base32
|
| 1330 | "0wjqc6l0vhyzdqiz7jbc6cagv77gm6kf3qglnshxsld1ksrbczjx"))))
|
| 1331 | (inputs
|
| 1332 | (list libevent
|
| 1333 | `(,util-linux "lib")
|
| 1334 | zlib
|
| 1335 | libressl
|
| 1336 | libmd
|
| 1337 | libbsd
|
| 1338 | ncurses))
|
| 1339 | (native-inputs
|
| 1340 | (list pkg-config perl))
|
| 1341 | (arguments
|
| 1342 | `( |
| 1343 | |
| 1344 | #:validate-runpath? #f
|
| 1345 | |
| 1346 | #:make-flags
|
| 1347 | '("CFLAGS+=-DGOT_DIAL_PATH_SSH=\\\"ssh\\\""
|
| 1348 | "CFLAGS+=-DGOT_TAG_PATH_SSH_KEYGEN=\\\"ssh-keygen\\\""
|
| 1349 | "CFLAGS+=-DGOT_TAG_PATH_SIGNIFY=\\\"signify\\\"")
|
| 1350 | #:phases ,#~(modify-phases %standard-phases
|
| 1351 | (add-after 'unpack 'patch-execv-to-execvp
|
| 1352 | (lambda _
|
| 1353 | |
| 1354 | (substitute* "lib/dial.c"
|
| 1355 | (("execv\\(GOT_DIAL_") "execvp(GOT_DIAL_")
|
| 1356 | (("execv %s\", GOT_DIAL") "execvp %s\", GOT_DIAL"))
|
| 1357 | (substitute* "lib/sigs.c"
|
| 1358 | (("execv\\(GOT_TAG") "execvp(GOT_TAG")
|
| 1359 | (("execv %s\", GOT_TAG") "execvp %s\", GOT_TAG")))))))
|
| 1360 | (build-system gnu-build-system)
|
| 1361 | (synopsis "Distributed version control system")
|
| 1362 | (description
|
| 1363 | "Game of Trees (Got) is a version control system which prioritizes ease of use
|
| 1364 | and simplicity over flexibility.")
|
| 1365 | (license license:isc)
|
| 1366 | (home-page "https://gameoftrees.org/")
|
| 1367 | (properties
|
| 1368 | |
| 1369 | '((release-monitoring-url . "https://gameoftrees.org/releases/")
|
| 1370 | (lint-hidden-cpe-vendors . ("got_project"))))))
|
| 1371 |
|
| 1372 | (define-public xdiff
|
| 1373 | (let ((revision "0")
|
| 1374 | (commit "a137bc7ee6c76618ed1737c257548eaa10ac0089"))
|
| 1375 | (package
|
| 1376 | (name "xdiff")
|
| 1377 | |
| 1378 | (version (git-version "0.1" revision commit))
|
| 1379 | (source (origin
|
| 1380 | (method git-fetch)
|
| 1381 | (uri (git-reference
|
| 1382 | (url "https://github.com/libgit2/xdiff")
|
| 1383 | (commit commit)))
|
| 1384 | (file-name (git-file-name name version))
|
| 1385 | (sha256
|
| 1386 | (base32
|
| 1387 | "1rxzpag2pih64qlgq40xg1z6mz0bzvps4baxw7bmykyhjhc2gx75"))))
|
| 1388 | (build-system cmake-build-system)
|
| 1389 | (arguments
|
| 1390 | (list
|
| 1391 | #:modules '((guix build cmake-build-system)
|
| 1392 | (guix build utils)
|
| 1393 | (srfi srfi-26))
|
| 1394 | #:tests? #f |
| 1395 | #:phases
|
| 1396 | #~(modify-phases %standard-phases
|
| 1397 | (add-after 'unpack 'create-shared-library
|
| 1398 | (lambda _
|
| 1399 | (substitute* "CMakeLists.txt"
|
| 1400 | (("add_library\\(xdiff STATIC")
|
| 1401 | "add_library(xdiff SHARED"))))
|
| 1402 | (replace 'install |
| 1403 | (lambda _
|
| 1404 | (with-directory-excursion "../source"
|
| 1405 | (for-each (cute install-file <>
|
| 1406 | (string-append #$output "/include"))
|
| 1407 | (list "xdiff.h"
|
| 1408 | "git-xdiff.h"))) |
| 1409 | (install-file "libxdiff.so"
|
| 1410 | (string-append #$output "/lib")))))))
|
| 1411 | (home-page "https://github.com/libgit2/xdiff")
|
| 1412 | (synopsis "File differential library used by git")
|
| 1413 | (description "@code{xdiff} is the file differential library used by git,
|
| 1414 | which has been extracted into a standalone library for compatibility with
|
| 1415 | other git-like projects such as @code{libgit2}.")
|
| 1416 | (license license:lgpl2.1+))))
|
| 1417 |
|
| 1418 | (define-public libgit2-1.9
|
| 1419 | (package
|
| 1420 | (name "libgit2")
|
| 1421 | (version "1.9.7")
|
| 1422 | (source (origin
|
| 1423 | (method git-fetch)
|
| 1424 | (uri (git-reference
|
| 1425 | (url "https://github.com/libgit2/libgit2")
|
| 1426 | (commit (string-append "v" version))))
|
| 1427 | (file-name (git-file-name "libgit2" version))
|
| 1428 | (sha256
|
| 1429 | (base32 "0jhm723bc9v18yanlqvmwn9kpmnvbcavnlhd4jcw0n082d7jl54h"))
|
| 1430 | (patches
|
| 1431 | (search-patches "libgit2-proxy-reconnection.patch"
|
| 1432 | "libgit2-path-max.patch"))
|
| 1433 | (modules '((guix build utils)))
|
| 1434 | (snippet
|
| 1435 | #~(begin
|
| 1436 | (for-each delete-file-recursively
|
| 1437 | '("deps/chromium-zlib"
|
| 1438 | "deps/llhttp"
|
| 1439 | "deps/ntlmclient"
|
| 1440 | "deps/pcre2"
|
| 1441 | "deps/winhttp"
|
| 1442 | "deps/zlib"))))))
|
| 1443 | (build-system cmake-build-system)
|
| 1444 | (outputs '("out" "debug"))
|
| 1445 | (arguments
|
| 1446 | (list #:configure-flags
|
| 1447 | #~(list "-DUSE_NTLMCLIENT=OFF" |
| 1448 | "-DREGEX_BACKEND=pcre2"
|
| 1449 | "-DUSE_HTTP_PARSER=http-parser"
|
| 1450 | "-DUSE_SSH=ON" |
| 1451 |
|
| 1452 | |
| 1453 | |
| 1454 | |
| 1455 | "-DUSE_SHA1=HTTPS"
|
| 1456 |
|
| 1457 | |
| 1458 | #$@(if (target-32bit?)
|
| 1459 | '("-DCMAKE_C_FLAGS=-D_FILE_OFFSET_BITS=64")
|
| 1460 | '()))
|
| 1461 | #:phases
|
| 1462 | #~(modify-phases %standard-phases
|
| 1463 | |
| 1464 | (replace 'check
|
| 1465 | (lambda* (#:key (tests? #t) #:allow-other-keys)
|
| 1466 | (if tests?
|
| 1467 | (invoke "./libgit2_tests" "-v" "-Q")
|
| 1468 | |
| 1469 | (format #t "Test suite not run.~%")))))))
|
| 1470 | (inputs
|
| 1471 | (list http-parser))
|
| 1472 | (native-inputs
|
| 1473 | (list pkg-config python))
|
| 1474 | (propagated-inputs
|
| 1475 | |
| 1476 | (list openssl libssh2 pcre2 zlib))
|
| 1477 | (home-page "https://libgit2.org/")
|
| 1478 | (synopsis "Library providing Git core methods")
|
| 1479 | (description
|
| 1480 | "Libgit2 is a portable, pure C implementation of the Git core methods
|
| 1481 | provided as a re-entrant linkable library with a solid API, allowing you to
|
| 1482 | write native speed custom Git applications in any language with bindings.")
|
| 1483 | |
| 1484 | (license license:gpl2)))
|
| 1485 |
|
| 1486 | (define-public libgit2-1.8
|
| 1487 | (package
|
| 1488 | (inherit libgit2-1.9)
|
| 1489 | (version "1.8.7")
|
| 1490 | (source (origin
|
| 1491 | (method git-fetch)
|
| 1492 | (uri (git-reference
|
| 1493 | (url "https://github.com/libgit2/libgit2")
|
| 1494 | (commit (string-append "v" version))))
|
| 1495 | (file-name (git-file-name "libgit2" version))
|
| 1496 | (sha256
|
| 1497 | (base32
|
| 1498 | "1lhvrfms0p4n817c2lc9cqpgx1v82szr1p6v60jp4rpm6gfrpg6d"))
|
| 1499 | (patches
|
| 1500 | (search-patches "libgit2-uninitialized-proxy-settings.patch"))
|
| 1501 | (modules '((guix build utils)))
|
| 1502 | (snippet
|
| 1503 | '(begin
|
| 1504 | (for-each delete-file-recursively
|
| 1505 | '("deps/chromium-zlib"
|
| 1506 | "deps/llhttp"
|
| 1507 | "deps/ntlmclient"
|
| 1508 | "deps/pcre2"
|
| 1509 | "deps/winhttp"
|
| 1510 | "deps/zlib"))))))
|
| 1511 | (inputs
|
| 1512 | (list libssh2 http-parser))
|
| 1513 | (propagated-inputs
|
| 1514 | |
| 1515 | (list openssl pcre2 zlib))))
|
| 1516 |
|
| 1517 | (define-public libgit2-1.7
|
| 1518 | (package
|
| 1519 | (inherit libgit2-1.8)
|
| 1520 | (version "1.7.2")
|
| 1521 | (source (origin
|
| 1522 | (method git-fetch)
|
| 1523 | (uri (git-reference
|
| 1524 | (url "https://github.com/libgit2/libgit2")
|
| 1525 | (commit (string-append "v" version))))
|
| 1526 | (file-name (git-file-name "libgit2" version))
|
| 1527 | (sha256
|
| 1528 | (base32
|
| 1529 | "0i95jwrwx4svh5l4dpa5r4a99f813hlm7nzzkbqzmnw4pkyxhlvx"))
|
| 1530 | |
| 1531 | |
| 1532 | (modules '((guix build utils)))
|
| 1533 | (snippet
|
| 1534 | '(begin
|
| 1535 | (for-each delete-file-recursively
|
| 1536 | '("deps/chromium-zlib"
|
| 1537 | "deps/http-parser"
|
| 1538 | "deps/ntlmclient"
|
| 1539 | "deps/pcre"
|
| 1540 | "deps/winhttp"
|
| 1541 | "deps/zlib"))))))
|
| 1542 | (arguments
|
| 1543 | (substitute-keyword-arguments (package-arguments libgit2-1.8)
|
| 1544 | ((#:configure-flags _ #~(list))
|
| 1545 | `(list "-DUSE_NTLMCLIENT=OFF" |
| 1546 | "-DREGEX_BACKEND=pcre2"
|
| 1547 | "-DUSE_HTTP_PARSER=system"
|
| 1548 | "-DUSE_SSH=ON")))))) |
| 1549 |
|
| 1550 | (define-public libgit2-1.6
|
| 1551 | (package
|
| 1552 | (inherit libgit2-1.7)
|
| 1553 | (version "1.6.5")
|
| 1554 | (source (origin
|
| 1555 | (method git-fetch)
|
| 1556 | (uri (git-reference
|
| 1557 | (url "https://github.com/libgit2/libgit2")
|
| 1558 | (commit (string-append "v" version))))
|
| 1559 | (file-name (git-file-name "libgit2" version))
|
| 1560 | (sha256
|
| 1561 | (base32
|
| 1562 | "1v8sndvknsknf0i967qidmz73q9jx928iq7fqqgx3rbwn2g1gn6s"))
|
| 1563 | (modules '((guix build utils)))
|
| 1564 | (snippet
|
| 1565 | '(begin
|
| 1566 | (delete-file-recursively "deps")))))))
|
| 1567 |
|
| 1568 | (define-public libgit2-1.5
|
| 1569 | (package
|
| 1570 | (inherit libgit2-1.7)
|
| 1571 | (version "1.5.2")
|
| 1572 | (source (origin
|
| 1573 | (method git-fetch)
|
| 1574 | (uri (git-reference
|
| 1575 | (url "https://github.com/libgit2/libgit2")
|
| 1576 | (commit (string-append "v" version))))
|
| 1577 | (file-name (git-file-name "libgit2" version))
|
| 1578 | (sha256
|
| 1579 | (base32
|
| 1580 | "0v9jdaxmqrzbs9v5vhh2xf5xv9h29q8qqn8vmns279ljx1zav5yd"))
|
| 1581 | (modules '((guix build utils)))
|
| 1582 | (snippet
|
| 1583 | '(begin
|
| 1584 | (delete-file-recursively "deps")))))))
|
| 1585 |
|
| 1586 | (define-public libgit2
|
| 1587 | |
| 1588 | libgit2-1.9)
|
| 1589 |
|
| 1590 | (define-public libgit2-1.3
|
| 1591 | (package
|
| 1592 | (inherit libgit2-1.5)
|
| 1593 | (version "1.3.2")
|
| 1594 | (source (origin
|
| 1595 | (inherit (package-source libgit2-1.5))
|
| 1596 | (method git-fetch)
|
| 1597 | (uri (git-reference
|
| 1598 | (url "https://github.com/libgit2/libgit2")
|
| 1599 | (commit (string-append "v" version))))
|
| 1600 | (file-name (git-file-name "libgit2" version))
|
| 1601 | (sha256
|
| 1602 | (base32
|
| 1603 | "1dngga8jq419z6ps65wpmh2jihcf70k6r98pb1m1yiwj7qqh9792"))))
|
| 1604 | (arguments
|
| 1605 | (substitute-keyword-arguments (package-arguments libgit2-1.5)
|
| 1606 | ((#:configure-flags _ #~'())
|
| 1607 | |
| 1608 | #~(list "-DUSE_NTLMCLIENT=OFF"
|
| 1609 | "-DREGEX_BACKEND=pcre2"
|
| 1610 | "-DUSE_HTTP_PARSER=system"
|
| 1611 | "-DUSE_SSH=ON" |
| 1612 | |
| 1613 | #$@(if (target-32bit?)
|
| 1614 | '("-DCMAKE_C_FLAGS=-D_FILE_OFFSET_BITS=64")
|
| 1615 | '())))
|
| 1616 | ((#:phases _ '%standard-phases)
|
| 1617 | `(modify-phases %standard-phases
|
| 1618 | |
| 1619 | (replace 'check
|
| 1620 | (lambda* (#:key (tests? #t) #:allow-other-keys)
|
| 1621 | (if tests?
|
| 1622 | (invoke "./libgit2_clar" "-v" "-Q")
|
| 1623 | |
| 1624 | (format #t "Test suite not run.~%"))))))))))
|
| 1625 |
|
| 1626 | (define-public git-issue
|
| 1627 | (let ((commit "d056998566d30235072b97982756ff607e9ecce9")
|
| 1628 | (revision "0"))
|
| 1629 | (package
|
| 1630 | (name "git-issue")
|
| 1631 | (version (git-version "0" revision commit))
|
| 1632 | (source (origin
|
| 1633 | (method git-fetch)
|
| 1634 | (uri (git-reference
|
| 1635 | (url "https://github.com/dspinellis/git-issue")
|
| 1636 | (commit commit)))
|
| 1637 | (sha256
|
| 1638 | (base32
|
| 1639 | "0002bjzv6rgpxbbsjiswg73prl7iq217qvafbxhsjp2wjj00i0sm"))))
|
| 1640 | (build-system gnu-build-system)
|
| 1641 | (arguments
|
| 1642 | (list #:make-flags #~(list (string-append "PREFIX=" #$output))
|
| 1643 | #:test-target "test"
|
| 1644 | #:phases
|
| 1645 | #~(modify-phases %standard-phases
|
| 1646 | (delete 'configure) |
| 1647 | (add-before 'build 'generate-docs
|
| 1648 | (lambda _
|
| 1649 | (invoke "make" "sync-docs")))
|
| 1650 | (add-before 'check 'fix-tests
|
| 1651 | (lambda _
|
| 1652 | (substitute* "test.sh"
|
| 1653 | |
| 1654 | (("fail \"Uncommitted files sync-docs.*")
|
| 1655 | "ok \"ignored\"\n")
|
| 1656 | (("try_grep '\\^Tags:\\.\\*cloned'")
|
| 1657 | "ok \"ignored\"")
|
| 1658 | (("try \"\\$gi\" tag \"\\$issue\" cloned")
|
| 1659 | "ok \"ignored\"")
|
| 1660 | |
| 1661 | (("#!/bin/sh") (string-append "#!" (which "sh")))))))))
|
| 1662 | (native-inputs (list git-minimal/pinned util-linux))
|
| 1663 | (inputs (list jq curl))
|
| 1664 | (synopsis "Git-based decentralized issue management")
|
| 1665 | (description
|
| 1666 | "This is a minimalist decentralized issue management system based on
|
| 1667 | Git, offering (optional) bidirectional integration with GitHub and GitLab
|
| 1668 | issue management.")
|
| 1669 | (home-page "https://github.com/dspinellis/git-issue")
|
| 1670 | (license license:gpl3+))))
|
| 1671 |
|
| 1672 | (define-public git-credential-oauth
|
| 1673 | (package
|
| 1674 | (name "git-credential-oauth")
|
| 1675 | (version "0.15.1")
|
| 1676 | (source
|
| 1677 | (origin
|
| 1678 | (method git-fetch)
|
| 1679 | (uri (git-reference
|
| 1680 | (url "https://github.com/hickford/git-credential-oauth")
|
| 1681 | (commit (string-append "v" version))))
|
| 1682 | (file-name (git-file-name name version))
|
| 1683 | (sha256
|
| 1684 | (base32 "1fid6dl82val6miq61dm203y7k2kzccpmra43fngnqrr1p4hh2pl"))))
|
| 1685 | (build-system go-build-system)
|
| 1686 | (arguments
|
| 1687 | (list
|
| 1688 | #:install-source? #f
|
| 1689 | #:build-flags #~(list (string-append "-ldflags=-X main.version="
|
| 1690 | #$version))
|
| 1691 | #:import-path "github.com/hickford/git-credential-oauth"
|
| 1692 | #:phases
|
| 1693 | #~(modify-phases %standard-phases
|
| 1694 | (add-after 'install 'install-manpages
|
| 1695 | (lambda* (#:key import-path #:allow-other-keys)
|
| 1696 | (let ((man (string-append "src/" import-path
|
| 1697 | "/git-credential-oauth.1")))
|
| 1698 | (install-file man (string-append #$output "/share/man/man1"))))))))
|
| 1699 | (native-inputs
|
| 1700 | (list go-golang-org-x-oauth2))
|
| 1701 | (home-page "https://github.com/hickford/git-credential-oauth")
|
| 1702 | (synopsis "Git credential helper that securely authenticates using OAuth")
|
| 1703 | (description
|
| 1704 | "git-credential-oauth is a Git credential helper that securely
|
| 1705 | authenticates to GitHub, GitLab, BitBucket, Gerrit, Gitea, and Forgejo using
|
| 1706 | OAuth. The first time you authenticate, the helper opens a browser window to
|
| 1707 | the host. Subsequent authentication within storage lifetime is
|
| 1708 | non-interactive.")
|
| 1709 | (license license:asl2.0)))
|
| 1710 |
|
| 1711 | (define-public git-crypt
|
| 1712 | (package
|
| 1713 | (name "git-crypt")
|
| 1714 | (version "0.8.0")
|
| 1715 | (source
|
| 1716 | (origin
|
| 1717 | (method git-fetch)
|
| 1718 | (uri (git-reference
|
| 1719 | (url "https://github.com/AGWA/git-crypt")
|
| 1720 | (commit version)))
|
| 1721 | (file-name (git-file-name name version))
|
| 1722 | (sha256
|
| 1723 | (base32 "0kr3z095vg08mbq9j9sl4lchnq1q9rz4a1nik1pqxh6hdn5kfcpj"))))
|
| 1724 | (build-system gnu-build-system)
|
| 1725 | (inputs
|
| 1726 | (list git openssl))
|
| 1727 | (native-inputs
|
| 1728 | (list docbook-xml-4.2 docbook-xsl libxslt))
|
| 1729 | (arguments
|
| 1730 | (list
|
| 1731 | #:tests? #f |
| 1732 | #:make-flags
|
| 1733 | #~(list
|
| 1734 | "ENABLE_MAN=yes"
|
| 1735 | |
| 1736 | |
| 1737 | "CXXFLAGS+=-DOPENSSL_API_COMPAT=0x30000000L"
|
| 1738 | (string-append "PREFIX=" #$output))
|
| 1739 | #:phases
|
| 1740 | #~(modify-phases %standard-phases
|
| 1741 | (delete 'configure))))
|
| 1742 | (home-page "https://www.agwa.name/projects/git-crypt/")
|
| 1743 | (synopsis "Transparent encryption of files in a git repository")
|
| 1744 | (description "git-crypt enables transparent encryption and decryption of
|
| 1745 | files in a git repository. Files which you choose to protect are encrypted when
|
| 1746 | committed, and decrypted when checked out. git-crypt lets you freely share a
|
| 1747 | repository containing a mix of public and private content. git-crypt gracefully
|
| 1748 | degrades, so developers without the secret key can still clone and commit to a
|
| 1749 | repository with encrypted files. This lets you store your secret material (such
|
| 1750 | as keys or passwords) in the same repository as your code, without requiring you
|
| 1751 | to lock down your entire repository.")
|
| 1752 | (license license:gpl3+)))
|
| 1753 |
|
| 1754 | (define-public git-remote-gcrypt
|
| 1755 | (package
|
| 1756 | (name "git-remote-gcrypt")
|
| 1757 | (version "1.5")
|
| 1758 | (source (origin
|
| 1759 | (method git-fetch)
|
| 1760 | (uri (git-reference
|
| 1761 | (url "https://git.spwhitton.name/git-remote-gcrypt")
|
| 1762 | (commit version)))
|
| 1763 | (file-name (git-file-name name version))
|
| 1764 | (sha256
|
| 1765 | (base32
|
| 1766 | "1m1wlbqpqyhh2z0ka3gjs5yabd32nnkzw5hak6czcqrhhkfsqbmv"))))
|
| 1767 | (build-system trivial-build-system)
|
| 1768 | (arguments
|
| 1769 | `(#:modules ((guix build utils))
|
| 1770 | #:builder (begin
|
| 1771 | (use-modules (guix build utils))
|
| 1772 | (let* ((source (assoc-ref %build-inputs "source"))
|
| 1773 | (output (assoc-ref %outputs "out"))
|
| 1774 | (bindir (string-append output "/bin")))
|
| 1775 | (install-file (string-append source "/git-remote-gcrypt")
|
| 1776 | bindir)))))
|
| 1777 | (home-page "https://spwhitton.name/tech/code/git-remote-gcrypt/")
|
| 1778 | (synopsis "Whole remote repository encryption")
|
| 1779 | (description "git-remote-gcrypt is a Git remote helper to push and pull from
|
| 1780 | repositories encrypted with GnuPG. It works with the standard Git transports,
|
| 1781 | including repository hosting services like GitLab.
|
| 1782 |
|
| 1783 | Remote helper programs are invoked by Git to handle network transport. This
|
| 1784 | helper handles @code{gcrypt:} URLs that access a remote repository encrypted
|
| 1785 | with GPG, using our custom format.
|
| 1786 |
|
| 1787 | Supported locations are local, @code{rsync://} and @code{sftp://}, where the
|
| 1788 | repository is stored as a set of files, or instead any Git URL where gcrypt
|
| 1789 | will store the same representation in a Git repository, bridged over arbitrary
|
| 1790 | Git transport.
|
| 1791 |
|
| 1792 | The aim is to provide confidential, authenticated Git storage and
|
| 1793 | collaboration using typical untrusted file hosts or services.")
|
| 1794 | (license license:gpl3+)))
|
| 1795 |
|
| 1796 | (define-public git-remote-tor
|
| 1797 | (package
|
| 1798 | (name "git-remote-tor")
|
| 1799 | (version "0.1.4")
|
| 1800 | (source
|
| 1801 | (origin
|
| 1802 | (method url-fetch)
|
| 1803 | (uri (crate-uri "git-remote-tor" version))
|
| 1804 | (file-name (string-append name "-" version ".tar.gz"))
|
| 1805 | (sha256
|
| 1806 | (base32 "146nyd5ww073iim48r71knfwnldq635xv732h3kl4ycsh2ki3ycx"))))
|
| 1807 | (build-system cargo-build-system)
|
| 1808 | (arguments
|
| 1809 | (list
|
| 1810 | #:install-source? #f
|
| 1811 | #:phases
|
| 1812 | #~(modify-phases %standard-phases
|
| 1813 | (add-after 'unpack 'adjust-torify
|
| 1814 | (lambda* (#:key inputs #:allow-other-keys)
|
| 1815 | (let ((torsocks (search-input-file inputs "/bin/torsocks")))
|
| 1816 | (substitute* '("src/main.rs" "git-remote-tor.sh")
|
| 1817 | (("Command::new\\(\"torsocks\"\\)")
|
| 1818 | (string-append "Command::new(\"" torsocks "\")"))
|
| 1819 | (("exec torsocks")
|
| 1820 | (string-append "exec " torsocks))
|
| 1821 | ((" and torsocks installed")
|
| 1822 | ""))))))))
|
| 1823 | (inputs (cons torsocks
|
| 1824 | (cargo-inputs 'git-remote-tor)))
|
| 1825 | (home-page "https://agentofuser.com/git-remote-tor/")
|
| 1826 | (synopsis "Seamless .onion and tor-ified git remotes")
|
| 1827 | (description
|
| 1828 | "This package provides Seamless .onion and tor-ified git remotes.")
|
| 1829 | (license (list license:expat license:asl2.0))))
|
| 1830 |
|
| 1831 | (define-public git-repo-go
|
| 1832 | (package
|
| 1833 | (name "git-repo-go")
|
| 1834 | (version "1.0.0")
|
| 1835 | (source (origin
|
| 1836 | (method git-fetch)
|
| 1837 | (uri (git-reference
|
| 1838 | (url "https://github.com/Apteryks/git-repo-go")
|
| 1839 | (commit (string-append "v" version))))
|
| 1840 | (file-name (git-file-name name version))
|
| 1841 | (sha256
|
| 1842 | (base32
|
| 1843 | "1y310dmpiaii6d84d9pvdv4wz4mx7snbpm7v9n400q0j8qnjal32"))))
|
| 1844 | (build-system go-build-system)
|
| 1845 | (arguments
|
| 1846 | (list
|
| 1847 | #:import-path "github.com/Apteryks/git-repo-go"
|
| 1848 | #:build-flags
|
| 1849 | #~(list "-ldflags" (string-append
|
| 1850 | "-s -w " |
| 1851 | "-X github.com/Apteryks/git-repo-go/version.Version="
|
| 1852 | #$version))
|
| 1853 | #:install-source? #f
|
| 1854 | #:phases
|
| 1855 | #~(modify-phases %standard-phases
|
| 1856 | (add-after 'unpack 'patch-commands
|
| 1857 | (lambda* (#:key inputs #:allow-other-keys)
|
| 1858 | (with-directory-excursion "src/github.com/Apteryks/git-repo-go"
|
| 1859 | (substitute* "config/hooks.go"
|
| 1860 | |
| 1861 | |
| 1862 | (("#!/bin/sh")
|
| 1863 | (format #f "#!~a"
|
| 1864 | (search-input-file inputs "bin/sh"))))
|
| 1865 | (substitute* "test/t1302-helper-remote-unknown.sh"
|
| 1866 | |
| 1867 | (("#!/bin/sh")
|
| 1868 | (format #f "#!~a" (which "sh")))))))
|
| 1869 | (add-before 'check 'make-HOME-writable
|
| 1870 | (lambda _
|
| 1871 | (setenv "HOME" "/tmp")))
|
| 1872 | (add-after 'install 'functional-check
|
| 1873 | (lambda* (#:key tests? #:allow-other-keys)
|
| 1874 | (when tests?
|
| 1875 | (setenv "PATH" (string-append #$output "/bin:"
|
| 1876 | (getenv "PATH")))
|
| 1877 | |
| 1878 | |
| 1879 | |
| 1880 | (setenv "GIT_TEST_OPTS" "--verbose")
|
| 1881 | (invoke "make" "-C"
|
| 1882 | "src/github.com/Apteryks/git-repo-go/test")))))))
|
| 1883 | (native-inputs
|
| 1884 | (list git-minimal/pinned
|
| 1885 | go-github-com-go-git-go-git-v5
|
| 1886 | go-github-com-h2non-gock
|
| 1887 | go-github-com-jiangxin-goconfig
|
| 1888 | go-github-com-jiangxin-multi-log
|
| 1889 | go-github-com-jiu2015-gotestspace
|
| 1890 | go-github-com-mattn-go-isatty
|
| 1891 | go-github-com-mattn-go-shellwords
|
| 1892 | go-github-com-mitchellh-go-homedir
|
| 1893 | go-github-com-spf13-cobra
|
| 1894 | go-github-com-spf13-pflag
|
| 1895 | go-github-com-spf13-viper
|
| 1896 | go-github-com-stretchr-testify
|
| 1897 | go-golang-org-x-crypto
|
| 1898 | go-gopkg-in-yaml-v2
|
| 1899 | perl
|
| 1900 | python-minimal))
|
| 1901 | (inputs
|
| 1902 | (list bash-minimal))
|
| 1903 | (home-page "https://git-repo.info/en/docs/")
|
| 1904 | (synopsis "Git extensions for AGit-Flow and Gerrit servers")
|
| 1905 | (description
|
| 1906 | "@command{git-repo} provides Git extensions for interacting conveniently
|
| 1907 | with AGit-Flow or Gerrit servers. It makes it possible to create, update or
|
| 1908 | fetch @acronym{PR, pull requests}, and more. It is based on the
|
| 1909 | @command{repo} tool that was developed for the Gerrit project, but also
|
| 1910 | supports AGit-Flow and lifts the requirement to use a manifest file.")
|
| 1911 | (license license:asl2.0)))
|
| 1912 |
|
| 1913 | (define-public github-cli
|
| 1914 | (package
|
| 1915 | (name "github-cli")
|
| 1916 | (version "2.83.2")
|
| 1917 | (source
|
| 1918 | (origin
|
| 1919 | (method git-fetch)
|
| 1920 | (uri (git-reference
|
| 1921 | (url "https://github.com/cli/cli")
|
| 1922 | (commit (string-append "v" version))))
|
| 1923 | (file-name (git-file-name name version))
|
| 1924 | (sha256
|
| 1925 | (base32 "04kpcy15r7px92mf13jf4w0v07sjnfqc09m1vfvr5pmw7xsg35k2"))))
|
| 1926 | (build-system go-build-system)
|
| 1927 | (arguments
|
| 1928 | (list
|
| 1929 | #:install-source? #f
|
| 1930 | #:import-path "github.com/cli/cli/v2/cmd/gh"
|
| 1931 | #:unpack-path "github.com/cli/cli/v2"
|
| 1932 | #:embed-files
|
| 1933 | #~(list ".*\\.xml" ".*\\.tmpl"
|
| 1934 | |
| 1935 | ".*_?root\\.json" "trusted_root\\.json"
|
| 1936 | |
| 1937 | "jsonschema-draft-04\\.json" "schema\\.json")
|
| 1938 | #:modules
|
| 1939 | '((guix build go-build-system)
|
| 1940 | (guix build utils)
|
| 1941 | (ice-9 match))
|
| 1942 | #:phases
|
| 1943 | #~(modify-phases %standard-phases
|
| 1944 | (add-after 'install 'install-extras
|
| 1945 | (lambda* (#:key unpack-path native-inputs #:allow-other-keys)
|
| 1946 | (for-each
|
| 1947 | (match-lambda
|
| 1948 | ((shell . path)
|
| 1949 | (mkdir-p (in-vicinity #$output (dirname path)))
|
| 1950 | (let ((binary
|
| 1951 | (if #$(%current-target-system)
|
| 1952 | (search-input-file native-inputs "bin/gh")
|
| 1953 | (in-vicinity #$output "bin/gh"))))
|
| 1954 | (with-output-to-file (in-vicinity #$output path)
|
| 1955 | (lambda _
|
| 1956 | (invoke binary "completion" "--shell" shell))))))
|
| 1957 | '(("bash" . "share/bash-completion/completions/gh")
|
| 1958 | ("fish" . "share/fish/vendor_completions.d/gh.fish")
|
| 1959 | ("zsh" . "share/zsh/site-functions/_gh")))
|
| 1960 | |
| 1961 | |
| 1962 | (mkdir-p (in-vicinity #$output "share/man/man1"))
|
| 1963 | (with-directory-excursion (string-append "src/" unpack-path)
|
| 1964 | (invoke "go" "run" "./cmd/gen-docs"
|
| 1965 | "--man-page" "--doc-path"
|
| 1966 | (in-vicinity #$output "share/man/man1"))))))))
|
| 1967 | (native-inputs
|
| 1968 | (append
|
| 1969 | (if (%current-target-system)
|
| 1970 | (list this-package)
|
| 1971 | '())
|
| 1972 | (list go-github-com-atotto-clipboard
|
| 1973 | go-github-com-briandowns-spinner
|
| 1974 | go-github-com-cenkalti-backoff-v4
|
| 1975 | go-github-com-cenkalti-backoff-v5
|
| 1976 | go-github-com-charmbracelet-glamour
|
| 1977 | go-github-com-charmbracelet-huh
|
| 1978 | go-github-com-charmbracelet-lipgloss
|
| 1979 | go-github-com-cli-go-gh-v2
|
| 1980 | go-github-com-cli-oauth
|
| 1981 | go-github-com-cli-safeexec
|
| 1982 | go-github-com-digitorus-timestamp
|
| 1983 | go-github-com-distribution-reference
|
| 1984 | go-github-com-gabriel-vasile-mimetype
|
| 1985 | go-github-com-gdamore-tcell-v2
|
| 1986 | go-github-com-gorilla-websocket
|
| 1987 | go-github-com-hashicorp-go-multierror
|
| 1988 | go-github-com-hashicorp-go-version
|
| 1989 | go-github-com-itchyny-timefmt-go
|
| 1990 | go-github-com-joho-godotenv
|
| 1991 | go-github-com-makenowjust-heredoc
|
| 1992 | go-github-com-masterminds-sprig-v3
|
| 1993 | go-github-com-microsoft-dev-tunnels
|
| 1994 | go-github-com-muhammadmuzzammil1998-jsonc
|
| 1995 | go-github-com-opentracing-opentracing-go
|
| 1996 | go-github-com-rivo-tview
|
| 1997 | go-github-com-shurcool-githubv4
|
| 1998 | go-github-com-sigstore-sigstore-go
|
| 1999 | go-github-com-spf13-cobra
|
| 2000 | go-github-com-spf13-pflag
|
| 2001 | go-github-com-stretchr-testify
|
| 2002 | go-github-com-vmihailenco-msgpack-v5
|
| 2003 | go-github-com-zalando-go-keyring
|
| 2004 | go-golang-org-x-sys
|
| 2005 | go-golang-org-x-term
|
| 2006 | go-golang-org-x-text
|
| 2007 | go-google-golang-org-grpc
|
| 2008 | go-gopkg-in-yaml-v3)))
|
| 2009 | (home-page "https://cli.github.com/")
|
| 2010 | (synopsis "GitHub's official command-line tool")
|
| 2011 | (description
|
| 2012 | "@command{gh} is GitHub on the command line. It brings pull requests,
|
| 2013 | issues, and other GitHub concepts to the terminal next to where you are
|
| 2014 | already working with git and your code. It works with GitHub.com, GitHub
|
| 2015 | Enterprise Cloud, and GitHub Enterprise Server 2.20+.")
|
| 2016 | (license license:expat)))
|
| 2017 |
|
| 2018 | (define-public cgit
|
| 2019 | (package
|
| 2020 | (name "cgit")
|
| 2021 | |
| 2022 | (version "1.3")
|
| 2023 | (source (origin
|
| 2024 | (method git-fetch)
|
| 2025 | (uri (git-reference
|
| 2026 | (url "https://git.zx2c4.com/cgit")
|
| 2027 | (commit (string-append "v" version))))
|
| 2028 | (sha256
|
| 2029 | (base32
|
| 2030 | "1miwjvh4maxx6b5345wjnndzw58907lh9vif5ajqwwda6sicsnmj"))
|
| 2031 | (file-name (git-file-name name version))))
|
| 2032 | (build-system gnu-build-system)
|
| 2033 | (arguments
|
| 2034 | (list
|
| 2035 | #:tests? #f |
| 2036 | #:test-target "test"
|
| 2037 | #:make-flags #~(list (string-append "CC=" #$(cc-for-target))
|
| 2038 | "SHELL_PATH=sh")
|
| 2039 | #:phases
|
| 2040 | #~(modify-phases %standard-phases
|
| 2041 | (add-after 'unpack 'unpack-git
|
| 2042 | (lambda* (#:key inputs #:allow-other-keys)
|
| 2043 | |
| 2044 | (invoke "tar" "--strip-components=1" "-C" "git" "-xf"
|
| 2045 | #$(this-package-input "git-source.tar.xz"))))
|
| 2046 | (add-after 'unpack 'patch-absolute-file-names
|
| 2047 | (lambda* (#:key inputs outputs #:allow-other-keys)
|
| 2048 | (define (quoted-file-name input path)
|
| 2049 | (string-append "\"" input path "\""))
|
| 2050 | (substitute* "ui-snapshot.c"
|
| 2051 | (("\"gzip\"")
|
| 2052 | (quoted-file-name (assoc-ref inputs "gzip") "/bin/gzip"))
|
| 2053 | (("\"bzip2\"")
|
| 2054 | (quoted-file-name (assoc-ref inputs "bzip2") "/bin/bzip2"))
|
| 2055 | (("\"xz\"")
|
| 2056 | (quoted-file-name (assoc-ref inputs "xz") "/bin/xz")))
|
| 2057 |
|
| 2058 | (substitute* "filters/about-formatting.sh"
|
| 2059 | (("\\$\\(dirname \\$0\\)") (string-append (assoc-ref outputs "out")
|
| 2060 | "/lib/cgit/filters"))
|
| 2061 | (("\\| tr") (string-append "| " (which "tr"))))
|
| 2062 |
|
| 2063 | (substitute* "filters/html-converters/txt2html"
|
| 2064 | (("sed") (which "sed")))
|
| 2065 |
|
| 2066 | (substitute* "filters/html-converters/man2html"
|
| 2067 | (("groff") (which "groff")))
|
| 2068 |
|
| 2069 | (substitute* "filters/html-converters/rst2html"
|
| 2070 | (("rst2html\\.py") (which "rst2html.py")))))
|
| 2071 | (delete 'configure) |
| 2072 | (add-after 'build 'build-man
|
| 2073 | (lambda* (#:key make-flags #:allow-other-keys)
|
| 2074 | (apply invoke "make" "doc-man" make-flags)))
|
| 2075 | (replace 'install
|
| 2076 | (lambda* (#:key make-flags outputs #:allow-other-keys)
|
| 2077 | (let ((out (assoc-ref outputs "out")))
|
| 2078 | (apply invoke
|
| 2079 | "make" "install" "install-man"
|
| 2080 | (string-append "prefix=" out)
|
| 2081 | (string-append "CGIT_SCRIPT_PATH=" out "/share/cgit")
|
| 2082 | make-flags)
|
| 2083 | |
| 2084 | |
| 2085 | (rename-file (string-append out "/share/cgit/cgit.cgi")
|
| 2086 | (string-append out "/lib/cgit/cgit.cgi")))))
|
| 2087 | (add-after 'install 'wrap-python-scripts
|
| 2088 | (lambda* (#:key outputs #:allow-other-keys)
|
| 2089 | (for-each
|
| 2090 | (lambda (file)
|
| 2091 | (wrap-program (string-append (assoc-ref outputs "out")
|
| 2092 | "/lib/cgit/filters/" file)
|
| 2093 | `("GUIX_PYTHONPATH" ":" prefix (,(getenv "GUIX_PYTHONPATH")))))
|
| 2094 | '("syntax-highlighting.py"
|
| 2095 | "html-converters/md2html")))))))
|
| 2096 | (native-inputs
|
| 2097 | |
| 2098 | (list asciidoc))
|
| 2099 | (inputs
|
| 2100 | (list (origin
|
| 2101 | (method url-fetch)
|
| 2102 | |
| 2103 | |
| 2104 | |
| 2105 | (uri "mirror://kernel.org/software/scm/git/git-2.53.0.tar.xz")
|
| 2106 | (sha256
|
| 2107 | (base32
|
| 2108 | "0ly6335f4qd5qkzk3xwib6h1i26w17b37968zsyvnqdhh1yvs62q"))
|
| 2109 | (file-name "git-source.tar.xz"))
|
| 2110 | bash-minimal
|
| 2111 | openssl
|
| 2112 | python
|
| 2113 | python-docutils-0.19
|
| 2114 | python-markdown
|
| 2115 | python-pygments
|
| 2116 | zlib
|
| 2117 | |
| 2118 | |
| 2119 | |
| 2120 | bzip2
|
| 2121 | groff
|
| 2122 | gzip
|
| 2123 | xz))
|
| 2124 | (home-page "https://git.zx2c4.com/cgit/")
|
| 2125 | (synopsis "Web frontend for git repositories")
|
| 2126 | (description
|
| 2127 | "CGit is an attempt to create a fast web interface for the Git SCM, using
|
| 2128 | a built-in cache to decrease server I/O pressure.")
|
| 2129 | (license license:gpl2)))
|
| 2130 |
|
| 2131 | (define-public cgit-pink
|
| 2132 | (package
|
| 2133 | (inherit cgit)
|
| 2134 | (name "cgit-pink")
|
| 2135 | (version "1.4.1")
|
| 2136 | (source (origin
|
| 2137 | (method git-fetch)
|
| 2138 | (uri (git-reference
|
| 2139 | (url "https://git.causal.agency/cgit-pink")
|
| 2140 | (commit version)))
|
| 2141 | (file-name (git-file-name name version))
|
| 2142 | (sha256
|
| 2143 | (base32
|
| 2144 | "0yp6rm60pz8pj8wrm1aglix51hhy00al86mm94ag2bifc92q23ar"))))
|
| 2145 | (arguments
|
| 2146 | (substitute-keyword-arguments arguments
|
| 2147 | ((#:tests? _ #f)
|
| 2148 | (not (%current-target-system)))
|
| 2149 | ((#:make-flags _ '())
|
| 2150 | #~(list (string-append "CC=" #$(cc-for-target))
|
| 2151 | (string-append "PERL_PATH="
|
| 2152 | (search-input-file %build-inputs "/bin/perl"))
|
| 2153 | |
| 2154 | |
| 2155 | |
| 2156 | (string-append "SHELL_PATH="
|
| 2157 | (search-input-file %build-inputs "/bin/sh"))))
|
| 2158 | ((#:phases phases #~%standard-phases)
|
| 2159 | #~(modify-phases #$phases
|
| 2160 | (replace 'unpack-git
|
| 2161 | (lambda _
|
| 2162 | |
| 2163 | (invoke "tar" "--strip-components=1" "-C" "git" "-xf"
|
| 2164 | #$(this-package-input "git-source.tar.xz"))))))))
|
| 2165 | (inputs
|
| 2166 | (modify-inputs inputs
|
| 2167 | (replace "git-source.tar.xz"
|
| 2168 | |
| 2169 | |
| 2170 | (origin
|
| 2171 | (method url-fetch)
|
| 2172 | (uri "mirror://kernel.org/software/scm/git/git-2.36.1.tar.xz")
|
| 2173 | (sha256
|
| 2174 | (base32
|
| 2175 | "0w43a35mhc2qf2gjkxjlnkf2lq8g0snf34iy5gqx2678yq7llpa0"))))))
|
| 2176 | (native-inputs
|
| 2177 | (modify-inputs native-inputs
|
| 2178 | (append gnu-gettext perl)))
|
| 2179 | (home-page "https://git.causal.agency/cgit-pink/about/")
|
| 2180 | (description "cgit-pink is a fast web interface for the Git SCM, using a
|
| 2181 | built-in cache to decrease server I/O pressure. cgit-pink is a fork of
|
| 2182 | cgit.")))
|
| 2183 |
|
| 2184 | (define-public python-git-multimail
|
| 2185 | (let ((commit "747fad49038b1f0eea12ab4ad453fb404111fe11")
|
| 2186 | (revision "0"))
|
| 2187 | (package
|
| 2188 | (name "python-git-multimail")
|
| 2189 | (version (git-version "1.6.0" revision commit))
|
| 2190 | (source
|
| 2191 | (origin
|
| 2192 | (method git-fetch)
|
| 2193 | (uri (git-reference
|
| 2194 | (url "https://github.com/git-multimail/git-multimail")
|
| 2195 | (commit commit)))
|
| 2196 | (file-name (git-file-name name version))
|
| 2197 | (sha256
|
| 2198 | (base32 "101lm3sxdi844bj91x1sqnjw1lmqv1ir1m2dr2nfv9gap94pvaiw"))))
|
| 2199 | (build-system pyproject-build-system)
|
| 2200 | (arguments
|
| 2201 | (list
|
| 2202 | |
| 2203 | #:tests? #f
|
| 2204 | #:phases
|
| 2205 | #~(modify-phases %standard-phases
|
| 2206 | (add-after 'unpack 'patch
|
| 2207 | (lambda* (#:key inputs #:allow-other-keys)
|
| 2208 | (substitute* "setup.py"
|
| 2209 | (("'git-multimail', 'README.rst'")
|
| 2210 | "'README.rst'"))
|
| 2211 | (substitute* "git-multimail/git_multimail.py"
|
| 2212 | (("GIT_EXECUTABLE = 'git'")
|
| 2213 | (format #f "GIT_EXECUTABLE = '~a'"
|
| 2214 | (search-input-file inputs "bin/git")))
|
| 2215 | (("/usr/sbin/sendmail")
|
| 2216 | (search-input-file inputs "/sbin/sendmail")))))
|
| 2217 | (replace 'check
|
| 2218 | (lambda* (#:key tests? #:allow-other-keys)
|
| 2219 | (when tests?
|
| 2220 | (with-directory-excursion "t"
|
| 2221 | (invoke "make" "test"))))))))
|
| 2222 | (native-inputs (list python-setuptools))
|
| 2223 | (inputs (list git sendmail))
|
| 2224 | (home-page "https://github.com/git-multimail/git-multimail")
|
| 2225 | (synopsis "Send notification emails for Git pushes")
|
| 2226 | (description
|
| 2227 | "This hook sends emails describing changes introduced by pushes to a Git
|
| 2228 | repository. For each reference that was changed, it emits one ReferenceChange
|
| 2229 | email summarizing how the reference was changed, followed by one Revision
|
| 2230 | email for each new commit that was introduced by the reference change.
|
| 2231 |
|
| 2232 | This script is designed to be used as a post-receive hook in a Git
|
| 2233 | repository")
|
| 2234 | (license license:gpl2))))
|
| 2235 |
|
| 2236 | (define-public python-ghp-import
|
| 2237 | (package
|
| 2238 | (name "python-ghp-import")
|
| 2239 | (version "2.1.0")
|
| 2240 | (source
|
| 2241 | (origin
|
| 2242 | (method git-fetch)
|
| 2243 | (uri (git-reference
|
| 2244 | (url "https://github.com/c-w/ghp-import")
|
| 2245 | (commit version)))
|
| 2246 | (file-name (git-file-name name version))
|
| 2247 | (sha256
|
| 2248 | (base32 "1v6kay6yr8sz0601ib8lrvbgpxslhll20b28i04bdwj1f1cjygy4"))))
|
| 2249 | (build-system pyproject-build-system)
|
| 2250 | (arguments
|
| 2251 | (list
|
| 2252 | #:tests? #f |
| 2253 | #:phases
|
| 2254 | #~(modify-phases %standard-phases
|
| 2255 | (add-after 'install 'install-documentation
|
| 2256 | (lambda* (#:key outputs #:allow-other-keys)
|
| 2257 | (let* ((out (assoc-ref outputs "out"))
|
| 2258 | (doc (string-append out "/share/doc"))
|
| 2259 | (licenses (string-append out "/share/licenses")))
|
| 2260 | (install-file "README.md" doc)
|
| 2261 | (install-file "LICENSE" licenses)))))))
|
| 2262 | (native-inputs
|
| 2263 | (list python-setuptools))
|
| 2264 | (propagated-inputs (list python-dateutil))
|
| 2265 | (home-page "https://github.com/c-w/ghp-import")
|
| 2266 | (synopsis "Copy directory to the gh-pages branch")
|
| 2267 | (description "Script that copies a directory to the gh-pages branch (by
|
| 2268 | default) of the repository.")
|
| 2269 |
|
| 2270 | |
| 2271 | (license (license:non-copyleft
|
| 2272 | "https://raw.githubusercontent.com/davisp/ghp-import/master/LICENSE"
|
| 2273 | "Tumbolia Public License"))))
|
| 2274 |
|
| 2275 | (define-public python-gitdb
|
| 2276 | (package
|
| 2277 | (name "python-gitdb")
|
| 2278 | (version "4.0.12")
|
| 2279 | (source (origin
|
| 2280 | (method url-fetch)
|
| 2281 | (uri (pypi-uri "gitdb" version))
|
| 2282 | (sha256
|
| 2283 | (base32
|
| 2284 | "0wdmzngk870944nc6q5sphzv29jzhgddbh7vzhk366hrbn2izxsy"))))
|
| 2285 | (build-system pyproject-build-system)
|
| 2286 | (arguments
|
| 2287 | |
| 2288 | |
| 2289 | `(#:test-flags '("-k" "not test_pack_writing"
|
| 2290 | "--ignore-glob=gitdb/test/performance/*.py")
|
| 2291 | #:phases (modify-phases %standard-phases
|
| 2292 | (add-before 'check 'create-test-repository
|
| 2293 | (lambda _
|
| 2294 | (mkdir "/tmp/testrepo")
|
| 2295 | |
| 2296 | (with-directory-excursion "/tmp/testrepo"
|
| 2297 | (do ((filecount 1 (1+ filecount)))
|
| 2298 | ((> filecount 1000))
|
| 2299 | (call-with-output-file (string-append
|
| 2300 | "file" (number->string filecount))
|
| 2301 | (lambda (port)
|
| 2302 | (format port "~a" filecount))))
|
| 2303 | (begin
|
| 2304 | (invoke "git" "init")
|
| 2305 | (invoke "git" "config" "user.name" "Total Git")
|
| 2306 | (invoke "git" "config" "user.email" "git@localhost")
|
| 2307 | (invoke "git" "add" "-A")
|
| 2308 | (invoke "git" "commit" "-q" "-m" "dummy commit")))
|
| 2309 |
|
| 2310 | |
| 2311 | (invoke "git" "clone" "--bare" "/tmp/testrepo"
|
| 2312 | "/tmp/testrepo.git")))
|
| 2313 | (add-before 'check 'pre-check
|
| 2314 | (lambda _
|
| 2315 | (setenv "GITDB_TEST_GIT_REPO_BASE" "/tmp/testrepo.git")
|
| 2316 | |
| 2317 | (setenv "TRAVIS" "1"))))))
|
| 2318 | (propagated-inputs
|
| 2319 | (list python-smmap))
|
| 2320 | (native-inputs
|
| 2321 | (list git-minimal/pinned python-pytest python-setuptools python-wheel))
|
| 2322 | (home-page "https://github.com/gitpython-developers/gitdb")
|
| 2323 | (synopsis "Python implementation of the Git object database")
|
| 2324 | (description
|
| 2325 | "GitDB allows you to access @dfn{bare} Git repositories for reading and
|
| 2326 | writing. It aims at allowing full access to loose objects as well as packs
|
| 2327 | with performance and scalability in mind. It operates exclusively on streams,
|
| 2328 | allowing to handle large objects with a small memory footprint.")
|
| 2329 | (license license:bsd-3)))
|
| 2330 |
|
| 2331 | (define-public python-gitpython
|
| 2332 | (package
|
| 2333 | (name "python-gitpython")
|
| 2334 | (version "3.1.44")
|
| 2335 | (source (origin
|
| 2336 | (method url-fetch)
|
| 2337 | (uri (pypi-uri "gitpython" version))
|
| 2338 | (sha256
|
| 2339 | (base32
|
| 2340 | "0scj4hqk6msyzqvq70wk6583qzwn33w601hvn0c59gskcar30zn8"))))
|
| 2341 | (build-system pyproject-build-system)
|
| 2342 | (arguments
|
| 2343 | (list #:tests? #f |
| 2344 | #:phases
|
| 2345 | #~(modify-phases %standard-phases
|
| 2346 | (add-after 'unpack 'embed-git-reference
|
| 2347 | (lambda* (#:key inputs #:allow-other-keys)
|
| 2348 | (substitute* "git/cmd.py"
|
| 2349 | (("git_exec_name = \"git\"")
|
| 2350 | (string-append "git_exec_name = \""
|
| 2351 | (search-input-file inputs "/bin/git")
|
| 2352 | "\""))))))))
|
| 2353 | (inputs
|
| 2354 | (list git-minimal/pinned))
|
| 2355 | (propagated-inputs
|
| 2356 | (list python-gitdb))
|
| 2357 | (native-inputs
|
| 2358 | (list python-setuptools))
|
| 2359 | (home-page "https://github.com/gitpython-developers/GitPython")
|
| 2360 | (synopsis "Python library for interacting with Git repositories")
|
| 2361 | (description
|
| 2362 | "GitPython is a python library used to interact with Git repositories,
|
| 2363 | high-level like git-porcelain, or low-level like git-plumbing.
|
| 2364 |
|
| 2365 | It provides abstractions of Git objects for easy access of repository data,
|
| 2366 | and additionally allows you to access the Git repository more directly using
|
| 2367 | either a pure Python implementation, or the faster, but more resource intensive
|
| 2368 | @command{git} command implementation.")
|
| 2369 | (license license:bsd-3)))
|
| 2370 |
|
| 2371 | (define-public savane
|
| 2372 | (package
|
| 2373 | (name "savane")
|
| 2374 | (version "3.12")
|
| 2375 | (source (origin
|
| 2376 | (method git-fetch)
|
| 2377 | (uri (git-reference
|
| 2378 | (url "https://git.savannah.gnu.org/git/administration/savane")
|
| 2379 | (commit (string-append "release-" version))))
|
| 2380 | (file-name (git-file-name name version))
|
| 2381 | (sha256
|
| 2382 | (base32
|
| 2383 | "05w12rc1qx10zg3i78v6q6sdhg19pml2jghfmlnnsxwjv0nrdv7n"))))
|
| 2384 | (build-system gnu-build-system)
|
| 2385 | (native-inputs
|
| 2386 | (list autoconf
|
| 2387 | automake
|
| 2388 | gettext-minimal
|
| 2389 | imagemagick))
|
| 2390 | (inputs
|
| 2391 | (list exim
|
| 2392 | gnupg
|
| 2393 | httpd
|
| 2394 | mariadb
|
| 2395 | php))
|
| 2396 | (propagated-inputs
|
| 2397 | (list perl
|
| 2398 | perl-dbd-mysql
|
| 2399 | perl-dbi
|
| 2400 | perl-date-calc
|
| 2401 | perl-digest-md5
|
| 2402 | perl-mailtools
|
| 2403 | perl-file-find-rule
|
| 2404 | perl-xml-writer))
|
| 2405 | (synopsis "Web-based software hosting system")
|
| 2406 | (description
|
| 2407 | "Savane is a Web-based software hosting system. It includes issue
|
| 2408 | tracking (bugs, tasks, support, news and documentation), project member
|
| 2409 | management by roles and individual account maintenance.")
|
| 2410 | (home-page "https://savannah.nongnu.org/p/administration")
|
| 2411 | (license license:agpl3+)))
|
| 2412 |
|
| 2413 | (define-public shflags
|
| 2414 | (package
|
| 2415 | (name "shflags")
|
| 2416 | (version "1.3.0")
|
| 2417 | (source (origin
|
| 2418 | (method git-fetch)
|
| 2419 | (uri (git-reference
|
| 2420 | (url "https://github.com/kward/shflags")
|
| 2421 | (commit (string-append "v" version))))
|
| 2422 | (file-name (git-file-name name version))
|
| 2423 | (sha256
|
| 2424 | (base32
|
| 2425 | "0jj0zkly8yg42b8jvih2cmmafv95vm8mv80n3dyalvr5i14lzqd8"))))
|
| 2426 | (build-system gnu-build-system)
|
| 2427 | (arguments
|
| 2428 | `(#:tests? #f |
| 2429 | #:phases
|
| 2430 | (modify-phases %standard-phases
|
| 2431 | (delete 'configure) |
| 2432 | (delete 'build) |
| 2433 | (replace 'install
|
| 2434 | (lambda* (#:key outputs #:allow-other-keys)
|
| 2435 | (let* ((out (assoc-ref outputs "out"))
|
| 2436 | (src (string-append out "/src")))
|
| 2437 | (install-file "shflags" src)
|
| 2438 | #t))))))
|
| 2439 | (home-page "https://github.com/kward/shflags")
|
| 2440 | (synopsis "Command-line flags library for shell scripts")
|
| 2441 | (description
|
| 2442 | "Shell Flags (shFlags) is a library written to greatly simplify the
|
| 2443 | handling of command-line flags in Bourne based Unix shell scripts (bash, dash,
|
| 2444 | ksh, sh, zsh). Most shell scripts use getopt for flags processing, but the
|
| 2445 | different versions of getopt on various OSes make writing portable shell
|
| 2446 | scripts difficult. shFlags instead provides an API that doesn't change across
|
| 2447 | shell and OS versions so the script writer can be confident that the script
|
| 2448 | will work.")
|
| 2449 | (license license:lgpl2.1)))
|
| 2450 |
|
| 2451 | (define-public trac
|
| 2452 | (package
|
| 2453 | (name "trac")
|
| 2454 | (version "1.6")
|
| 2455 | (source
|
| 2456 | (origin
|
| 2457 | (method url-fetch)
|
| 2458 | (uri (pypi-uri "Trac" version))
|
| 2459 | (sha256
|
| 2460 | (base32 "013kqa93kd1giswir9qsasm5080x5x5x4ab86ky8zmkhyrhkrmv1"))))
|
| 2461 | (build-system pyproject-build-system)
|
| 2462 | (arguments
|
| 2463 | (list #:test-flags #~(list "-k"
|
| 2464 | |
| 2465 | (string-append
|
| 2466 | "not test_remove_composite_keys"
|
| 2467 | " and not test_remove_simple_keys"))))
|
| 2468 | (native-inputs
|
| 2469 | (list python-psycopg2
|
| 2470 | python-pymysql
|
| 2471 | python-pytest
|
| 2472 | python-setuptools))
|
| 2473 | (propagated-inputs
|
| 2474 | (list python-jinja2
|
| 2475 | python-multipart
|
| 2476 | python-standard-smtpd))
|
| 2477 | (home-page "https://trac.edgewall.org")
|
| 2478 | (synopsis "Integrated SCM, wiki, issue tracker and project environment")
|
| 2479 | (description "Trac is a minimalistic web-based software project management
|
| 2480 | and bug/issue tracking system. It provides an interface to the Git and
|
| 2481 | Subversion revision control systems, an integrated wiki, flexible issue
|
| 2482 | tracking and convenient report facilities.")
|
| 2483 | (license license:bsd-3)))
|
| 2484 |
|
| 2485 | (define-public git-flow
|
| 2486 | (package
|
| 2487 | (name "git-flow")
|
| 2488 | |
| 2489 | |
| 2490 | (version "1.12.3")
|
| 2491 | (source (origin
|
| 2492 | (method git-fetch)
|
| 2493 | (uri (git-reference
|
| 2494 | (url "https://github.com/petervanderdoes/gitflow-avh/")
|
| 2495 | (commit version)))
|
| 2496 | (file-name (git-file-name name version))
|
| 2497 | (sha256
|
| 2498 | (base32
|
| 2499 | "13q4mnrxr03wz2dkhzy73j384g299m4d545cnhxcaznvdwfany4h"))))
|
| 2500 | (build-system gnu-build-system)
|
| 2501 | (inputs (list shflags))
|
| 2502 | (arguments
|
| 2503 | '(#:tests? #f |
| 2504 | #:make-flags (list (string-append "prefix="
|
| 2505 | (assoc-ref %outputs "out")))
|
| 2506 | #:phases
|
| 2507 | (modify-phases %standard-phases
|
| 2508 | (add-after 'unpack 'reset-shFlags-link
|
| 2509 | (lambda* (#:key inputs #:allow-other-keys)
|
| 2510 | |
| 2511 | |
| 2512 | (let ((shflags (assoc-ref inputs "shflags")))
|
| 2513 | (begin
|
| 2514 | (delete-file "gitflow-shFlags")
|
| 2515 | (symlink (string-append shflags "/src/shflags")
|
| 2516 | "gitflow-shFlags")))))
|
| 2517 | (delete 'configure)
|
| 2518 | (delete 'build))))
|
| 2519 | (home-page "https://nvie.com/posts/a-successful-git-branching-model/")
|
| 2520 | (synopsis "Git extensions for Vincent Driessen's branching model")
|
| 2521 | (description
|
| 2522 | "Vincent Driessen's branching model is a git branching and release
|
| 2523 | management strategy that helps developers keep track of features, hotfixes,
|
| 2524 | and releases in bigger software projects. The git-flow library of git
|
| 2525 | subcommands helps automate some parts of the flow to make working with it a
|
| 2526 | lot easier.")
|
| 2527 | (license license:bsd-2)))
|
| 2528 |
|
| 2529 | (define-public stgit
|
| 2530 | (package
|
| 2531 | (name "stgit")
|
| 2532 | (version "2.5.3")
|
| 2533 | (source
|
| 2534 | (origin
|
| 2535 | (method git-fetch)
|
| 2536 | (uri (git-reference
|
| 2537 | (url "https://github.com/stacked-git/stgit")
|
| 2538 | (commit (string-append "v" version))))
|
| 2539 | (file-name (git-file-name name version))
|
| 2540 | (sha256
|
| 2541 | (base32 "0pxhl7fnycs4bx46x9m8v33lsf5hwp0fhqyihlr4sf7ms4b7adsc"))))
|
| 2542 | (build-system cargo-build-system)
|
| 2543 | (arguments
|
| 2544 | `(#:install-source? #f
|
| 2545 | #:phases
|
| 2546 | (modify-phases %standard-phases
|
| 2547 | (add-after 'build 'build-extras
|
| 2548 | (lambda _
|
| 2549 | (substitute* "Documentation/Makefile"
|
| 2550 | (("docbook2x-texi") "docbook2texi"))
|
| 2551 | (setenv "PERL_PATH" "perl")
|
| 2552 | (invoke "make" "-C" "Documentation" "info")
|
| 2553 | (invoke "make" "-C" "completion" "stgit.bash")
|
| 2554 | (invoke "make" "-C" "completion" "stg.fish")))
|
| 2555 | (add-after 'install 'install-extras
|
| 2556 | (lambda* (#:key outputs #:allow-other-keys)
|
| 2557 | (let ((out (assoc-ref outputs "out")))
|
| 2558 | (invoke "make" "-C" "Documentation" "install-info"
|
| 2559 | (string-append "prefix=" out))
|
| 2560 | (invoke "make" "-C" "completion" "install"
|
| 2561 | (string-append "prefix=" out)
|
| 2562 | (string-append "bashdir=" out "/etc/bash_completion.d/"))))))))
|
| 2563 | (native-inputs
|
| 2564 | (list pkg-config
|
| 2565 | |
| 2566 | asciidoc
|
| 2567 | docbook2x
|
| 2568 | libxslt
|
| 2569 | perl
|
| 2570 | texinfo
|
| 2571 | xmlto))
|
| 2572 | (inputs (cons* openssl zlib curl (cargo-inputs 'stgit-2)))
|
| 2573 | (home-page "https://stacked-git.github.io/")
|
| 2574 | (synopsis "Stacked Git (StGit) manages Git commits as a stack of patches")
|
| 2575 | (description "StGit uses a patch stack workflow. Each individual patch
|
| 2576 | focuses on a single concern, while a stack of patches forms a series of commits.
|
| 2577 | Patches are stored as normal git commits, allowing easy merging of StGit
|
| 2578 | patches into other repositories using standard Git.
|
| 2579 |
|
| 2580 | Features include:
|
| 2581 | @itemize
|
| 2582 | @item Import and export patches from Git with @command{stg commit} and
|
| 2583 | @command{stg uncommit}
|
| 2584 | @item Create new patches and add them to the stack with @command{stg new}
|
| 2585 | @item Update a patch from the working tree with @command{stg refresh} and
|
| 2586 | @command{stg edit}
|
| 2587 | @item See information about the stack or patch with @command{stg series} and
|
| 2588 | @command{stg show}
|
| 2589 | @item Export and send a series of patches by email using @command{stg email}
|
| 2590 | @end itemize")
|
| 2591 | (license license:gpl2)))
|
| 2592 |
|
| 2593 | (define-public emacs-stgit
|
| 2594 | (package
|
| 2595 | (inherit stgit)
|
| 2596 | (name "emacs-stgit")
|
| 2597 | (version "0.17.1") |
| 2598 | (build-system emacs-build-system)
|
| 2599 | (arguments
|
| 2600 | (list
|
| 2601 | #:tests? #f |
| 2602 | #:lisp-directory "contrib"
|
| 2603 | #:phases
|
| 2604 | #~(modify-phases %standard-phases
|
| 2605 | (add-after 'unpack 'patch-version-executables
|
| 2606 | (lambda* (#:key inputs #:allow-other-keys)
|
| 2607 | (emacs-substitute-variables "stgit.el"
|
| 2608 | ("stgit-stg-program" (search-input-file inputs "/bin/stg")))
|
| 2609 | (emacs-substitute-variables "stgit.el"
|
| 2610 | ("stgit-git-program" (search-input-file inputs "/bin/git")))))
|
| 2611 | (add-before 'install-license-files 'leave-lisp-directory
|
| 2612 | (lambda _
|
| 2613 | (chdir ".."))))))
|
| 2614 | (inputs (list stgit git))
|
| 2615 | (synopsis "Emacs major mode for StGit interaction")
|
| 2616 | (description "This package a interactive tool to interact with git
|
| 2617 | branches using StGit.")
|
| 2618 | (license license:gpl2+)))
|
| 2619 |
|
| 2620 | (define-public vcsh
|
| 2621 | (package
|
| 2622 | (name "vcsh")
|
| 2623 | (version "2.0.5")
|
| 2624 | (source
|
| 2625 | (origin
|
| 2626 | (method git-fetch)
|
| 2627 | (uri (git-reference
|
| 2628 | (url "https://github.com/RichiH/vcsh")
|
| 2629 | (commit (string-append "v" version))))
|
| 2630 | (file-name (git-file-name name version))
|
| 2631 | (sha256
|
| 2632 | (base32 "15lb09c2q261p1pp5r7j9k8389ybrd2q19xhnp1nnha6gs78i4wq"))))
|
| 2633 | (build-system gnu-build-system)
|
| 2634 | (native-inputs
|
| 2635 | (list autoconf
|
| 2636 | automake
|
| 2637 | |
| 2638 | ronn-ng
|
| 2639 | |
| 2640 | perl
|
| 2641 | perl-test-harness
|
| 2642 | perl-shell-command
|
| 2643 | perl-test-most
|
| 2644 | |
| 2645 | pkg-config))
|
| 2646 | (inputs
|
| 2647 | (list git))
|
| 2648 | (arguments
|
| 2649 | '(#:phases
|
| 2650 | (modify-phases %standard-phases
|
| 2651 | (add-before 'bootstrap 'fix-version-gen
|
| 2652 | (lambda _
|
| 2653 | (call-with-output-file ".tarball-version"
|
| 2654 | (lambda (port)
|
| 2655 | (display version port))))))
|
| 2656 | #:make-flags (list (string-append "PREFIX="
|
| 2657 | (assoc-ref %outputs "out")))
|
| 2658 | #:test-target "test"))
|
| 2659 | (home-page "https://github.com/RichiH/vcsh")
|
| 2660 | (synopsis "Version control system for @code{$HOME}")
|
| 2661 | (description
|
| 2662 | "vcsh version-controls configuration files in several Git repositories,
|
| 2663 | all in one single directory. They all maintain their working trees without
|
| 2664 | clobbering each other or interfering otherwise. By default, all Git
|
| 2665 | repositories maintained via vcsh store the actual files in @code{$HOME},
|
| 2666 | though this can be overridden.")
|
| 2667 | (license license:gpl2+)))
|
| 2668 |
|
| 2669 | (define-public vcstool
|
| 2670 | (package
|
| 2671 | (name "vcstool")
|
| 2672 | (version "0.3.0")
|
| 2673 | (source
|
| 2674 | (origin
|
| 2675 | (method url-fetch)
|
| 2676 | (uri (pypi-uri "vcstool" version))
|
| 2677 | (sha256
|
| 2678 | (base32 "0b7f68q25x9nxqa3xcg32js3qgp4jg99anwy2c7nd1jkw5iskcq4"))))
|
| 2679 | (build-system pyproject-build-system)
|
| 2680 | (arguments
|
| 2681 | (list
|
| 2682 | #:tests? #f |
| 2683 | #:phases
|
| 2684 | #~(modify-phases %standard-phases
|
| 2685 | (add-after 'wrap 'wrap-script
|
| 2686 | (lambda _
|
| 2687 | (wrap-program (string-append #$output "/bin/vcs")
|
| 2688 | `("PATH" ":" prefix
|
| 2689 | ,(list (string-append #$git "/bin")
|
| 2690 | (string-append #$breezy "/bin")
|
| 2691 | (string-append #$subversion "/bin")))))))))
|
| 2692 | (native-inputs
|
| 2693 | (list python-pyyaml
|
| 2694 | python-setuptools
|
| 2695 | python-wheel))
|
| 2696 | (inputs
|
| 2697 | (list bash-minimal
|
| 2698 | breezy
|
| 2699 | git
|
| 2700 | subversion))
|
| 2701 | (home-page "https://github.com/dirk-thomas/vcstool")
|
| 2702 | (synopsis "Multiple VCS repository managing tool")
|
| 2703 | (description
|
| 2704 | "This package enables manipulating multiple version control repositories
|
| 2705 | with one command.")
|
| 2706 | (license license:asl2.0)))
|
| 2707 |
|
| 2708 | (define-public git-test-sequence
|
| 2709 | (let ((commit "48e5a2f5a13a5f30452647237e23362b459b9c76"))
|
| 2710 | (package
|
| 2711 | (name "git-test-sequence")
|
| 2712 | (version (string-append "20140312." (string-take commit 7)))
|
| 2713 | (source (origin
|
| 2714 | (method git-fetch)
|
| 2715 | (uri (git-reference
|
| 2716 | |
| 2717 | |
| 2718 | (url "https://github.com/dustin/bindir")
|
| 2719 | (commit commit)))
|
| 2720 | (file-name (git-file-name name version))
|
| 2721 | (sha256
|
| 2722 | (base32
|
| 2723 | "1dcq0y16yznbv4k9h8gg90kv1gkn8r8dbvl4m2rpfd7q5nqhn617"))))
|
| 2724 | (build-system trivial-build-system)
|
| 2725 | (arguments
|
| 2726 | `(#:modules ((guix build utils))
|
| 2727 | #:builder (begin
|
| 2728 | (use-modules (guix build utils))
|
| 2729 | (let* ((source (assoc-ref %build-inputs "source"))
|
| 2730 | (output (assoc-ref %outputs "out"))
|
| 2731 | (bindir (string-append output "/bin"))
|
| 2732 | (script "git-test-sequence"))
|
| 2733 | (install-file (string-append source "/" script)
|
| 2734 | bindir)
|
| 2735 | #t))))
|
| 2736 | (home-page "https://dustin.sallings.org/2010/03/28/git-test-sequence.html")
|
| 2737 | (synopsis "Run a command over a sequence of commits")
|
| 2738 | (description
|
| 2739 | "git-test-sequence is similar to an automated git bisect except it’s
|
| 2740 | linear. It will test every change between two points in the DAG. It will
|
| 2741 | also walk each side of a merge and test those changes individually.")
|
| 2742 | (license (license:x11-style "file://LICENSE")))))
|
| 2743 |
|
| 2744 | (define* (make-gitolite #:optional (extra-inputs '()))
|
| 2745 | "Make a gitolite package object with EXTRA-INPUTS added to the binary
|
| 2746 | wrappers, to be used for optional gitolite extensions."
|
| 2747 | (package
|
| 2748 | (name "gitolite")
|
| 2749 | (version "3.6.14")
|
| 2750 | (source
|
| 2751 | (origin
|
| 2752 | (method git-fetch)
|
| 2753 | (uri (git-reference
|
| 2754 | (url "https://github.com/sitaramc/gitolite")
|
| 2755 | (commit (string-append "v" version))))
|
| 2756 | (file-name (git-file-name name version))
|
| 2757 | (sha256
|
| 2758 | (base32 "0qfl9qjs9nvgvl244rvidap8s202bq2gsmnxaylqrkj77az6l2h7"))))
|
| 2759 | (build-system gnu-build-system)
|
| 2760 | (arguments
|
| 2761 | (list #:tests? #f |
| 2762 | #:phases
|
| 2763 | #~(modify-phases %standard-phases
|
| 2764 | (delete 'configure)
|
| 2765 | (delete 'build)
|
| 2766 | (add-before 'install 'patch-scripts
|
| 2767 | (lambda* (#:key inputs #:allow-other-keys)
|
| 2768 | |
| 2769 | |
| 2770 | (substitute* (find-files ".")
|
| 2771 | ((" perl -")
|
| 2772 | (string-append
|
| 2773 | " " (search-input-file inputs "bin/perl") " -")))
|
| 2774 |
|
| 2775 | (substitute* (find-files "src/triggers" ".*")
|
| 2776 | ((" sed ")
|
| 2777 | (string-append
|
| 2778 | " " (search-input-file inputs "bin/sed") " ")))
|
| 2779 |
|
| 2780 | (substitute*
|
| 2781 | '("src/triggers/post-compile/update-gitweb-access-list"
|
| 2782 | "src/triggers/post-compile/ssh-authkeys-split"
|
| 2783 | "src/triggers/upstream")
|
| 2784 | ((" grep ")
|
| 2785 | (string-append
|
| 2786 | " " (search-input-file inputs "bin/grep") " ")))
|
| 2787 |
|
| 2788 | (substitute* "src/triggers/post-compile/ssh-authkeys"
|
| 2789 | (("\\$glshell \\$user")
|
| 2790 | (string-append
|
| 2791 | #$output "/bin/gitolite-shell $user")))))
|
| 2792 | (add-before 'install 'patch-source
|
| 2793 | (lambda* (#:key inputs #:allow-other-keys)
|
| 2794 | |
| 2795 | |
| 2796 | (substitute* "src/lib/Gitolite/Setup.pm"
|
| 2797 | (("\"cat ")
|
| 2798 | (string-append
|
| 2799 | "\"" (search-input-file inputs "bin/cat") " "))
|
| 2800 | (("\"ssh-keygen")
|
| 2801 | (string-append
|
| 2802 | "\"" (search-input-file inputs "bin/ssh-keygen"))))
|
| 2803 |
|
| 2804 | (substitute* '("src/lib/Gitolite/Hooks/PostUpdate.pm"
|
| 2805 | "src/lib/Gitolite/Hooks/Update.pm")
|
| 2806 | (("/usr/bin/perl")
|
| 2807 | (search-input-file inputs "bin/perl")))
|
| 2808 |
|
| 2809 | (substitute* "src/lib/Gitolite/Common.pm"
|
| 2810 | (("\"ssh-keygen")
|
| 2811 | (string-append
|
| 2812 | "\"" (search-input-file inputs "bin/ssh-keygen")))
|
| 2813 | (("\"logger\"")
|
| 2814 | (string-append
|
| 2815 | "\"" (search-input-file inputs "bin/logger") "\"")))
|
| 2816 |
|
| 2817 | (substitute* "src/lib/Gitolite/Cache.pm"
|
| 2818 | (("/usr/sbin/redis-server") "redis-server"))
|
| 2819 |
|
| 2820 | (substitute* "src/commands/svnserve"
|
| 2821 | (("/usr/bin/svnserve") "svnserve"))))
|
| 2822 | (replace 'install
|
| 2823 | (lambda* _
|
| 2824 | (let* ((sharedir (string-append #$output "/share/gitolite"))
|
| 2825 | (bindir (string-append #$output "/bin")))
|
| 2826 | (mkdir-p sharedir)
|
| 2827 | (mkdir-p bindir)
|
| 2828 | (invoke "./install" "-to" sharedir)
|
| 2829 | |
| 2830 | (for-each (lambda (script)
|
| 2831 | (symlink (string-append sharedir "/" script)
|
| 2832 | (string-append bindir "/" script)))
|
| 2833 | '("gitolite" "gitolite-shell")))))
|
| 2834 | (add-after 'install 'wrap-scripts
|
| 2835 | (lambda* (#:key inputs #:allow-other-keys)
|
| 2836 | (for-each (lambda (file-name)
|
| 2837 | (wrap-program (string-append #$output file-name)
|
| 2838 | `("PATH" ":" prefix
|
| 2839 | ,(append
|
| 2840 | (map (lambda (command)
|
| 2841 | (dirname
|
| 2842 | (search-input-file
|
| 2843 | inputs
|
| 2844 | (string-append "bin/" command))))
|
| 2845 | '("chmod" |
| 2846 | "find"
|
| 2847 | "git"))
|
| 2848 | (map (lambda (dir)
|
| 2849 | (string-append dir "/bin"))
|
| 2850 | (list #$output
|
| 2851 | #$@extra-inputs))))))
|
| 2852 | '("/bin/gitolite" "/bin/gitolite-shell")))))))
|
| 2853 | (inputs
|
| 2854 | (append (list bash-minimal coreutils findutils git inetutils openssh perl)
|
| 2855 | extra-inputs))
|
| 2856 | (home-page "https://gitolite.com")
|
| 2857 | (synopsis "Git access control layer")
|
| 2858 | (description
|
| 2859 | "Gitolite is an access control layer on top of Git, providing fine access
|
| 2860 | control to Git repositories.")
|
| 2861 | (license license:gpl2)))
|
| 2862 |
|
| 2863 | (define-public gitolite (make-gitolite))
|
| 2864 |
|
| 2865 | (define-public gitile
|
| 2866 | |
| 2867 | (let ((commit "1feb300c0d3069b1180e62c5e989ac0ed353a248"))
|
| 2868 | (package
|
| 2869 | (name "gitile")
|
| 2870 | (version (string-append "0.1.4-" (string-take commit 7)))
|
| 2871 | (source
|
| 2872 | (origin
|
| 2873 | (method git-fetch)
|
| 2874 | (uri (git-reference
|
| 2875 | (url "https://git.lepiller.eu/git/gitile")
|
| 2876 | (commit commit)))
|
| 2877 | (file-name (git-file-name name version))
|
| 2878 | (sha256
|
| 2879 | (base32 "1yhqn54hx7p7sc3vc85vsx7315bxs313bv3i9lzx8q0zpzc0x7xh"))))
|
| 2880 | (build-system gnu-build-system)
|
| 2881 | (arguments
|
| 2882 | `(#:imported-modules ((guix build guile-build-system)
|
| 2883 | ,@%default-gnu-imported-modules)
|
| 2884 | #:make-flags (list "GUILE_AUTO_COMPILE=0")
|
| 2885 | #:phases
|
| 2886 | (modify-phases %standard-phases
|
| 2887 | (replace 'bootstrap
|
| 2888 | (lambda _
|
| 2889 | |
| 2890 | |
| 2891 | (invoke "autoreconf" "-vfi")))
|
| 2892 | (add-after 'install 'wrap-program
|
| 2893 | (lambda* (#:key inputs outputs #:allow-other-keys)
|
| 2894 | (use-modules (guix build guile-build-system))
|
| 2895 | |
| 2896 | (let* ((out (assoc-ref outputs "out"))
|
| 2897 | (commonmark (assoc-ref inputs "guile-commonmark"))
|
| 2898 | (git (assoc-ref inputs "guile-git"))
|
| 2899 | (bytes (assoc-ref inputs "guile-bytestructures"))
|
| 2900 | (fibers (assoc-ref inputs "guile-fibers"))
|
| 2901 | (gcrypt (assoc-ref inputs "guile-gcrypt"))
|
| 2902 | (syntax-highlight (assoc-ref inputs "guile-syntax-highlight"))
|
| 2903 | (deps (list out commonmark git bytes fibers gcrypt
|
| 2904 | syntax-highlight))
|
| 2905 | (guile (assoc-ref inputs "guile"))
|
| 2906 | (effective (target-guile-effective-version))
|
| 2907 | (mods (string-drop-right |
| 2908 | (string-join deps
|
| 2909 | (string-append "/share/guile/site/"
|
| 2910 | effective ":")
|
| 2911 | 'suffix)
|
| 2912 | 1))
|
| 2913 | (objs (string-drop-right
|
| 2914 | (string-join deps
|
| 2915 | (string-append "/lib/guile/" effective
|
| 2916 | "/site-ccache:")
|
| 2917 | 'suffix)
|
| 2918 | 1)))
|
| 2919 | (wrap-program (string-append out "/bin/gitile")
|
| 2920 | `("GUILE_LOAD_PATH" ":" prefix (,mods))
|
| 2921 | `("GUILE_LOAD_COMPILED_PATH" ":" prefix (,objs)))))))))
|
| 2922 | (native-inputs
|
| 2923 | (list autoconf automake guile-3.0 pkg-config))
|
| 2924 | (inputs
|
| 2925 | (list bash-minimal |
| 2926 | guile-3.0
|
| 2927 | guile-commonmark
|
| 2928 | guile-fibers
|
| 2929 | guile-gcrypt
|
| 2930 | guile-git
|
| 2931 | guile-syntax-highlight
|
| 2932 | guile-gnutls))
|
| 2933 | (home-page "https://git.lepiller.eu/gitile")
|
| 2934 | (synopsis "Simple Git forge written in Guile")
|
| 2935 | (description "Gitile is a Git forge written in Guile that lets you
|
| 2936 | visualize your public Git repositories on a web interface.")
|
| 2937 | (license license:agpl3+))))
|
| 2938 |
|
| 2939 | (define-public pre-commit
|
| 2940 | (package
|
| 2941 | (name "pre-commit") |
| 2942 | (version "4.6.2")
|
| 2943 | (source
|
| 2944 | (origin
|
| 2945 | (method git-fetch) |
| 2946 | (uri (git-reference
|
| 2947 | (url "https://github.com/pre-commit/pre-commit")
|
| 2948 | (commit (string-append "v" version))))
|
| 2949 | (file-name (git-file-name name version))
|
| 2950 | (sha256
|
| 2951 | (base32 "1ia6v1xjqzpanhn5p6fwrr4f6gankpp57fqcv90pkzvkspshs8b8"))
|
| 2952 | (modules '((guix build utils)))
|
| 2953 | (snippet '(substitute* "setup.cfg"
|
| 2954 | (("virtualenv>=20.10.0") |
| 2955 | "virtualenv>=20.0.8")))))
|
| 2956 | (build-system pyproject-build-system)
|
| 2957 | (arguments
|
| 2958 | (list
|
| 2959 | #:test-flags
|
| 2960 | #~(append
|
| 2961 | |
| 2962 | (list "--ignore=tests/languages")
|
| 2963 | |
| 2964 | (map (lambda (test)
|
| 2965 | (string-append "--deselect=tests/repository_test.py::"
|
| 2966 | test))
|
| 2967 | (list "test_additional_dependencies_roll_forward"
|
| 2968 | "test_control_c_control_c_on_install"
|
| 2969 | "test_invalidated_virtualenv"
|
| 2970 | "test_local_python_repo"
|
| 2971 | "test_repository_state_compatibility"
|
| 2972 | "test_reinstall"
|
| 2973 | "test_really_long_file_paths"))
|
| 2974 | |
| 2975 | (map (lambda (test)
|
| 2976 | (string-append "--deselect=tests/commands/"
|
| 2977 | "install_uninstall_test.py::" test))
|
| 2978 | (list "test_install_existing_hooks_no_overwrite"
|
| 2979 | "test_uninstall_restores_legacy_hooks"
|
| 2980 | "test_installed_from_venv")))
|
| 2981 | #:phases
|
| 2982 | #~(modify-phases %standard-phases
|
| 2983 | (add-before 'check 'prepare-check-env
|
| 2984 | (lambda _
|
| 2985 | |
| 2986 | (setenv "HOME" "/tmp")
|
| 2987 | |
| 2988 | (setenv "GIT_AUTHOR_NAME" "Your Name")
|
| 2989 | (setenv "GIT_COMMITTER_NAME" "Your Name")
|
| 2990 | (setenv "GIT_AUTHOR_EMAIL" "[email protected]")
|
| 2991 | (setenv "GIT_COMMITTER_EMAIL" "[email protected]")
|
| 2992 | |
| 2993 | |
| 2994 | |
| 2995 | |
| 2996 | (invoke "git" "init")
|
| 2997 | (invoke "git" "config" "--global" "user.name" "Your Name")
|
| 2998 | (invoke "git" "config" "--global" "user.email" "[email protected]"))))))
|
| 2999 | (native-inputs
|
| 3000 | (list git-minimal/pinned
|
| 3001 | python-distlib
|
| 3002 | python-pytest
|
| 3003 | python-pytest-env
|
| 3004 | python-re-assert
|
| 3005 | python-setuptools
|
| 3006 | python-wheel
|
| 3007 | which))
|
| 3008 | |
| 3009 | (propagated-inputs
|
| 3010 | (list python-cfgv
|
| 3011 | python-identify
|
| 3012 | python-nodeenv
|
| 3013 | python-pyyaml
|
| 3014 | python-virtualenv))
|
| 3015 | (home-page "https://pre-commit.com/")
|
| 3016 | (synopsis "Framework for managing and maintaining pre-commit hooks")
|
| 3017 | (description
|
| 3018 | "Pre-commit is a multi-language package manager for pre-commit hooks. You
|
| 3019 | specify a list of hooks you want and pre-commit manages the installation and
|
| 3020 | execution of any hook written in any language before every commit.")
|
| 3021 | (license license:expat)))
|
| 3022 |
|
| 3023 | (define-public mercurial
|
| 3024 | (package
|
| 3025 | (name "mercurial")
|
| 3026 | (version "7.1")
|
| 3027 | (source
|
| 3028 | (origin
|
| 3029 | (method url-fetch)
|
| 3030 | (uri (string-append "https://www.mercurial-scm.org/"
|
| 3031 | "release/mercurial-" version ".tar.gz"))
|
| 3032 | (patches (search-patches "mercurial-hg-extension-path.patch"))
|
| 3033 | (sha256
|
| 3034 | (base32 "1jz54akdnsp5frlbsr2xg71kbp2919v61gkkx7c7bi1q7k421ng8"))))
|
| 3035 | (build-system gnu-build-system)
|
| 3036 | (arguments
|
| 3037 | (list
|
| 3038 | #:imported-modules %pyproject-build-system-modules
|
| 3039 | #:modules '((guix build gnu-build-system)
|
| 3040 | ((guix build pyproject-build-system) #:prefix py:)
|
| 3041 | (guix build utils))
|
| 3042 | #:make-flags #~(list (string-append "PREFIX=" #$output))
|
| 3043 | #:phases
|
| 3044 | #~(modify-phases %standard-phases
|
| 3045 | (delete 'configure)
|
| 3046 | (add-after 'unpack 'patch-tests
|
| 3047 | (lambda* (#:key inputs #:allow-other-keys)
|
| 3048 | (substitute* (find-files "tests" "\\.(t|py)$")
|
| 3049 | (("/bin/sh")
|
| 3050 | (search-input-file inputs "bin/sh"))
|
| 3051 | (("/usr/bin/env")
|
| 3052 | (search-input-file inputs "bin/env")))))
|
| 3053 | (add-before 'check 'configure-check
|
| 3054 | (lambda* (#:key tests? #:allow-other-keys)
|
| 3055 | (with-directory-excursion "tests"
|
| 3056 | (substitute* "run-tests.py"
|
| 3057 | |
| 3058 | (("b\"install\", b\"\\.\"")
|
| 3059 | "b\"install\", b\"--no-build-isolation\", b\".\"")
|
| 3060 | |
| 3061 | (("\"PYTHONPATH\"")
|
| 3062 | "\"GUIX_PYTHONPATH\"")))))
|
| 3063 | (add-before 'configure-check 'add-install-to-pythonpath
|
| 3064 | (assoc-ref py:%standard-phases 'add-install-to-pythonpath))
|
| 3065 | (add-after 'install 'wrap
|
| 3066 | (assoc-ref py:%standard-phases 'wrap))
|
| 3067 | (delete 'check)
|
| 3068 | (add-after 'wrap 'check
|
| 3069 | (lambda* (#:key tests? #:allow-other-keys)
|
| 3070 | (with-directory-excursion "tests"
|
| 3071 | |
| 3072 | (for-each delete-file
|
| 3073 | '( |
| 3074 | |
| 3075 | |
| 3076 | "test-hghave.t"
|
| 3077 |
|
| 3078 | |
| 3079 | |
| 3080 | |
| 3081 | "test-revlog-mmapindex.t"
|
| 3082 |
|
| 3083 | |
| 3084 | |
| 3085 | |
| 3086 | |
| 3087 | "test-run-tests.t"
|
| 3088 |
|
| 3089 | |
| 3090 | |
| 3091 | "test-nointerrupt.t"
|
| 3092 | "test-transaction-rollback-on-sigpipe.t"
|
| 3093 |
|
| 3094 | |
| 3095 | "test-commandserver.t"
|
| 3096 |
|
| 3097 | |
| 3098 | |
| 3099 | |
| 3100 | "test-demandimport.py"
|
| 3101 | "test-patchbomb-tls.t"
|
| 3102 | |
| 3103 | |
| 3104 | "test-http-bad-server.t"
|
| 3105 |
|
| 3106 | |
| 3107 | |
| 3108 | "test-doctest.py"
|
| 3109 |
|
| 3110 | |
| 3111 | |
| 3112 | "test-hgwebdir.t"
|
| 3113 | "test-http-branchmap.t"
|
| 3114 | "test-pull-bundle.t"
|
| 3115 | "test-push-http.t"
|
| 3116 | "test-serve.t"
|
| 3117 | "test-subrepo-deep-nested-change.t"
|
| 3118 | "test-subrepo-recursion.t"
|
| 3119 | |
| 3120 | "test-convert-darcs.t"))
|
| 3121 | (when tests?
|
| 3122 | (invoke "./run-tests.py"
|
| 3123 | |
| 3124 | (string-append "-j" (number->string
|
| 3125 | (parallel-job-count)))
|
| 3126 | |
| 3127 | |
| 3128 | "--timeout" "86400"
|
| 3129 | "--slowtimeout" "86400"
|
| 3130 | |
| 3131 | |
| 3132 | "-v")))))
|
| 3133 | (add-after 'check 'python-sanity-check
|
| 3134 | (lambda* (#:key inputs outputs #:allow-other-keys)
|
| 3135 | ((assoc-ref py:%standard-phases 'sanity-check)
|
| 3136 | #:inputs `(("sanity-check.py" . ,#$(default-sanity-check.py))
|
| 3137 | ,@inputs)
|
| 3138 | #:outputs outputs))))))
|
| 3139 | (native-inputs
|
| 3140 | (list python-docutils
|
| 3141 | |
| 3142 | python-setuptools
|
| 3143 | python-setuptools-scm
|
| 3144 | unzip
|
| 3145 | which))
|
| 3146 | (inputs
|
| 3147 | (list python-wrapper
|
| 3148 | python-roman))
|
| 3149 | |
| 3150 | (native-search-paths
|
| 3151 | (list (search-path-specification
|
| 3152 | (variable "HGEXTENSIONPATH")
|
| 3153 | (files (list
|
| 3154 | |
| 3155 | |
| 3156 | "lib/python3.12/site-packages/hgext3rd")))))
|
| 3157 | (home-page "https://www.mercurial-scm.org/")
|
| 3158 | (synopsis "Decentralized version control system")
|
| 3159 | (description
|
| 3160 | "Mercurial is a free, distributed source control management tool. It
|
| 3161 | efficiently handles projects of any size and offers an easy and intuitive
|
| 3162 | interface.")
|
| 3163 | (license license:gpl2+)))
|
| 3164 |
|
| 3165 | (define-public python-hg-evolve
|
| 3166 | (package
|
| 3167 | (name "python-hg-evolve")
|
| 3168 | (version "11.1.3")
|
| 3169 | (source
|
| 3170 | (origin
|
| 3171 | (method hg-fetch)
|
| 3172 | (uri (hg-reference
|
| 3173 | (url "https://www.mercurial-scm.org/repo/evolve")
|
| 3174 | (changeset version)))
|
| 3175 | (file-name (hg-file-name name version))
|
| 3176 | (sha256
|
| 3177 | (base32
|
| 3178 | "09rq3hgbb6qjws0kymnh8lbglsc5yjby3b2bc0savs2agf88j83z"))))
|
| 3179 | (build-system pyproject-build-system)
|
| 3180 | (arguments
|
| 3181 | |
| 3182 | (list #:tests? #f))
|
| 3183 | (native-inputs (list python-setuptools))
|
| 3184 | (propagated-inputs (list mercurial))
|
| 3185 | (home-page "https://www.mercurial-scm.org/doc/evolution/")
|
| 3186 | (synopsis "Flexible evolution of Mercurial history")
|
| 3187 | (description "Evolve is a Mercurial extension for faster and safer mutable
|
| 3188 | history. It implements the changeset evolution concept for Mercurial.")
|
| 3189 | (license license:gpl2)))
|
| 3190 |
|
| 3191 | (define-public hg-commitsigs
|
| 3192 | |
| 3193 | (let ((changeset "b53eb6862bff")
|
| 3194 | (revision "0"))
|
| 3195 | (package
|
| 3196 | (name "hg-commitsigs")
|
| 3197 | (version (git-version "0.1.0" revision changeset))
|
| 3198 | (source (origin
|
| 3199 | (method hg-fetch)
|
| 3200 | (uri (hg-reference
|
| 3201 | (url "https://foss.heptapod.net/mercurial/commitsigs")
|
| 3202 | (changeset changeset)))
|
| 3203 | (file-name (git-file-name name version))
|
| 3204 | (sha256
|
| 3205 | (base32
|
| 3206 | "059gm66q06m6ayl4brsc517zkw3ahmz249b6xm1m32ac5y24wb9x"))))
|
| 3207 | (build-system copy-build-system)
|
| 3208 | (arguments
|
| 3209 | (list
|
| 3210 | #:imported-modules (append %pyproject-build-system-modules
|
| 3211 | %copy-build-system-modules)
|
| 3212 | #:modules `((guix build pyproject-build-system)
|
| 3213 | (guix build copy-build-system)
|
| 3214 | (guix build utils))
|
| 3215 | #:install-plan
|
| 3216 | #~`(("commitsigs.py"
|
| 3217 | ,(string-append "lib/python"
|
| 3218 | (python-version
|
| 3219 | #$(this-package-native-input "python"))
|
| 3220 | "/site-packages/hgext3rd/commitsigs.py")))
|
| 3221 | #:phases
|
| 3222 | #~(modify-phases %standard-phases
|
| 3223 | (add-after 'unpack 'patch-paths
|
| 3224 | (lambda _
|
| 3225 | (substitute* "commitsigs.py"
|
| 3226 | (("b'(gpg|openssl)'," _ bin)
|
| 3227 | (format #f "b'~a'," (which bin)))))))))
|
| 3228 | (native-inputs
|
| 3229 | (list python))
|
| 3230 | (inputs
|
| 3231 | (list gnupg openssl))
|
| 3232 | (home-page "https://foss.heptapod.net/mercurial/commitsigs")
|
| 3233 | (synopsis "Automatic signing of changeset hashes")
|
| 3234 | (description "This package provides a Mercurial extension for signing
|
| 3235 | the changeset hash of commits. The signure is embedded directly in the
|
| 3236 | changeset itself; there won't be any extra commits. Either GnuPG or OpenSSL
|
| 3237 | can be used for signing.")
|
| 3238 | (license license:gpl2)))) |
| 3239 |
|
| 3240 | |
| 3241 | (define-public heatwave
|
| 3242 | (package
|
| 3243 | (name "heatwave")
|
| 3244 | (version "1.2.1")
|
| 3245 | (source
|
| 3246 | (origin
|
| 3247 | (method url-fetch)
|
| 3248 | (uri (pypi-uri "heatwave" version))
|
| 3249 | (sha256
|
| 3250 | (base32 "1zzwmb9hvbyswzjgap02rrq8p44hb6xlzk1wd8w01mh2vva0xlx7"))))
|
| 3251 | (build-system pyproject-build-system)
|
| 3252 | (arguments
|
| 3253 | (list #:tests? #f)) |
| 3254 | (native-inputs
|
| 3255 | (list python-setuptools))
|
| 3256 | (propagated-inputs
|
| 3257 | (list python-click
|
| 3258 | python-gitpython
|
| 3259 | python-monthdelta))
|
| 3260 | (home-page "https://github.com/james-stoup/heatwave")
|
| 3261 | (synopsis "Heat map visualization of a git repository")
|
| 3262 | (description
|
| 3263 | "This package provides a way of visualizing a heat map of a git repo.")
|
| 3264 | (license license:gpl3)))
|
| 3265 |
|
| 3266 | (define-public neon
|
| 3267 | (package
|
| 3268 | (name "neon")
|
| 3269 | (version "0.32.2")
|
| 3270 | (source (origin
|
| 3271 | (method url-fetch)
|
| 3272 | (uri (string-append "https://notroj.github.io/neon/neon-"
|
| 3273 | version ".tar.gz"))
|
| 3274 | (sha256
|
| 3275 | (base32
|
| 3276 | "11mj5zpp317dmds874wfwcpgij9i3scaahdi1xfzr5b2ii36crcq"))))
|
| 3277 | (build-system gnu-build-system)
|
| 3278 | (native-inputs
|
| 3279 | (list perl pkg-config))
|
| 3280 | (inputs
|
| 3281 | (list libxml2 openssl zlib))
|
| 3282 | (arguments
|
| 3283 | `( |
| 3284 | |
| 3285 | #:tests? #f
|
| 3286 | #:configure-flags '("--enable-shared"
|
| 3287 | "--disable-static"
|
| 3288 | |
| 3289 | |
| 3290 | |
| 3291 | "--with-ssl=openssl")))
|
| 3292 | (home-page "https://notroj.github.io/neon/")
|
| 3293 | (synopsis "HTTP and WebDAV client library")
|
| 3294 | (description
|
| 3295 | "Neon is an HTTP and WebDAV client library, with a C interface and the
|
| 3296 | following features:
|
| 3297 | @enumerate
|
| 3298 | @item High-level wrappers for common HTTP and WebDAV operations (GET, MOVE,
|
| 3299 | DELETE, etc.);
|
| 3300 | @item low-level interface to the HTTP request/response engine, allowing the use
|
| 3301 | of arbitrary HTTP methods, headers, etc.;
|
| 3302 | @item authentication support including Basic and Digest support, along with
|
| 3303 | GSSAPI-based Negotiate on Unix, and SSPI-based Negotiate/NTLM on Win32;
|
| 3304 | @item SSL/TLS support using OpenSSL or GnuTLS, exposing an abstraction layer for
|
| 3305 | verifying server certificates, handling client certificates, and examining
|
| 3306 | certificate properties, smartcard-based client certificates are also
|
| 3307 | supported via a PKCS#11 wrapper interface;
|
| 3308 | @item abstract interface to parsing XML using libxml2 or expat, and wrappers for
|
| 3309 | simplifying handling XML HTTP response bodies;
|
| 3310 | @item WebDAV metadata support, wrappers for PROPFIND and PROPPATCH to simplify
|
| 3311 | property manipulation.
|
| 3312 | @end enumerate\n")
|
| 3313 | (license license:gpl2+))) |
| 3314 |
|
| 3315 | (define-public subversion
|
| 3316 | (package
|
| 3317 | (name "subversion")
|
| 3318 | (version "1.14.5")
|
| 3319 | (source (origin
|
| 3320 | (method url-fetch)
|
| 3321 | (uri (string-append "mirror://apache/subversion/"
|
| 3322 | "subversion-" version ".tar.bz2"))
|
| 3323 | (sha256
|
| 3324 | (base32
|
| 3325 | "18a4avism0a7b1siikkm6v2snhanlmqqzl4p8hspp2vbfvkjk2p7"))))
|
| 3326 | (build-system gnu-build-system)
|
| 3327 | (arguments
|
| 3328 | (list
|
| 3329 | |
| 3330 | |
| 3331 | |
| 3332 | #:parallel-tests? #f
|
| 3333 | #:configure-flags #~(list "--enable-static=no")
|
| 3334 | #:phases
|
| 3335 | #~(modify-phases %standard-phases
|
| 3336 | (add-after 'configure 'patch-libtool-wrapper-ls
|
| 3337 | (lambda* (#:key inputs #:allow-other-keys)
|
| 3338 | |
| 3339 | |
| 3340 | |
| 3341 | |
| 3342 | |
| 3343 | (substitute* "libtool"
|
| 3344 | (("\\\\`ls")
|
| 3345 | (string-append "\\`" (search-input-file inputs "bin/ls"))))))
|
| 3346 | (add-before 'build 'patch-test-sh
|
| 3347 | (lambda _
|
| 3348 | (substitute* "subversion/tests/libsvn_repos/repos-test.c"
|
| 3349 | (("#!/bin/sh") (string-append "#!" (which "sh"))))))
|
| 3350 | (add-before 'check 'set-PARALLEL
|
| 3351 | (lambda* (#:key parallel-tests? #:allow-other-keys)
|
| 3352 | (if parallel-tests?
|
| 3353 | (setenv "PARALLEL" (number->string (parallel-job-count)))
|
| 3354 | (simple-format #t "parallel-tests? are disabled\n"))))
|
| 3355 | (add-after 'install 'install-perl-bindings
|
| 3356 | (lambda _
|
| 3357 | |
| 3358 | (invoke "make" "swig-pl-lib")
|
| 3359 | |
| 3360 | |
| 3361 | (invoke "make" "install-swig-pl-lib")
|
| 3362 |
|
| 3363 | |
| 3364 | (with-directory-excursion "subversion/bindings/swig/perl/native"
|
| 3365 | (invoke "perl" "Makefile.PL" "NO_PERLLOCAL=1"
|
| 3366 | (string-append "PREFIX=" #$output))
|
| 3367 | (invoke "make" "install"
|
| 3368 | (string-append "OTHERLDFLAGS=-Wl,-rpath="
|
| 3369 | #$output "/lib"))))))))
|
| 3370 | (native-inputs
|
| 3371 | (list pkg-config
|
| 3372 | |
| 3373 | swig-4.0))
|
| 3374 | (inputs
|
| 3375 | (list apr
|
| 3376 | apr-util
|
| 3377 | lz4
|
| 3378 | perl
|
| 3379 | python-wrapper
|
| 3380 | serf
|
| 3381 | sqlite
|
| 3382 | utf8proc
|
| 3383 | zlib))
|
| 3384 | (home-page "https://subversion.apache.org/")
|
| 3385 | (synopsis "Revision control system")
|
| 3386 | (description
|
| 3387 | "@dfn{Subversion} (svn) exists to be recognized and adopted as a
|
| 3388 | centralized version control system characterized by its
|
| 3389 | reliability as a safe haven for valuable data; the simplicity of its model and
|
| 3390 | usage; and its ability to support the needs of a wide variety of users and
|
| 3391 | projects, from individuals to large-scale enterprise operations.")
|
| 3392 | (license license:asl2.0)))
|
| 3393 |
|
| 3394 | (define-public rcs
|
| 3395 | (package
|
| 3396 | (name "rcs")
|
| 3397 | (version "5.10.1")
|
| 3398 | (source (origin
|
| 3399 | (method url-fetch)
|
| 3400 | (uri (string-append "mirror://gnu/rcs/rcs-"
|
| 3401 | version ".tar.lz"))
|
| 3402 | (sha256
|
| 3403 | (base32
|
| 3404 | "1iac4d1dhsfy5zb0n3p605pihdq702v06r4g8vi8b2saf88gxpa3"))))
|
| 3405 | (build-system gnu-build-system)
|
| 3406 | (arguments `(#:phases
|
| 3407 | (modify-phases %standard-phases
|
| 3408 | (add-after 'install 'install-rcsfreeze
|
| 3409 | (lambda* (#:key outputs #:allow-other-keys)
|
| 3410 | (let* ((out (assoc-ref outputs "out"))
|
| 3411 | (bin (string-append out "/bin"))
|
| 3412 | (man1 (string-append out "/share/man/man1")))
|
| 3413 | (chmod "src/rcsfreeze" #o755)
|
| 3414 | (install-file "src/rcsfreeze" bin)
|
| 3415 | (install-file "man/rcsfreeze.1" man1)))))))
|
| 3416 | (native-inputs (list ed lzip))
|
| 3417 | (home-page "https://www.gnu.org/software/rcs/")
|
| 3418 | (synopsis "Per-file local revision control system")
|
| 3419 | (description
|
| 3420 | "RCS is the original Revision Control System. It works on a
|
| 3421 | file-by-file basis, in contrast to subsequent version control systems such as
|
| 3422 | CVS, Subversion, and Git. This can make it suitable for system
|
| 3423 | administration files, for example, which are often inherently local to one
|
| 3424 | machine.")
|
| 3425 | (license license:gpl3+)))
|
| 3426 |
|
| 3427 | (define-public rcs-blame
|
| 3428 | (package
|
| 3429 | (name "rcs-blame")
|
| 3430 | (version "1.3.1-20210207")
|
| 3431 | (source (origin
|
| 3432 | (method url-fetch)
|
| 3433 | (uri (string-append
|
| 3434 | "https://invisible-mirror.net/archives/rcs-blame/blame-"
|
| 3435 | version ".tgz"))
|
| 3436 | (sha256
|
| 3437 | (base32
|
| 3438 | "1j0brsvdx3hlbwchddafh8r2xmxv5vg4ahpd68v4bb9xhcq6pcih"))))
|
| 3439 | (build-system gnu-build-system)
|
| 3440 | (home-page "https://invisible-island.net/rcs-blame/rcs-blame.html")
|
| 3441 | (synopsis "Display the last modification for each line in an RCS file")
|
| 3442 | (description
|
| 3443 | "@code{blame} outputs an annotated revision from each RCS file. An
|
| 3444 | annotated RCS file describes the revision and date in which each line was
|
| 3445 | added to the file, and the author of each line.")
|
| 3446 | (license license:gpl2+)))
|
| 3447 |
|
| 3448 | (define-public rcshist
|
| 3449 | (package
|
| 3450 | (name "rcshist")
|
| 3451 | (version "1.04-20190106")
|
| 3452 | (source (origin
|
| 3453 | (method url-fetch)
|
| 3454 | (uri (string-append
|
| 3455 | "https://invisible-mirror.net/archives/rcshist/rcshist-"
|
| 3456 | version ".tgz"))
|
| 3457 | (sha256
|
| 3458 | (base32
|
| 3459 | "01ab3xwgm934lxr8bm758am3vxwx4hxx7cc9prbgqj5nh30vdg1n"))))
|
| 3460 | (build-system gnu-build-system)
|
| 3461 | (home-page "https://invisible-island.net/rcshist/rcshist.html")
|
| 3462 | (synopsis "Display RCS change history")
|
| 3463 | (description
|
| 3464 | "The @code{rcshist} utility displays the complete revision history of a
|
| 3465 | set of RCS files including log messages and patches. It can also display the
|
| 3466 | patch associated with a particular revision of an RCS file.")
|
| 3467 | (license (list license:bsd-2
|
| 3468 | license:bsd-3)))) |
| 3469 |
|
| 3470 | (define-public cvs
|
| 3471 | (package
|
| 3472 | (name "cvs")
|
| 3473 | (version "1.12.13")
|
| 3474 | (source (origin
|
| 3475 | (method url-fetch)
|
| 3476 | (uri (string-append
|
| 3477 | "https://ftp.gnu.org/non-gnu/cvs/source/feature/"
|
| 3478 | version "/cvs-" version ".tar.bz2"))
|
| 3479 | (patches (search-patches "cvs-CVE-2017-12836.patch"))
|
| 3480 | (sha256
|
| 3481 | (base32
|
| 3482 | "0pjir8cwn0087mxszzbsi1gyfc6373vif96cw4q3m1x6p49kd1bq"))))
|
| 3483 | (build-system gnu-build-system)
|
| 3484 | (arguments
|
| 3485 | |
| 3486 | (list
|
| 3487 | #:tests? #f
|
| 3488 | #:configure-flags
|
| 3489 | #~(list
|
| 3490 | "--with-external-zlib"
|
| 3491 | "CFLAGS=-g -O2 -Wno-error=implicit-function-declaration"
|
| 3492 | #$@(if (%current-target-system)
|
| 3493 | '("cvs_cv_func_printf_ptr=yes"
|
| 3494 | (string-append "EDITOR="
|
| 3495 | (search-input-file %build-inputs
|
| 3496 | "bin/nano")))
|
| 3497 | '()))
|
| 3498 | #:phases
|
| 3499 | #~(modify-phases %standard-phases
|
| 3500 | (add-after 'unpack 'fix-include
|
| 3501 | (lambda _
|
| 3502 | (substitute* "lib/sighandle.c"
|
| 3503 | (("#ifdef STDC_HEADERS" all)
|
| 3504 | (string-append "#define STDC_HEADERS 1\n" all))))))))
|
| 3505 | (inputs (list zlib nano)) |
| 3506 | (home-page "https://cvs.nongnu.org")
|
| 3507 | (synopsis "Historical centralized version control system")
|
| 3508 | (description
|
| 3509 | "CVS is a version control system, an important component of Source
|
| 3510 | Configuration Management (SCM). Using it, you can record the history of
|
| 3511 | sources files, and documents. It fills a similar role to the free software
|
| 3512 | RCS, PRCS, and Aegis packages.")
|
| 3513 | (properties '((lint-hidden-cpe-vendors . ("jenkins"))))
|
| 3514 | (license license:gpl1+)))
|
| 3515 |
|
| 3516 | (define-public cvs-fast-export
|
| 3517 | (package
|
| 3518 | (name "cvs-fast-export")
|
| 3519 | (version "1.68")
|
| 3520 | (source
|
| 3521 | (origin
|
| 3522 | (method git-fetch)
|
| 3523 | (uri (git-reference
|
| 3524 | (url "https://gitlab.com/esr/cvs-fast-export")
|
| 3525 | (commit version)))
|
| 3526 | (sha256
|
| 3527 | (base32
|
| 3528 | "17225lamdw8rf2yk76rhx8zxhzqjhv88ig3ng21qgvxbhl52wnzm"))))
|
| 3529 | (build-system gnu-build-system)
|
| 3530 | (arguments
|
| 3531 | (list
|
| 3532 | |
| 3533 | #:tests? #f
|
| 3534 | #:phases
|
| 3535 | #~(modify-phases %standard-phases
|
| 3536 | (delete 'configure))
|
| 3537 | #:make-flags
|
| 3538 | #~(list (string-append "CC=" #$(cc-for-target))
|
| 3539 | (string-append "CFLAGS+=-Wno-error=calloc-transposed-args")
|
| 3540 | (string-append "prefix?=" #$output))))
|
| 3541 | (inputs
|
| 3542 | (list git python-wrapper))
|
| 3543 | (native-inputs
|
| 3544 | (list ruby-asciidoctor/minimal
|
| 3545 | bison
|
| 3546 | flex))
|
| 3547 | (home-page "http://www.catb.org/esr/cvs-fast-export/")
|
| 3548 | (synopsis "Export an RCS or CVS history as a fast-import stream")
|
| 3549 | (description
|
| 3550 | "This program analyzes a collection of RCS files in a CVS repository (or
|
| 3551 | outside of one) and, when possible, emits an equivalent history in the form of
|
| 3552 | a fast-import stream. Not all possible histories can be rendered this way;
|
| 3553 | the program tries to emit useful warnings when it can't.
|
| 3554 |
|
| 3555 | The program can also produce a visualization of the resulting commit
|
| 3556 | @acronym{DAG, directed acyclic graph} in the input format of
|
| 3557 | @uref{http://www.graphviz.org, Graphviz}. The package also includes
|
| 3558 | @command{cvssync}, a tool for mirroring masters from remote CVS hosts.")
|
| 3559 | (license license:gpl2+)))
|
| 3560 |
|
| 3561 | (define-public vc-dwim
|
| 3562 | (package
|
| 3563 | (name "vc-dwim")
|
| 3564 | (version "1.10")
|
| 3565 | (source (origin
|
| 3566 | (method url-fetch)
|
| 3567 | (uri (string-append "mirror://gnu/vc-dwim/vc-dwim-"
|
| 3568 | version ".tar.xz"))
|
| 3569 | (sha256
|
| 3570 | (base32
|
| 3571 | "0am6axxdvkm2vwgg0gjrd930yv4dlsdbf0rdv0zh5bhy1ir64rph"))))
|
| 3572 | (build-system gnu-build-system)
|
| 3573 | (inputs (list perl))
|
| 3574 | (native-inputs
|
| 3575 | (list emacs-minimal |
| 3576 | inetutils)) |
| 3577 | (home-page "https://www.gnu.org/software/vc-dwim/")
|
| 3578 | (synopsis "Version-control-agnostic ChangeLog diff and commit tool")
|
| 3579 | (description
|
| 3580 | "The vc-dwim package contains two tools, \"vc-dwim\" and \"vc-chlog\".
|
| 3581 | vc-dwim is a tool that simplifies the task of maintaining a ChangeLog and
|
| 3582 | using version control at the same time, for example by printing a reminder
|
| 3583 | when a file change has been described in the ChangeLog but the file has not
|
| 3584 | been added to the VC. vc-chlog scans changed files and generates
|
| 3585 | standards-compliant ChangeLog entries based on the changes that it detects.")
|
| 3586 | (license license:gpl3+)))
|
| 3587 |
|
| 3588 | (define-public diffstat
|
| 3589 | (package
|
| 3590 | (name "diffstat")
|
| 3591 | (version "1.65")
|
| 3592 | (source (origin
|
| 3593 | (method url-fetch)
|
| 3594 | (uri
|
| 3595 | (list
|
| 3596 | (string-append "ftp://invisible-island.net/diffstat/"
|
| 3597 | "diffstat-" version ".tgz")
|
| 3598 | (string-append "http://invisible-mirror.net/archives/diffstat/"
|
| 3599 | "diffstat-" version ".tgz")))
|
| 3600 | (sha256
|
| 3601 | (base32
|
| 3602 | "12m2aysq6syw83bn4gqhpm284a2ran8w6m8pja2wvsvdj8j79wlc"))))
|
| 3603 | (build-system gnu-build-system)
|
| 3604 | (home-page "https://invisible-island.net/diffstat/")
|
| 3605 | (synopsis "Make histograms from the output of @command{diff}")
|
| 3606 | (description
|
| 3607 | "Diffstat reads the output of @command{diff} and displays a histogram of
|
| 3608 | the insertions, deletions, and modifications per file. It is useful for
|
| 3609 | reviewing large, complex patch files.")
|
| 3610 | (license (license:x11-style "file://COPYING"))))
|
| 3611 |
|
| 3612 | (define-public cssc
|
| 3613 | (package
|
| 3614 | (name "cssc")
|
| 3615 | (version "1.4.1")
|
| 3616 | (source (origin
|
| 3617 | (method url-fetch)
|
| 3618 | (uri (string-append "mirror://gnu/" name "/CSSC-"
|
| 3619 | version ".tar.gz"))
|
| 3620 | (sha256
|
| 3621 | (base32
|
| 3622 | "1vsisqq573xjr2qpn19iwmpqgl3mq03m790akpa4rvj60b4d1gni"))))
|
| 3623 | (build-system gnu-build-system)
|
| 3624 | (arguments
|
| 3625 | `(#:phases
|
| 3626 | (modify-phases %standard-phases
|
| 3627 | (add-before 'check 'precheck
|
| 3628 | (lambda _
|
| 3629 | (begin
|
| 3630 | (substitute* "tests/common/test-common"
|
| 3631 | (("/bin/pwd") (which "pwd")))
|
| 3632 |
|
| 3633 | (substitute* "tests/prt/all-512.sh"
|
| 3634 | (("/bin/sh") (which "sh")))
|
| 3635 |
|
| 3636 | (for-each
|
| 3637 | (lambda (file)
|
| 3638 | (substitute* file (("egrep") "grep -E")))
|
| 3639 | '("tests/common/test-common"
|
| 3640 | "tests/admin/comment.sh"
|
| 3641 | "tests/cdc/2comment.sh"
|
| 3642 | "tests/cdc/4order.sh"
|
| 3643 | "tests/get/subst.sh"))
|
| 3644 |
|
| 3645 | |
| 3646 | |
| 3647 | |
| 3648 | |
| 3649 | (substitute* "tests/Makefile"
|
| 3650 | (("test-delta ") ""))))))))
|
| 3651 | |
| 3652 | (native-inputs (list git cvs))
|
| 3653 | (home-page "https://www.gnu.org/software/cssc/")
|
| 3654 | (synopsis "File-based version control like SCCS")
|
| 3655 | (description "GNU CSSC provides a replacement for the legacy Unix source
|
| 3656 | code control system SCCS. This allows old code still under that system to be
|
| 3657 | accessed and migrated on modern systems.")
|
| 3658 | (license license:gpl3+)))
|
| 3659 |
|
| 3660 | (define-public tig
|
| 3661 | (package
|
| 3662 | (name "tig")
|
| 3663 | (version "2.6.1")
|
| 3664 | (source
|
| 3665 | (origin
|
| 3666 | (method git-fetch)
|
| 3667 | (uri (git-reference
|
| 3668 | (url "https://github.com/jonas/tig")
|
| 3669 | (commit (string-append "tig-" version))))
|
| 3670 | (file-name (git-file-name name version))
|
| 3671 | (sha256
|
| 3672 | (base32 "1ixhi5jx1acg6hdq66q4zjm6zyy62w5jrddci4qrn7v7pbdavyb5"))))
|
| 3673 | (build-system gnu-build-system)
|
| 3674 | (arguments
|
| 3675 | (list
|
| 3676 | #:phases
|
| 3677 | #~(modify-phases %standard-phases
|
| 3678 | (add-after 'install 'install-doc
|
| 3679 | (lambda _
|
| 3680 | (invoke "make" "install-doc")))
|
| 3681 | (add-after 'install 'install-completions
|
| 3682 | (lambda _
|
| 3683 | (let ((share (string-append #$output "/share")))
|
| 3684 | (mkdir-p (string-append share "/bash-completion/completions"))
|
| 3685 | (mkdir-p (string-append share "/zsh/site-functions"))
|
| 3686 | (copy-file "contrib/tig-completion.bash"
|
| 3687 | (string-append share "/bash-completion/completions/tig"))
|
| 3688 | (copy-file "contrib/tig-completion.zsh"
|
| 3689 | (string-append share "/zsh/site-functions/_tig"))))))
|
| 3690 | #:test-target "test"
|
| 3691 | #:tests? #f)) |
| 3692 | (native-inputs
|
| 3693 | (list asciidoc autoconf automake docbook-xsl libxml2 pkg-config xmlto))
|
| 3694 | (inputs
|
| 3695 | (list ncurses readline))
|
| 3696 | (home-page "https://jonas.github.io/tig/")
|
| 3697 | (synopsis "Ncurses-based text user interface for Git")
|
| 3698 | (description
|
| 3699 | "Tig is an ncurses text user interface for Git, primarily intended as
|
| 3700 | a history browser. It can also stage hunks for commit, or colorize the
|
| 3701 | output of the @code{git} command.")
|
| 3702 | (license license:gpl2+)))
|
| 3703 |
|
| 3704 | (define-public findnewest
|
| 3705 | (package
|
| 3706 | (name "findnewest")
|
| 3707 | (version "0.3")
|
| 3708 | (source
|
| 3709 | (origin
|
| 3710 | (method git-fetch)
|
| 3711 | (uri (git-reference
|
| 3712 | (url "https://github.com/0-wiz-0/findnewest")
|
| 3713 | (commit (string-append "findnewest-" version))))
|
| 3714 | (file-name (git-file-name name version))
|
| 3715 | (sha256
|
| 3716 | (base32 "1x1cbn2b27h5r0ah5xc06fkalfdci2ngrgd4wibxjw0h88h0nvgq"))))
|
| 3717 | (build-system gnu-build-system)
|
| 3718 | (native-inputs (list autoconf automake))
|
| 3719 | (home-page "https://github.com/0-wiz-0/findnewest/releases")
|
| 3720 | (synopsis "Print the modification time of the latest file")
|
| 3721 | (description
|
| 3722 | "Recursively find the newest file in a file tree and print its
|
| 3723 | modification time.")
|
| 3724 | (license license:bsd-2)))
|
| 3725 |
|
| 3726 | (define-public libfossil
|
| 3727 | (package
|
| 3728 | (name "libfossil")
|
| 3729 | (version "0.6.1")
|
| 3730 | (source
|
| 3731 | (origin
|
| 3732 | (method fossil-fetch)
|
| 3733 | (uri (fossil-reference
|
| 3734 | (uri "https://fossil.wanderinghorse.net/r/libfossil")
|
| 3735 | (check-in version)))
|
| 3736 | (sha256
|
| 3737 | (base32 "16zrha8vb4dwfmyq86iaz2xz4k91dh018bk94xkxgqbyrr33nm7y"))
|
| 3738 | (modules '((guix build utils)))
|
| 3739 | (snippet
|
| 3740 | #~(begin
|
| 3741 | (delete-all-but "autosetup" "proj.tcl" "wh-common.tcl")
|
| 3742 | (delete-file-recursively "extsrc")))))
|
| 3743 | (build-system gnu-build-system)
|
| 3744 | (arguments
|
| 3745 | (list #:configure-flags
|
| 3746 | #~(list "--no-debug" "--no-fnc" |
| 3747 | (string-append "--with-sqlite="
|
| 3748 | #$(this-package-input "sqlite"))
|
| 3749 | (string-append "--soname=libfossil.so"))
|
| 3750 | #:phases
|
| 3751 | #~(modify-phases %standard-phases
|
| 3752 | (replace 'configure
|
| 3753 | (lambda* (#:key configure-flags #:allow-other-keys)
|
| 3754 | (apply invoke "autosetup"
|
| 3755 | (string-append "--prefix=" #$output)
|
| 3756 | configure-flags)))
|
| 3757 | (replace 'check
|
| 3758 | (lambda* (#:key tests? #:allow-other-keys)
|
| 3759 | (when tests?
|
| 3760 | (substitute* "sanity-checks.sh"
|
| 3761 | |
| 3762 | (("\\./f-sanity.*") "")
|
| 3763 | (("\\./f-parseparty.*") ""))
|
| 3764 | (setenv "LD_LIBRARY_PATH" (getcwd))
|
| 3765 | (invoke "./sanity-checks.sh")))))))
|
| 3766 | (native-inputs (list autosetup))
|
| 3767 | (inputs (list sqlite-next zlib))
|
| 3768 | (home-page "https://fossil.wanderinghorse.net/r/libfossil")
|
| 3769 | (synopsis "Unofficial Fossil SCM Library API")
|
| 3770 | (description
|
| 3771 | "@code{libfossil} is an alternative interface into Fossil repositories,
|
| 3772 | as opposed to a replacement for the core fossil application,
|
| 3773 | intended for new ways to access and manipulate fossil repositories.")
|
| 3774 | (license license:bsd-2)))
|
| 3775 |
|
| 3776 | (define-public fnc
|
| 3777 | (let ((check-in
|
| 3778 | "c158d7ac2175078b4b783157be92de38aa627dc1a237febab9ec92093420cedb")
|
| 3779 | (revision "0"))
|
| 3780 | (package
|
| 3781 | (name "fnc")
|
| 3782 | (version (fossil-version "0.19" revision check-in))
|
| 3783 | (source
|
| 3784 | (origin
|
| 3785 | (method fossil-fetch)
|
| 3786 | (uri (fossil-reference
|
| 3787 | (uri "https://fnc.sh")
|
| 3788 | (check-in check-in)))
|
| 3789 | (file-name (fossil-file-name name version))
|
| 3790 | (sha256
|
| 3791 | (base32 "00n3qrd34nccxdwwbvs9zikhz6wps6qgbvk4mfww46mshvg7mxdn"))
|
| 3792 | (modules '((guix build utils)))
|
| 3793 | (snippet #~(begin
|
| 3794 | (delete-file-recursively "lib")
|
| 3795 | (substitute* (find-files "." "\\.c$")
|
| 3796 | (("^#include \"libfossil.h\"")
|
| 3797 | "#include <fossil-scm/libfossil.h>"))
|
| 3798 | (substitute* "fnc.bld.mk"
|
| 3799 | ((" \\$\\{SQLITE_OBJS\\} \\$\\{FOSSIL_OBJS\\}") "")
|
| 3800 | (("-lm -lutil -lz ") "")
|
| 3801 | |
| 3802 | (("install -s") "install"))))))
|
| 3803 | (build-system gnu-build-system)
|
| 3804 | (arguments
|
| 3805 | (list
|
| 3806 | #:phases #~(modify-phases %standard-phases
|
| 3807 | (delete 'configure))
|
| 3808 | #:tests? #f |
| 3809 | #:make-flags #~(list (string-append "CC=" #$(cc-for-target))
|
| 3810 | "LDFLAGS=-lfossil -lsqlite3"
|
| 3811 | (string-append "PREFIX=" #$output))))
|
| 3812 | (inputs (list libfossil ncurses sqlite-next))
|
| 3813 | (home-page "https://fnc.sh")
|
| 3814 | (synopsis "Interactive text-based user interface for Fossil")
|
| 3815 | (description "fnc uses ncurses and libfossil to create a fossil user
|
| 3816 | interface in the terminal. It can view local changes at the hunk level to
|
| 3817 | prepare atomic commits.")
|
| 3818 | (license license:isc))))
|
| 3819 |
|
| 3820 | (define-public myrepos
|
| 3821 | (package
|
| 3822 | (name "myrepos")
|
| 3823 | (version "1.20180726")
|
| 3824 | (source
|
| 3825 | (origin
|
| 3826 | (method git-fetch)
|
| 3827 | (uri (git-reference
|
| 3828 | (url "git://myrepos.branchable.com/myrepos")
|
| 3829 | (commit version)))
|
| 3830 | (file-name (string-append name "-" version "-checkout"))
|
| 3831 | (sha256
|
| 3832 | (base32 "0jphw61plm8cgklja6hs639xhdvxgvjwbr6jpvjwpp7hc5gmhms5"))))
|
| 3833 | (build-system gnu-build-system)
|
| 3834 | (arguments
|
| 3835 | '(#:test-target "test"
|
| 3836 | #:make-flags (list (string-append "PREFIX=" %output))
|
| 3837 | #:phases
|
| 3838 | (modify-phases %standard-phases
|
| 3839 | (delete 'configure)
|
| 3840 | (add-after 'install 'wrap-webcheckout
|
| 3841 | (lambda* (#:key inputs outputs #:allow-other-keys)
|
| 3842 | (let ((out (assoc-ref outputs "out")))
|
| 3843 | (wrap-program (string-append out "/bin/webcheckout")
|
| 3844 | `("PERL5LIB" ":" prefix
|
| 3845 | ,(map (lambda (i) (string-append (assoc-ref inputs i)
|
| 3846 | "/lib/perl5/site_perl"))
|
| 3847 | '("perl-encode-locale" "perl-http-date"
|
| 3848 | "perl-http-message" "perl-html-parser" "perl-libwww"
|
| 3849 | "perl-uri" "perl-try-tiny"))))))))))
|
| 3850 | (inputs
|
| 3851 | (list bash-minimal |
| 3852 | perl
|
| 3853 | perl-encode-locale
|
| 3854 | perl-html-parser
|
| 3855 | perl-http-date
|
| 3856 | perl-http-message
|
| 3857 | perl-libwww
|
| 3858 | perl-try-tiny
|
| 3859 | perl-uri))
|
| 3860 | (home-page "https://myrepos.branchable.com/")
|
| 3861 | (synopsis "Multiple repository management tool")
|
| 3862 | (description
|
| 3863 | "Myrepos provides the @code{mr} command, which maps an operation (e.g.,
|
| 3864 | fetching updates) over a collection of version control repositories. It
|
| 3865 | supports a large number of version control systems: Git, Subversion,
|
| 3866 | Mercurial, Bazaar, Darcs, CVS, Fossil, and Veracity.")
|
| 3867 | (license license:gpl2+)))
|
| 3868 |
|
| 3869 | (define-public grokmirror
|
| 3870 | (package
|
| 3871 | (name "grokmirror")
|
| 3872 | (version "2.0.12")
|
| 3873 | (source
|
| 3874 | (origin
|
| 3875 | (method git-fetch)
|
| 3876 | (uri (git-reference
|
| 3877 | (url (string-append "https://git.kernel.org/pub/scm/"
|
| 3878 | "utils/grokmirror/grokmirror.git"))
|
| 3879 | (commit (string-append "v" version))))
|
| 3880 | (file-name (git-file-name name version))
|
| 3881 | (sha256
|
| 3882 | (base32 "0plmd753pjqficvqk4jn8rjp43j775c4rjq6ja04jqa89rq1ak71"))))
|
| 3883 | (build-system pyproject-build-system)
|
| 3884 | (arguments
|
| 3885 | (list
|
| 3886 | #:tests? #f |
| 3887 | #:phases
|
| 3888 | #~(modify-phases %standard-phases
|
| 3889 | (add-after 'install 'install-manpages
|
| 3890 | (lambda _
|
| 3891 | (let* ((man (string-append #$output "/man/man1/")))
|
| 3892 | (for-each (lambda (file)
|
| 3893 | (install-file file man))
|
| 3894 | (find-files "." "\\.1$"))))))))
|
| 3895 | (native-inputs (list python-setuptools))
|
| 3896 | (propagated-inputs (list python-packaging python-requests))
|
| 3897 | (home-page
|
| 3898 | "https://git.kernel.org/pub/scm/utils/grokmirror/grokmirror.git")
|
| 3899 | (synopsis "Framework to smartly mirror git repositories")
|
| 3900 | (description "Grokmirror enables replicating large git repository
|
| 3901 | collections efficiently. Mirrors decide to clone and update repositories
|
| 3902 | based on a manifest file published by servers.")
|
| 3903 | (license license:gpl3+)))
|
| 3904 |
|
| 3905 | (define-public patatt
|
| 3906 | (package
|
| 3907 | (name "patatt")
|
| 3908 | (version "0.6.3")
|
| 3909 | (source
|
| 3910 | (origin
|
| 3911 | (method git-fetch)
|
| 3912 | (uri (git-reference
|
| 3913 | (url "https://git.kernel.org/pub/scm/utils/patatt/patatt.git")
|
| 3914 | (commit (string-append "v" version))))
|
| 3915 | (file-name (git-file-name name version))
|
| 3916 | (sha256
|
| 3917 | (base32 "1brak6kwnwbz8739aaxxks4nyaxrlldscfmzxdcqxi24afiw3h8z"))))
|
| 3918 | (build-system pyproject-build-system)
|
| 3919 | (arguments
|
| 3920 | |
| 3921 | (list #:tests? #f))
|
| 3922 | (native-inputs (list python-setuptools))
|
| 3923 | (propagated-inputs (list python-pynacl))
|
| 3924 | (home-page "https://git.kernel.org/pub/scm/utils/patatt/patatt.git")
|
| 3925 | (synopsis "Tool for cryptographic patch attestation")
|
| 3926 | (description "This utility provides end-to-end cryptographic attestation
|
| 3927 | of patches sent via mail. It does so by adapting the DKIM email signature
|
| 3928 | standard to include cryptographic signatures via the X-Developer-Signature
|
| 3929 | email header.")
|
| 3930 | (license license:expat-0)))
|
| 3931 |
|
| 3932 | (define-public python-patatt
|
| 3933 | (package
|
| 3934 | (name "python-patatt")
|
| 3935 | (version "0.8.0")
|
| 3936 | (source (origin
|
| 3937 | (method git-fetch)
|
| 3938 | (uri (git-reference
|
| 3939 | (url "https://git.kernel.org/pub/scm/utils/patatt/patatt.git")
|
| 3940 | (commit (string-append "v" version))))
|
| 3941 | (file-name (git-file-name name version))
|
| 3942 | (sha256
|
| 3943 | (base32
|
| 3944 | "0p1ncw7v8m9l5hfjxl06wyfbsrjy98wicw49jl0y3yi2k1lk1pxq"))))
|
| 3945 | (build-system pyproject-build-system)
|
| 3946 | |
| 3947 | |
| 3948 | (arguments
|
| 3949 | (list
|
| 3950 | #:phases
|
| 3951 | #~(modify-phases %standard-phases
|
| 3952 | (add-after 'unpack 'patch-commands
|
| 3953 | (lambda* (#:key inputs #:allow-other-keys)
|
| 3954 | (substitute* "src/patatt/__init__.py"
|
| 3955 | (("'git'")
|
| 3956 | (format #f "'~a'" (search-input-file inputs "bin/git")))
|
| 3957 | (("GPGBIN = 'gpg'")
|
| 3958 | (format #f "GPGBIN = '~a'"
|
| 3959 | (search-input-file inputs "bin/gpg")))
|
| 3960 | (("SSHKBIN = 'ssh-keygen'")
|
| 3961 | (format #f "SSHKBIN = '~a'"
|
| 3962 | (search-input-file inputs "bin/ssh-keygen")))))))))
|
| 3963 | (inputs (list git gnupg openssh))
|
| 3964 | (propagated-inputs (list python-pynacl))
|
| 3965 | (native-inputs (list python-pytest python-setuptools))
|
| 3966 | (home-page "https://git.kernel.org/pub/scm/utils/patatt/patatt.git/about/")
|
| 3967 | (synopsis "Python library and CLI for cryptographic patch attestation")
|
| 3968 | (description "Patatt is a Python library and @acronym{CLI, command-line
|
| 3969 | interface} for adding end-to-end cryptographic attestation to patches sent via
|
| 3970 | email. It adapts the DKIM email signature standard to include cryptographic
|
| 3971 | signatures via the X-Developer-Signature header.")
|
| 3972 | (license license:expat-0)))
|
| 3973 |
|
| 3974 | (define-public patman
|
| 3975 | (package
|
| 3976 | (name "patman")
|
| 3977 | (version "0.3.0")
|
| 3978 | (source
|
| 3979 | (origin
|
| 3980 | (method git-fetch)
|
| 3981 | (uri (git-reference
|
| 3982 | (url "https://github.com/nxtboot/patman")
|
| 3983 | (commit (string-append "v" version))))
|
| 3984 | (file-name (git-file-name name version))
|
| 3985 | |
| 3986 | (sha256
|
| 3987 | (base32 "1f0dsgvi1g7k6hbvvaaqy99cd93ldn4l5zplf5bh4i5916mxc2nx"))))
|
| 3988 | (build-system pyproject-build-system)
|
| 3989 | (arguments
|
| 3990 | (list
|
| 3991 | #:phases
|
| 3992 | #~(modify-phases %standard-phases
|
| 3993 | (add-after 'unpack 'skip-problematic-tests
|
| 3994 | (lambda _
|
| 3995 | (substitute* "patman/func_test.py"
|
| 3996 | (("([[:blank:]]*)def test_custom_get_maintainer_script\\(.*"
|
| 3997 | all indent)
|
| 3998 | |
| 3999 | |
| 4000 | |
| 4001 | |
| 4002 | |
| 4003 | (string-append indent
|
| 4004 | "@unittest.skip('fails in build container')\n"
|
| 4005 | all)))
|
| 4006 | (substitute* "patman/test_cseries.py"
|
| 4007 | (("([[:blank:]]*)def test_series_send\\(.*" all indent)
|
| 4008 | |
| 4009 | |
| 4010 | |
| 4011 | (string-append indent
|
| 4012 | "@unittest.skip('always fails')\n"
|
| 4013 | all)))))
|
| 4014 | (replace 'wrap
|
| 4015 | (lambda* (#:key inputs #:allow-other-keys)
|
| 4016 | (wrap-script (string-append #$output "/bin/patman")
|
| 4017 | (let* ((python (assoc-ref inputs "python"))
|
| 4018 | (version (python-version python))
|
| 4019 | (site-suffix (string-append "/lib/python" version
|
| 4020 | "/site-packages")))
|
| 4021 | `("GUIX_PYTHONPATH" prefix
|
| 4022 | ,(cons (string-append #$output site-suffix)
|
| 4023 | (map (lambda (x)
|
| 4024 | (string-append (assoc-ref inputs x)
|
| 4025 | site-suffix))
|
| 4026 | (list "python-aiohttp"
|
| 4027 | "python-patatt"
|
| 4028 | "python-pygit2")))))
|
| 4029 | `("PATH" prefix
|
| 4030 | ,(map (lambda (command)
|
| 4031 | (dirname (search-input-file inputs command)))
|
| 4032 | (list "bin/git" "bin/less")))
|
| 4033 | `("GIT_EXEC_PATH" prefix
|
| 4034 | (,(dirname (search-input-file
|
| 4035 | inputs "libexec/git-core/git-commit"))
|
| 4036 | ,(dirname (search-input-file
|
| 4037 | inputs
|
| 4038 | "libexec/git-core/git-send-email")))))))
|
| 4039 | (add-before 'check 'prepare-for-tests
|
| 4040 | (lambda _
|
| 4041 | (substitute* "patman/func_test.py"
|
| 4042 | (("/usr/bin/env python3")
|
| 4043 | (which "python3")))
|
| 4044 | (setenv "HOME" (getcwd))
|
| 4045 | (setenv "USER" "guixbuilder")
|
| 4046 | (invoke "git" "config" "--global" "user.email" "[email protected]")
|
| 4047 | (invoke "git" "config" "--global" "user.name" "Your Name")))
|
| 4048 | (replace 'check
|
| 4049 | (lambda* (#:key tests? #:allow-other-keys)
|
| 4050 | (when tests?
|
| 4051 | (invoke "patman" "test")))))))
|
| 4052 | (native-inputs
|
| 4053 | (list perl
|
| 4054 | python-concurrencytest
|
| 4055 | python-setuptools))
|
| 4056 | (inputs
|
| 4057 | (list git
|
| 4058 | `(,git "send-email")
|
| 4059 | guile-3.0/pinned |
| 4060 | less
|
| 4061 | python-aiohttp
|
| 4062 | python-patatt
|
| 4063 | python-pygit2))
|
| 4064 | (home-page "https://github.com/nxtboot/patman")
|
| 4065 | (synopsis "Patch automation tool")
|
| 4066 | (description "Patman is a patch automation script which:
|
| 4067 | @itemize
|
| 4068 | @item Creates patches directly from your branch
|
| 4069 | @item Cleans them up by removing unwanted tags
|
| 4070 | @item Inserts a cover letter with change lists
|
| 4071 | @item Runs the patches through automated checks
|
| 4072 | @item Optionally emails them out to selected people.
|
| 4073 | @end itemize")
|
| 4074 | (license license:gpl2+)))
|
| 4075 |
|
| 4076 | (define-public b4
|
| 4077 | (package
|
| 4078 | (name "b4")
|
| 4079 | (version "0.15.2")
|
| 4080 | (source
|
| 4081 | (origin
|
| 4082 | (method git-fetch)
|
| 4083 | (uri (git-reference
|
| 4084 | (url "https://git.kernel.org/pub/scm/utils/b4/b4.git")
|
| 4085 | (commit (string-append "v" version))))
|
| 4086 | (file-name (git-file-name name version))
|
| 4087 | (sha256
|
| 4088 | (base32
|
| 4089 | "00h27hcdj13gq8lg408mjr6cpjzxlmy6sanzagj319lh2bfhndin"))))
|
| 4090 | (build-system pyproject-build-system)
|
| 4091 | (arguments
|
| 4092 | (list
|
| 4093 | #:tests? (not (%current-target-system)) |
| 4094 | #:phases
|
| 4095 | #~(modify-phases %standard-phases
|
| 4096 | |
| 4097 | (add-after 'unpack 'hardcode-git-bin
|
| 4098 | (lambda* (#:key inputs #:allow-other-keys)
|
| 4099 | (substitute* (find-files "src/b4" "\\.py$")
|
| 4100 | (("\\['git'")
|
| 4101 | (string-append
|
| 4102 | "['" (search-input-file inputs "bin/git") "'"))))))))
|
| 4103 | (inputs
|
| 4104 | (list git-filter-repo
|
| 4105 | git-minimal
|
| 4106 | patatt
|
| 4107 | python-dkimpy
|
| 4108 | python-dnspython
|
| 4109 | python-requests))
|
| 4110 | (native-inputs
|
| 4111 | (list python-anyio
|
| 4112 | python-pytest
|
| 4113 | python-pytest-asyncio
|
| 4114 | python-setuptools
|
| 4115 | python-textual))
|
| 4116 | (home-page "https://b4.docs.kernel.org/en/latest/")
|
| 4117 | (synopsis "Tool for working with patches in public-inbox archives")
|
| 4118 | (description
|
| 4119 | "The @code{b4} command is designed to make it easier to participate in
|
| 4120 | patch-based workflows for projects that have public-inbox archives.
|
| 4121 |
|
| 4122 | Features include:
|
| 4123 | @itemize
|
| 4124 | @item downloading a thread's mbox given a message ID
|
| 4125 | @item processing an mbox so that is ready to be fed to @code{git-am}
|
| 4126 | @item creating templated replies for processed patches and pull requests
|
| 4127 | @item submitting cryptographic attestation for patches.
|
| 4128 | @end itemize")
|
| 4129 | (license license:gpl2+)))
|
| 4130 |
|
| 4131 | (define-public git-annex-remote-rclone
|
| 4132 | (package
|
| 4133 | (name "git-annex-remote-rclone")
|
| 4134 | (version "0.8")
|
| 4135 | (source
|
| 4136 | (origin
|
| 4137 | (method git-fetch)
|
| 4138 | (uri (git-reference
|
| 4139 | (url "https://github.com/DanielDent/git-annex-remote-rclone")
|
| 4140 | (commit (string-append "v" version))))
|
| 4141 | (file-name (git-file-name name version))
|
| 4142 | (sha256
|
| 4143 | (base32
|
| 4144 | "03m95620fp891ki6rsqw5nkydwx84nag5nhyvzfi3q64fpnpmb07"))))
|
| 4145 | (build-system trivial-build-system)
|
| 4146 | (arguments
|
| 4147 | `(#:modules ((guix build utils))
|
| 4148 | #:builder
|
| 4149 | (begin
|
| 4150 | (use-modules (guix build utils))
|
| 4151 | (let ((bash (search-input-file %build-inputs "/bin/bash"))
|
| 4152 | (rclone (search-input-file %build-inputs "/bin/rclone")))
|
| 4153 | (copy-file (string-append (assoc-ref %build-inputs "source")
|
| 4154 | "/git-annex-remote-rclone")
|
| 4155 | "git-annex-remote-rclone")
|
| 4156 | (substitute* "git-annex-remote-rclone"
|
| 4157 | (("/bin/bash") bash)
|
| 4158 | (("runcmd rclone") (string-append "runcmd " rclone)))
|
| 4159 | (install-file "git-annex-remote-rclone"
|
| 4160 | (string-append %output "/bin"))
|
| 4161 | #t))))
|
| 4162 | (inputs
|
| 4163 | (list bash rclone))
|
| 4164 | (home-page "https://github.com/DanielDent/git-annex-remote-rclone")
|
| 4165 | (synopsis "Use rclone-supported cloud storage providers with git-annex")
|
| 4166 | (description "This wrapper around rclone makes any destination supported
|
| 4167 | by rclone usable with git-annex.")
|
| 4168 | (license license:gpl3+)))
|
| 4169 |
|
| 4170 | (define-public fossil
|
| 4171 | (package
|
| 4172 | (name "fossil")
|
| 4173 | (version "2.28")
|
| 4174 | (source
|
| 4175 | (origin
|
| 4176 | (method url-fetch)
|
| 4177 | (uri (string-append
|
| 4178 | "https://fossil-scm.org/home/tarball/version-" version
|
| 4179 | "/fossil-" version ".tar.gz"))
|
| 4180 | (sha256
|
| 4181 | (base32 "1lw3ridv2id4hf5ksrpjwf7fv65wzs81wli4ksc0qr4h3xfyi66b"))))
|
| 4182 | (build-system gnu-build-system)
|
| 4183 | (native-inputs
|
| 4184 | (list tcl |
| 4185 | which |
| 4186 | ed)) |
| 4187 | (inputs
|
| 4188 | |
| 4189 | (list openssl zlib sqlite-next))
|
| 4190 | (arguments
|
| 4191 | `(#:configure-flags (list "--with-openssl=auto"
|
| 4192 | "--enable-json"
|
| 4193 | "--disable-internal-sqlite")
|
| 4194 | #:test-target "test"
|
| 4195 | #:phases (modify-phases %standard-phases
|
| 4196 | (add-after 'patch-source-shebangs 'patch-sh
|
| 4197 | (lambda _
|
| 4198 | (substitute* '("auto.def")
|
| 4199 | (("/bin/sh") (which "sh")))))
|
| 4200 | (replace 'configure
|
| 4201 | (lambda* (#:key outputs (configure-flags '())
|
| 4202 | #:allow-other-keys)
|
| 4203 | |
| 4204 | |
| 4205 | (apply invoke
|
| 4206 | "./configure"
|
| 4207 | (string-append "--prefix="
|
| 4208 | (assoc-ref outputs "out"))
|
| 4209 | configure-flags)))
|
| 4210 | (add-before 'check 'test-setup
|
| 4211 | (lambda _
|
| 4212 | (setenv "USER" "guix")
|
| 4213 | (setenv "TZ" "UTC"))))))
|
| 4214 | (home-page "https://fossil-scm.org")
|
| 4215 | (synopsis "Software configuration management system")
|
| 4216 | (description
|
| 4217 | "Fossil is a distributed source control management system which supports
|
| 4218 | access and administration over HTTP CGI or via a built-in HTTP server. It has
|
| 4219 | a built-in wiki, built-in file browsing, built-in tickets system, etc.")
|
| 4220 | (properties
|
| 4221 | '((release-monitoring-url
|
| 4222 | . "https://fossil-scm.org/home/uv/latest-release.md")))
|
| 4223 | (license (list license:public-domain |
| 4224 | license:bsd-2))))
|
| 4225 |
|
| 4226 | (define-public pijul
|
| 4227 | (package
|
| 4228 | (name "pijul")
|
| 4229 | (version "1.0.0-beta.9")
|
| 4230 | (source
|
| 4231 | (origin
|
| 4232 | (method url-fetch)
|
| 4233 | (uri (crate-uri "pijul" version))
|
| 4234 | (file-name (string-append name "-" version ".tar.gz"))
|
| 4235 | (sha256
|
| 4236 | (base32 "1lk261rrk4xy60d4akfn8mrrqxls28kf9mzrjcrxdzbdysml66n5"))))
|
| 4237 | (build-system cargo-build-system)
|
| 4238 | (arguments
|
| 4239 | (list
|
| 4240 | #:install-source? #f
|
| 4241 | #:features '(list "git")
|
| 4242 | #:phases
|
| 4243 | #~(modify-phases %standard-phases
|
| 4244 | (add-after 'install 'install-extras
|
| 4245 | (lambda* (#:key native-inputs outputs #:allow-other-keys)
|
| 4246 | (let* ((out (assoc-ref outputs "out"))
|
| 4247 | (share (string-append out "/share"))
|
| 4248 | (bash-completions-dir
|
| 4249 | (string-append out "/etc/bash_completion.d/"))
|
| 4250 | (zsh-completions-dir
|
| 4251 | (string-append share "/zsh/site-functions"))
|
| 4252 | (fish-completions-dir
|
| 4253 | (string-append share "/fish/vendor_completions.d"))
|
| 4254 | (elvish-completions-dir
|
| 4255 | (string-append share "/elvish/lib"))
|
| 4256 | (pijul (if #$(%current-target-system)
|
| 4257 | (search-input-file native-inputs "/bin/pijul")
|
| 4258 | (string-append out "/bin/pijul"))))
|
| 4259 | (mkdir-p bash-completions-dir)
|
| 4260 | (with-output-to-file
|
| 4261 | (string-append bash-completions-dir "/pijul")
|
| 4262 | (lambda _ (invoke pijul "completion" "bash")))
|
| 4263 | (mkdir-p zsh-completions-dir)
|
| 4264 | (with-output-to-file
|
| 4265 | (string-append zsh-completions-dir "/_pijul")
|
| 4266 | (lambda _ (invoke pijul "completion" "zsh")))
|
| 4267 | (mkdir-p fish-completions-dir)
|
| 4268 | (with-output-to-file
|
| 4269 | (string-append fish-completions-dir "/pijul.fish")
|
| 4270 | (lambda _ (invoke pijul "completion" "fish")))
|
| 4271 | (mkdir-p elvish-completions-dir)
|
| 4272 | (with-output-to-file
|
| 4273 | (string-append elvish-completions-dir "/pijul")
|
| 4274 | (lambda _ (invoke pijul "completion" "elvish")))))))))
|
| 4275 | (native-inputs
|
| 4276 | (append (if (%current-target-system)
|
| 4277 | (list this-package)
|
| 4278 | '())
|
| 4279 | (list pkg-config)))
|
| 4280 | (inputs (cons* libgit2-1.3 libssh2 libsodium openssl (cargo-inputs 'pijul)))
|
| 4281 | (home-page "https://nest.pijul.com/pijul/pijul")
|
| 4282 | (synopsis "Distributed version control system")
|
| 4283 | (description "This package provides pijul, a sound and fast distributed
|
| 4284 | version control system based on a mathematical theory of asynchronous work.")
|
| 4285 | (license license:gpl2+)))
|
| 4286 |
|
| 4287 | (define-public stagit
|
| 4288 | (package
|
| 4289 | (name "stagit")
|
| 4290 | (version "1.2")
|
| 4291 | (source (origin
|
| 4292 | (method git-fetch)
|
| 4293 | (uri (git-reference
|
| 4294 | |
| 4295 | (url "git://git.codemadness.org/stagit")
|
| 4296 | (commit version)))
|
| 4297 | (file-name (git-file-name name version))
|
| 4298 | (sha256
|
| 4299 | (base32
|
| 4300 | "17yggk3fbm731z98warvix332487s0k6knhxnf9zc6f667qi2mlr"))))
|
| 4301 | (build-system gnu-build-system)
|
| 4302 | (arguments
|
| 4303 | (list #:tests? #f |
| 4304 | #:make-flags #~(list (string-append "CC=" #$(cc-for-target))
|
| 4305 | (string-append "PREFIX=" #$output))
|
| 4306 | #:phases
|
| 4307 | #~(modify-phases %standard-phases
|
| 4308 | (delete 'configure)))) |
| 4309 | (inputs
|
| 4310 | (list libgit2))
|
| 4311 | (home-page "https://git.codemadness.org/stagit/")
|
| 4312 | (synopsis "Static git page generator")
|
| 4313 | (description "Stagit creates static pages for git repositories, the results can
|
| 4314 | be served with a HTTP file server of your choice.")
|
| 4315 | (license license:expat)))
|
| 4316 |
|
| 4317 | (define-public gource
|
| 4318 | (package
|
| 4319 | (name "gource")
|
| 4320 | (version "0.55")
|
| 4321 | (source (origin
|
| 4322 | (method url-fetch)
|
| 4323 | (uri (string-append
|
| 4324 | "https://github.com/acaudwell/Gource/releases/download"
|
| 4325 | "/gource-" version "/gource-" version ".tar.gz"))
|
| 4326 | (sha256
|
| 4327 | (base32
|
| 4328 | "0hh17h0pf4b7yq23xsr5zhl1cs02d2bijxj7ks6m01wbs89948y8"))))
|
| 4329 | (build-system gnu-build-system)
|
| 4330 | (arguments
|
| 4331 | `(#:configure-flags
|
| 4332 | (list (string-append "--with-boost-libdir="
|
| 4333 | (assoc-ref %build-inputs "boost")
|
| 4334 | "/lib")
|
| 4335 | "--with-tinyxml")
|
| 4336 | #:disallowed-references ,(list (this-package-native-input "tzdata"))
|
| 4337 | #:phases (modify-phases %standard-phases
|
| 4338 | (add-after 'unpack 'unbundle
|
| 4339 | (lambda _
|
| 4340 | (delete-file-recursively "src/tinyxml")))
|
| 4341 | (add-before 'check 'check-setup
|
| 4342 | (lambda* (#:key inputs #:allow-other-keys)
|
| 4343 | (setenv "TZDIR" |
| 4344 | (search-input-directory inputs
|
| 4345 | "share/zoneinfo")))))))
|
| 4346 | (native-inputs
|
| 4347 | (list pkg-config tzdata-for-tests))
|
| 4348 | (inputs
|
| 4349 | (list boost-1.83
|
| 4350 | ftgl
|
| 4351 | glew
|
| 4352 | glm
|
| 4353 | glu
|
| 4354 | libpng
|
| 4355 | mesa
|
| 4356 | pcre2
|
| 4357 | (sdl-union (list sdl2 sdl2-image))
|
| 4358 | tinyxml))
|
| 4359 | (home-page "https://gource.io/")
|
| 4360 | (synopsis "3D visualisation tool for source control repositories")
|
| 4361 | (description "@code{gource} provides a software version control
|
| 4362 | visualization. The repository is displayed as a tree where the root of the
|
| 4363 | repository is the centre, directories are branches and files are leaves.
|
| 4364 | Contributors to the source code appear and disappear as they contribute to
|
| 4365 | specific files and directories.")
|
| 4366 | (license license:gpl3+)))
|
| 4367 |
|
| 4368 | (define-public src
|
| 4369 | (package
|
| 4370 | (name "src")
|
| 4371 | (version "1.32")
|
| 4372 | (source
|
| 4373 | (origin
|
| 4374 | (method git-fetch)
|
| 4375 | (uri (git-reference
|
| 4376 | (url "https://gitlab.com/esr/src.git/")
|
| 4377 | (commit version)))
|
| 4378 | (file-name (git-file-name name version))
|
| 4379 | (sha256
|
| 4380 | (base32 "0kxbmpjr98kfacjidizxcghl541fwnf8yzfvwfq5f9zbv42p8l41"))))
|
| 4381 | (build-system gnu-build-system)
|
| 4382 | (arguments
|
| 4383 | (list
|
| 4384 | #:make-flags
|
| 4385 | #~(list (string-append "prefix=" #$output))
|
| 4386 | #:phases
|
| 4387 | #~(modify-phases %standard-phases
|
| 4388 | (delete 'configure) |
| 4389 | (add-after 'install 'wrap-program
|
| 4390 | (lambda* (#:key inputs #:allow-other-keys)
|
| 4391 | (let* ((prog (string-append #$output "/bin/src"))
|
| 4392 | (rcs (search-input-file inputs "bin/rcs")))
|
| 4393 | (wrap-program prog
|
| 4394 | `("PATH" ":" prefix (,(dirname rcs)))))))
|
| 4395 | (replace 'check
|
| 4396 | (lambda* (#:key tests? #:allow-other-keys)
|
| 4397 | (when tests?
|
| 4398 | (setenv "HOME" (getenv "TMPDIR"))
|
| 4399 | (invoke "git" "config" "--global" "user.name" "guix")
|
| 4400 | (invoke "git" "config" "--global" "user.email" "guix")
|
| 4401 | (invoke "./srctest")))))))
|
| 4402 | (native-inputs
|
| 4403 | (list asciidoc
|
| 4404 | |
| 4405 | git
|
| 4406 | perl))
|
| 4407 | (inputs
|
| 4408 | (list bash-minimal
|
| 4409 | cssc
|
| 4410 | python-wrapper
|
| 4411 | rcs))
|
| 4412 | (synopsis "Simple revision control")
|
| 4413 | (home-page "http://www.catb.org/~esr/src/")
|
| 4414 | (description
|
| 4415 | "SRC (or src) is simple revision control, a version-control system for
|
| 4416 | single-file projects by solo developers and authors. It modernizes the
|
| 4417 | venerable RCS, hence the anagrammatic acronym. The design is tuned for use
|
| 4418 | cases like all those little scripts in your @file{~/bin} directory, or a
|
| 4419 | directory full of HOWTOs.")
|
| 4420 | (license license:bsd-2)))
|
| 4421 |
|
| 4422 | (define-public git-when-merged
|
| 4423 | |
| 4424 | (let ((commit "ab6af7865a0ba55ba364a6c507e0be6f84f31c6d"))
|
| 4425 | (package
|
| 4426 | (name "git-when-merged")
|
| 4427 | (version (string-append "1.2.0-" (string-take commit 7)))
|
| 4428 | (source (origin
|
| 4429 | (method git-fetch)
|
| 4430 | (uri (git-reference
|
| 4431 | (url "https://github.com/mhagger/git-when-merged/")
|
| 4432 | (commit commit)))
|
| 4433 | (file-name (git-file-name name version))
|
| 4434 | (sha256
|
| 4435 | (base32
|
| 4436 | "0iyk2psf97bc9h43m89p3xjmm79fsx99i7px29g4lcnmdy5kmz0p"))))
|
| 4437 | (build-system gnu-build-system)
|
| 4438 | (arguments
|
| 4439 | `(#:tests? #f |
| 4440 | #:phases
|
| 4441 | (modify-phases %standard-phases
|
| 4442 | (delete 'configure)
|
| 4443 | (delete 'build)
|
| 4444 | (replace 'install
|
| 4445 | (lambda* (#:key outputs #:allow-other-keys)
|
| 4446 | (install-file "bin/git-when-merged"
|
| 4447 | (string-append (assoc-ref outputs "out")
|
| 4448 | "/bin"))))
|
| 4449 | (add-before 'install 'patch-git
|
| 4450 | (lambda* (#:key inputs #:allow-other-keys)
|
| 4451 | (let ((git (search-input-file inputs "/bin/git")))
|
| 4452 | (substitute* "bin/git-when-merged"
|
| 4453 | (("'git'") (string-append "'" git "'"))))))
|
| 4454 | (add-after 'install 'wrap-script
|
| 4455 | (lambda* (#:key outputs #:allow-other-keys)
|
| 4456 | (wrap-program (string-append (assoc-ref outputs "out")
|
| 4457 | "/bin/git-when-merged")
|
| 4458 | `("GUIX_PYTHONPATH" ":" prefix
|
| 4459 | (,(getenv "GUIX_PYTHONPATH")))))))))
|
| 4460 | (inputs (list bash-minimal git python-wrapper))
|
| 4461 | (home-page "https://github.com/mhagger/git-when-merged")
|
| 4462 | (synopsis "Determine when a commit was merged into a Git branch")
|
| 4463 | (description "This Git extension defines a subcommand,
|
| 4464 | @code{when-merged}, whose core operation is to find the merge that brought a
|
| 4465 | given commit into the specified ref(s). It has various options that control
|
| 4466 | how information about the merge is displayed.")
|
| 4467 | (license license:gpl2+))))
|
| 4468 |
|
| 4469 | (define-public git-imerge
|
| 4470 | (package
|
| 4471 | (name "git-imerge")
|
| 4472 | (version "1.1.0")
|
| 4473 | (source
|
| 4474 | (origin
|
| 4475 | (method git-fetch)
|
| 4476 | (uri (git-reference
|
| 4477 | (url "https://github.com/mhagger/git-imerge")
|
| 4478 | (commit (string-append "v" version))))
|
| 4479 | (file-name (git-file-name name version))
|
| 4480 | (sha256
|
| 4481 | (base32 "0vi1w3f0yk4gqhxj2hzqafqq28rihyhyfnp8x7xzib96j2si14a4"))))
|
| 4482 | (build-system gnu-build-system)
|
| 4483 | (arguments
|
| 4484 | `(#:tests? #f |
| 4485 | #:make-flags (list (string-append "DESTDIR=" %output)
|
| 4486 | "PREFIX=")
|
| 4487 | #:phases
|
| 4488 | (modify-phases %standard-phases
|
| 4489 | (delete 'configure)
|
| 4490 | (add-before 'install 'patch-git
|
| 4491 | (lambda* (#:key inputs #:allow-other-keys)
|
| 4492 | (let ((git (search-input-file inputs "/bin/git")))
|
| 4493 | (substitute* "git-imerge"
|
| 4494 | (("'git'") (string-append "'" git "'"))))))
|
| 4495 | (add-after 'install 'wrap-script
|
| 4496 | (lambda* (#:key outputs #:allow-other-keys)
|
| 4497 | (wrap-program (string-append (assoc-ref outputs "out")
|
| 4498 | "/bin/git-imerge")
|
| 4499 | `("GUIX_PYTHONPATH" ":" prefix
|
| 4500 | (,(getenv "GUIX_PYTHONPATH")))))))))
|
| 4501 | (inputs (list bash-minimal git python-wrapper))
|
| 4502 | (home-page "https://github.com/mhagger/git-imerge")
|
| 4503 | (synopsis "Incremental merge for Git")
|
| 4504 | (description "This Git extension defines a subcommand, @code{imerge},
|
| 4505 | which performs an incremental merge between two branches. Its two primary
|
| 4506 | design goals are to reduce the pain of resolving merge conflicts by finding
|
| 4507 | the smallest possible conflicts and to allow a merge to be saved, tested,
|
| 4508 | interrupted, published, and collaborated on while in progress.")
|
| 4509 | (license license:gpl2+)))
|
| 4510 |
|
| 4511 | (define-public go-github-com-git-lfs-wildmatch-v2
|
| 4512 | (package
|
| 4513 | (name "go-github-com-git-lfs-wildmatch-v2")
|
| 4514 | (version "2.0.1")
|
| 4515 | (source (origin
|
| 4516 | (method git-fetch)
|
| 4517 | (uri (git-reference
|
| 4518 | (url "https://github.com/git-lfs/wildmatch")
|
| 4519 | (commit (string-append "v" version))))
|
| 4520 | (file-name (git-file-name name version))
|
| 4521 | (sha256
|
| 4522 | (base32
|
| 4523 | "0yg6d77d5l6v7cd8vr00y68z9aqb8qs4lidv0hkqh4fvz0ggvpln"))))
|
| 4524 | (build-system go-build-system)
|
| 4525 | (arguments
|
| 4526 | '(#:import-path "github.com/git-lfs/wildmatch/v2"))
|
| 4527 | (home-page "https://github.com/git-lfs/wildmatch")
|
| 4528 | (synopsis "Go implementation of Git's wildmatch")
|
| 4529 | (description
|
| 4530 | "This package is an implementation of Git's wildmatch.c-style pattern
|
| 4531 | matching.")
|
| 4532 | (license license:expat)))
|
| 4533 |
|
| 4534 | (define-public git-lfs
|
| 4535 | (package
|
| 4536 | (name "git-lfs")
|
| 4537 | (version "3.7.1")
|
| 4538 | (source
|
| 4539 | (origin
|
| 4540 | (method git-fetch)
|
| 4541 | (uri (git-reference
|
| 4542 | (url "https://github.com/git-lfs/git-lfs")
|
| 4543 | (commit (string-append "v" version))))
|
| 4544 | (file-name (git-file-name name version))
|
| 4545 | (sha256
|
| 4546 | (base32 "0zvawzaqk528rsnrkqif04b806348p4argmpcsg6ppl0gi7295rp"))))
|
| 4547 | (build-system go-build-system)
|
| 4548 | (arguments
|
| 4549 | (list
|
| 4550 | #:embed-files #~(list "children" "nodes" "text")
|
| 4551 | #:import-path "github.com/git-lfs/git-lfs/v3"
|
| 4552 | #:install-source? #f
|
| 4553 | #:test-flags #~(list "-skip" "TestHistoryRewriterUpdatesRefs")
|
| 4554 | #:phases
|
| 4555 | #~(modify-phases %standard-phases
|
| 4556 | |
| 4557 | #$@(if (this-package-native-input "ruby-asciidoctor")
|
| 4558 | #~((add-before 'build 'man-gen
|
| 4559 | |
| 4560 | |
| 4561 | (lambda _
|
| 4562 | (with-directory-excursion "src/github.com/git-lfs/git-lfs/v3"
|
| 4563 | (invoke "make" "mangen"))))
|
| 4564 | (add-after 'build 'build-man-pages
|
| 4565 | (lambda _
|
| 4566 | (with-directory-excursion "src/github.com/git-lfs/git-lfs/v3"
|
| 4567 | (invoke "make" "man"))))
|
| 4568 | (add-after 'install 'install-man-pages
|
| 4569 | (lambda* (#:key outputs #:allow-other-keys)
|
| 4570 | (with-directory-excursion "src/github.com/git-lfs/git-lfs/v3/man"
|
| 4571 | (for-each
|
| 4572 | (lambda (manpage)
|
| 4573 | (install-file manpage
|
| 4574 | (string-append #$output "/share/man/man1")))
|
| 4575 | (find-files "." "^git-lfs.*\\.1$"))))))
|
| 4576 | #~())
|
| 4577 | (add-after 'install 'rename-binary
|
| 4578 | (lambda _
|
| 4579 | (with-directory-excursion (string-append #$output "/bin")
|
| 4580 | (rename-file "v3" "git-lfs")))))))
|
| 4581 | (native-inputs
|
| 4582 | (append (list git-minimal/pinned
|
| 4583 | go-github-com-avast-retry-go
|
| 4584 | go-github-com-dpotapov-go-spnego
|
| 4585 | go-github-com-git-lfs-gitobj-v2
|
| 4586 | go-github-com-git-lfs-go-netrc
|
| 4587 | go-github-com-git-lfs-pktline
|
| 4588 | go-github-com-git-lfs-wildmatch-v2
|
| 4589 | go-github-com-golang-groupcache
|
| 4590 | go-github-com-jmhodges-clock
|
| 4591 | go-github-com-leonelquinteros-gotext
|
| 4592 | go-github-com-mattn-go-isatty
|
| 4593 | go-github-com-olekukonko-ts
|
| 4594 | go-github-com-pkg-errors
|
| 4595 | go-github-com-rubyist-tracerx
|
| 4596 | go-github-com-spf13-cobra
|
| 4597 | go-github-com-ssgelm-cookiejarparser
|
| 4598 | go-github-com-stretchr-testify
|
| 4599 | go-github-com-xeipuuv-gojsonschema
|
| 4600 | go-golang-org-x-net
|
| 4601 | go-golang-org-x-sync
|
| 4602 | go-golang-org-x-sys)
|
| 4603 | |
| 4604 | (if (supported-package? ruby-asciidoctor/minimal)
|
| 4605 | (list ronn-ng ruby-asciidoctor/minimal)
|
| 4606 | '())))
|
| 4607 | (home-page "https://git-lfs.com/")
|
| 4608 | (synopsis "Git extension for versioning large files")
|
| 4609 | (description
|
| 4610 | "Git Large File Storage (LFS) replaces large files such as audio samples,
|
| 4611 | videos, datasets, and graphics with text pointers inside Git, while storing the
|
| 4612 | file contents on a remote server.")
|
| 4613 | (license license:expat)))
|
| 4614 |
|
| 4615 | (define-public lfs-s3
|
| 4616 | (package
|
| 4617 | (name "lfs-s3")
|
| 4618 | (version "0.2.1")
|
| 4619 | (source
|
| 4620 | (origin
|
| 4621 | (method git-fetch)
|
| 4622 | (uri (git-reference
|
| 4623 | (url "https://github.com/nicolas-graves/lfs-s3")
|
| 4624 | (commit version)))
|
| 4625 | (file-name (git-file-name name version))
|
| 4626 | (sha256
|
| 4627 | (base32 "1d2jwpqfbcd1hb213i6fjln0sqyg8ldjfrkzf312mivp2b1bxjl3"))))
|
| 4628 | (build-system go-build-system)
|
| 4629 | (arguments
|
| 4630 | (list
|
| 4631 | #:import-path "github.com/nicolas-graves/lfs-s3"))
|
| 4632 | (inputs (list git-lfs))
|
| 4633 | (propagated-inputs
|
| 4634 | (list go-github-com-aws-aws-sdk-go-v2
|
| 4635 | go-github-com-aws-aws-sdk-go-v2-config
|
| 4636 | go-github-com-aws-aws-sdk-go-v2-feature-s3-manager
|
| 4637 | go-github-com-aws-aws-sdk-go-v2-service-s3
|
| 4638 | go-github-com-klauspost-compress))
|
| 4639 | (home-page "https://git.sr.ht/~ngraves/lfs-s3/")
|
| 4640 | (synopsis "Git extension for versioning large files in S3")
|
| 4641 | (description
|
| 4642 | "This package provides a custom transfer agent for Git LFS, allowing
|
| 4643 | plain S3 bucket usage as remote storage for media files. This package uses a
|
| 4644 | standalone agent instead of a server.")
|
| 4645 | (license license:expat)))
|
| 4646 |
|
| 4647 | (define-public git-open
|
| 4648 | (package
|
| 4649 | (name "git-open")
|
| 4650 | (version "2.1.0")
|
| 4651 | (source
|
| 4652 | (origin
|
| 4653 | (method git-fetch)
|
| 4654 | (uri (git-reference
|
| 4655 | (url "https://github.com/paulirish/git-open")
|
| 4656 | (commit (string-append "v" version))))
|
| 4657 | (file-name (git-file-name name version))
|
| 4658 | (sha256
|
| 4659 | (base32 "11n46bngvca5wbdbfcxzjhjbfdbad7sgf7h9gf956cb1q8swsdm0"))))
|
| 4660 | (build-system copy-build-system)
|
| 4661 | (inputs
|
| 4662 | (list bash-minimal xdg-utils))
|
| 4663 | (arguments
|
| 4664 | `(#:phases
|
| 4665 | (modify-phases %standard-phases
|
| 4666 | (add-after 'install 'wrap-program
|
| 4667 | (lambda* (#:key outputs inputs #:allow-other-keys)
|
| 4668 | (let ((out (assoc-ref outputs "out"))
|
| 4669 | (xdg-utils (assoc-ref inputs "xdg-utils")))
|
| 4670 | (wrap-program (string-append out "/bin/git-open")
|
| 4671 | `("PATH" ":" prefix (,(string-append xdg-utils "/bin"))))))))
|
| 4672 | #:install-plan
|
| 4673 | '(("git-open" "bin/git-open"))))
|
| 4674 | (home-page "https://github.com/paulirish/git-open")
|
| 4675 | (synopsis "Open a Git repository's homepage from the command-line")
|
| 4676 | (description
|
| 4677 | "@code{git open} opens the repository's website from the command-line,
|
| 4678 | guessing the URL pattern from the @code{origin} remote.")
|
| 4679 | (license license:expat)))
|
| 4680 |
|
| 4681 | (define-public tla
|
| 4682 | (package
|
| 4683 | (name "gnu-arch")
|
| 4684 | (version "1.3.5")
|
| 4685 | (source (origin
|
| 4686 | (method url-fetch)
|
| 4687 | (uri (string-append "https://ftp.gnu.org/old-gnu/gnu-arch/"
|
| 4688 | "tla-" version ".tar.gz"))
|
| 4689 | (sha256
|
| 4690 | (base32
|
| 4691 | "01mfzj1i6p4s8191cgd5850hds1zls88hkf9rb6qx1vqjv585aj0"))
|
| 4692 | (modules '((guix build utils)))
|
| 4693 | (snippet
|
| 4694 | '(begin
|
| 4695 | |
| 4696 | |
| 4697 | (substitute* "src/tla/libarch/archive.c"
|
| 4698 | (("\"--preserve\"")
|
| 4699 | "\"--preserve-permissions\""))))))
|
| 4700 | (build-system gnu-build-system)
|
| 4701 | (arguments
|
| 4702 | (list #:phases #~(modify-phases %standard-phases
|
| 4703 | (replace 'configure
|
| 4704 | (lambda _
|
| 4705 | (chdir "src")
|
| 4706 |
|
| 4707 | (mkdir "=build")
|
| 4708 | (chdir "=build")
|
| 4709 |
|
| 4710 | |
| 4711 | |
| 4712 | (setenv "CONFIG_SHELL" (which "sh"))
|
| 4713 |
|
| 4714 | (invoke "../configure" "--prefix" #$output
|
| 4715 | "--config-shell" (which "sh")
|
| 4716 | "--with-posix-shell" (which "sh")
|
| 4717 | "--with-cc" "gcc"))))
|
| 4718 |
|
| 4719 | |
| 4720 | #:parallel-build? #f
|
| 4721 | #:parallel-tests? #f
|
| 4722 |
|
| 4723 | #:test-target "test"))
|
| 4724 | (native-inputs
|
| 4725 | (list gcc-10 which))
|
| 4726 | (synopsis "Historical distributed version-control system")
|
| 4727 | (description
|
| 4728 | "GNU Arch, aka. @code{tla}, was one of the first free distributed
|
| 4729 | version-control systems (DVCS). It saw its last release in 2006. This
|
| 4730 | package is provided for users who need to recover @code{tla} repositories and
|
| 4731 | for historians.")
|
| 4732 | (home-page "https://www.gnu.org/software/gnu-arch/")
|
| 4733 | (license license:gpl2))) |
| 4734 |
|
| 4735 | (define-public diff-so-fancy
|
| 4736 | (package
|
| 4737 | (name "diff-so-fancy")
|
| 4738 | (version "1.4.4")
|
| 4739 | (source (origin
|
| 4740 | (method git-fetch)
|
| 4741 | (uri (git-reference
|
| 4742 | (url "https://github.com/so-fancy/diff-so-fancy")
|
| 4743 | (commit (string-append "v" version))))
|
| 4744 | (file-name (git-file-name name version))
|
| 4745 | (sha256
|
| 4746 | (base32
|
| 4747 | "0ck9v9dc9zm3wr1vdq96zwvv9szsbimyxvnd76q5l4vcb4iqnpy8"))))
|
| 4748 | (inputs
|
| 4749 | (list bash-minimal perl ncurses))
|
| 4750 | (build-system copy-build-system)
|
| 4751 | (arguments
|
| 4752 | '(#:phases
|
| 4753 | (modify-phases %standard-phases
|
| 4754 | (add-after 'unpack 'patch-lib-path
|
| 4755 | (lambda* (#:key outputs #:allow-other-keys)
|
| 4756 | (let ((lib (string-append (assoc-ref outputs "out") "/lib")))
|
| 4757 | (substitute* "diff-so-fancy"
|
| 4758 | (("use lib.*$")
|
| 4759 | (string-append "use lib '" lib "';\n"))))))
|
| 4760 | (add-after 'install 'symlink-executable
|
| 4761 | (lambda* (#:key outputs inputs #:allow-other-keys)
|
| 4762 | (let ((out (assoc-ref outputs "out"))
|
| 4763 | (ncurses (assoc-ref inputs "ncurses"))
|
| 4764 | (perl (assoc-ref inputs "perl")))
|
| 4765 | (wrap-program (string-append out "/bin/diff-so-fancy")
|
| 4766 | `("PATH" ":" prefix (,(string-append ncurses "/bin")
|
| 4767 | ,(string-append perl "/bin"))))))))
|
| 4768 | #:install-plan
|
| 4769 | '(("lib" "lib")
|
| 4770 | ("diff-so-fancy" "bin/"))))
|
| 4771 | (home-page "https://github.com/so-fancy/diff-so-fancy")
|
| 4772 | (synopsis "Makes diffs more human friendly and readable")
|
| 4773 | (description
|
| 4774 | "@code{diff-so-fancy} strives to make your diffs human readable instead
|
| 4775 | of machine readable. This helps improve code quality and helps you spot
|
| 4776 | defects faster.")
|
| 4777 | (license license:expat)))
|
| 4778 |
|
| 4779 | (define-public gita
|
| 4780 | (package
|
| 4781 | (name "gita")
|
| 4782 | (version "0.16.7.2")
|
| 4783 | (source
|
| 4784 | (origin
|
| 4785 | (method git-fetch)
|
| 4786 | (uri (git-reference
|
| 4787 | (url "https://github.com/nosarthur/gita")
|
| 4788 | (commit (string-append "v" version))))
|
| 4789 | (file-name (git-file-name name version))
|
| 4790 | (sha256
|
| 4791 | (base32 "118dzmjgml0c32yllr2178ash2hvgn201i463bv4y0qbywajm9ax"))))
|
| 4792 | (build-system pyproject-build-system)
|
| 4793 | (arguments
|
| 4794 | (list
|
| 4795 | #:test-flags #~(list "--ignore" "tests/test_main.py")
|
| 4796 | #:phases
|
| 4797 | #~(modify-phases %standard-phases
|
| 4798 | (add-before 'check 'pre-check
|
| 4799 | (lambda _
|
| 4800 | (invoke (string-append
|
| 4801 | #$(this-package-native-input "git-minimal") "/bin/git")
|
| 4802 | "init")))
|
| 4803 | (add-after 'install 'install-shell-completions
|
| 4804 | (lambda _
|
| 4805 | (let* ((out #$output)
|
| 4806 | (bash-completion (string-append out "/etc/bash_completion.d"))
|
| 4807 | (zsh-completion (string-append out "/etc/zsh/site-functions")))
|
| 4808 | (mkdir-p bash-completion)
|
| 4809 | (copy-file "auto-completion/bash/.gita-completion.bash"
|
| 4810 | (string-append bash-completion "/gita"))
|
| 4811 | (mkdir-p zsh-completion)
|
| 4812 | (copy-file "auto-completion/zsh/.gita-completion.zsh"
|
| 4813 | (string-append zsh-completion "/_gita"))))))))
|
| 4814 | (native-inputs
|
| 4815 | (list git-minimal/pinned |
| 4816 | python-pytest
|
| 4817 | python-setuptools
|
| 4818 | python-wheel))
|
| 4819 | (propagated-inputs
|
| 4820 | (list python-argcomplete))
|
| 4821 | (home-page "https://github.com/nosarthur/gita")
|
| 4822 | (synopsis "Command-line tool to manage multiple Git repos")
|
| 4823 | (description "This package provides a command-line tool to manage
|
| 4824 | multiple Git repos.
|
| 4825 |
|
| 4826 | This tool does two things:
|
| 4827 | @itemize
|
| 4828 | @item display the status of multiple Git repos such as branch, modification,
|
| 4829 | commit message side by side
|
| 4830 | @item (batch) delegate Git commands/aliases from any working directory
|
| 4831 | @end itemize
|
| 4832 |
|
| 4833 | If several repos are related, it helps to see their status together.")
|
| 4834 | (license license:expat)))
|
| 4835 |
|
| 4836 | (define-public ghq
|
| 4837 | (package
|
| 4838 | (name "ghq")
|
| 4839 | (version "1.7.1")
|
| 4840 | (home-page "https://github.com/x-motemen/ghq")
|
| 4841 | (source (origin
|
| 4842 | (method git-fetch)
|
| 4843 | (uri (git-reference
|
| 4844 | (url home-page)
|
| 4845 | (commit (string-append "v" version))))
|
| 4846 | (file-name (git-file-name name version))
|
| 4847 | (sha256
|
| 4848 | (base32
|
| 4849 | "0ai3klp3fm5r0idnml5pm55wcvkav3w0s11snlmr0ab1ki8m9sg5"))))
|
| 4850 | (build-system go-build-system)
|
| 4851 | (arguments
|
| 4852 | (list
|
| 4853 | #:install-source? #f
|
| 4854 | #:import-path "github.com/x-motemen/ghq"
|
| 4855 | #:phases
|
| 4856 | #~(modify-phases %standard-phases
|
| 4857 | (add-after 'install 'install-completions
|
| 4858 | (lambda* (#:key outputs import-path #:allow-other-keys)
|
| 4859 | (let* ((out #$output)
|
| 4860 | (bash-completion (string-append out "/etc/bash_completion.d"))
|
| 4861 | (zsh-completion (string-append out "/share/zsh/site-functions")))
|
| 4862 | (with-directory-excursion (string-append "src/" import-path)
|
| 4863 | (mkdir-p bash-completion)
|
| 4864 | (copy-file "misc/bash/_ghq"
|
| 4865 | (string-append bash-completion "/ghq"))
|
| 4866 | (mkdir-p zsh-completion)
|
| 4867 | (copy-file "misc/zsh/_ghq"
|
| 4868 | (string-append zsh-completion "/_ghq")))))))))
|
| 4869 | (native-inputs
|
| 4870 | (list git-minimal/pinned))
|
| 4871 | (inputs
|
| 4872 | (list go-github-com-mattn-go-isatty
|
| 4873 | go-github-com-motemen-go-colorine
|
| 4874 | go-github-com-saracen-walker
|
| 4875 | go-github-com-songmu-gitconfig
|
| 4876 | go-github-com-urfave-cli-v2
|
| 4877 | go-golang-org-x-net
|
| 4878 | go-golang-org-x-sync
|
| 4879 | go-golang-org-x-text))
|
| 4880 | (synopsis "Manage remote repository clones")
|
| 4881 | (description
|
| 4882 | "@code{ghq} provides a way to organize remote repository clones, like
|
| 4883 | @code{go get} does. When you clone a remote repository by @code{ghq get}, ghq
|
| 4884 | makes a directory under a specific root directory (by default @file{~/ghq})
|
| 4885 | using the remote repository URL's host and path.")
|
| 4886 | (license license:expat)))
|
| 4887 |
|
| 4888 | (define-public tkrev
|
| 4889 | (package
|
| 4890 | (name "tkrev")
|
| 4891 | (version "9.4.1")
|
| 4892 | (source
|
| 4893 | (origin
|
| 4894 | (method url-fetch)
|
| 4895 | (uri (string-append
|
| 4896 | "mirror://sourceforge/tkcvs/tkrev_" version ".tar.gz"))
|
| 4897 | (sha256
|
| 4898 | (base32 "0bpfbhkngzmwy476mfc69mkd94l0m2wxznrn0qzd81s450yxjw2q"))))
|
| 4899 | (build-system gnu-build-system)
|
| 4900 | (arguments
|
| 4901 | `(#:phases
|
| 4902 | (modify-phases %standard-phases
|
| 4903 | (delete 'configure)
|
| 4904 | (delete 'build)
|
| 4905 | (replace 'install
|
| 4906 | (lambda* (#:key outputs #:allow-other-keys)
|
| 4907 | (let* ((out (assoc-ref outputs "out"))
|
| 4908 | (bin (string-append out "/bin")))
|
| 4909 | (invoke "wish" "doinstall.tcl" "-nox" out)
|
| 4910 | (install-file "contrib/tkdirdiff" bin))))
|
| 4911 | (add-after 'install 'wrap-programs
|
| 4912 | (lambda* (#:key outputs #:allow-other-keys)
|
| 4913 | (for-each
|
| 4914 | (lambda (file)
|
| 4915 | (wrap-program (string-append (assoc-ref outputs "out")
|
| 4916 | "/bin/" file)
|
| 4917 | `("PATH" ":" prefix (,(dirname (which "wish"))))))
|
| 4918 | '("tkdiff"
|
| 4919 | "tkdirdiff"
|
| 4920 | "tkrev")))))
|
| 4921 | #:tests? #f))
|
| 4922 | (inputs
|
| 4923 | (list bash-minimal tk))
|
| 4924 | (home-page "https://tkcvs.sourceforge.io")
|
| 4925 | (synopsis "Graphical interface to CVS, Subversion, Git, and RCS")
|
| 4926 | (description
|
| 4927 | "TkRev (formerly TkCVS) is a Tcl/Tk-based graphical interface to the CVS,
|
| 4928 | Subversion and Git configuration management systems. It will also help with
|
| 4929 | RCS. It shows the status of the files in the current working directory, and
|
| 4930 | has tools for tagging, merging, checking in/out, and other user operations.
|
| 4931 | TkDiff is included for browsing and merging your changes.")
|
| 4932 | (license license:gpl2+)))
|
| 4933 |
|
| 4934 | (define-public qgit
|
| 4935 | (package
|
| 4936 | (name "qgit")
|
| 4937 | (version "2.13")
|
| 4938 | (source (origin
|
| 4939 | (method git-fetch)
|
| 4940 | (uri (git-reference
|
| 4941 | (url "https://github.com/tibirna/qgit")
|
| 4942 | (commit (string-append "qgit-" version))))
|
| 4943 | (file-name (git-file-name name version))
|
| 4944 | (sha256
|
| 4945 | (base32
|
| 4946 | "0di205cy97qdfgwnmzscw0ar7i734gmqjxz1lyfdrfhwhwapmv44"))))
|
| 4947 | (build-system qt-build-system)
|
| 4948 | (arguments
|
| 4949 | (list #:qtbase qtbase
|
| 4950 | #:tests? #f)) |
| 4951 | (propagated-inputs
|
| 4952 | (list git))
|
| 4953 | (inputs
|
| 4954 | (list qt5compat
|
| 4955 | qtwayland))
|
| 4956 | (home-page "https://github.com/tibirna/qgit")
|
| 4957 | (synopsis "Graphical front-end for git")
|
| 4958 | (description
|
| 4959 | "Qgit is a graphical front-end for git, with features to:
|
| 4960 | @itemize
|
| 4961 | @item view revisions, diffs, files history, files annotation and archive tree,
|
| 4962 | @item commit changes visually cherry picking modified files,
|
| 4963 | @item apply or save patch series from selected commits, drag and drop commits,
|
| 4964 | @item associate commands sequences, scripts and anything else executable to a
|
| 4965 | custom action,
|
| 4966 | @item push/pop commits,
|
| 4967 | @item apply/save/create patches
|
| 4968 | @item and cherry pick single modified files.
|
| 4969 | @end itemize")
|
| 4970 | (license license:gpl3+)))
|
| 4971 |
|
| 4972 | (define-public git-filter-repo
|
| 4973 | (package
|
| 4974 | (name "git-filter-repo")
|
| 4975 | (version "2.47.0")
|
| 4976 | (source
|
| 4977 | (origin
|
| 4978 | (method git-fetch)
|
| 4979 | (uri (git-reference
|
| 4980 | (url "https://github.com/newren/git-filter-repo")
|
| 4981 | (commit (string-append "v" version))))
|
| 4982 | (file-name (git-file-name name version))
|
| 4983 | (sha256
|
| 4984 | (base32
|
| 4985 | "15gwl1gax7rxwjd7q4az25xc1wmmxd1f5q63wkv4n9dab6i4ighx"))
|
| 4986 | |
| 4987 | |
| 4988 | (patches
|
| 4989 | (search-patches "git-filter-repo-2.38.0-generate-doc.patch"
|
| 4990 | "git-filter-repo-2.47.0-dont-crash-on-multiline-stuff.patch"))))
|
| 4991 | (build-system pyproject-build-system)
|
| 4992 | (arguments
|
| 4993 | (list
|
| 4994 | #:modules
|
| 4995 | '(((guix build gnu-build-system) #:prefix gnu:)
|
| 4996 | (guix build pyproject-build-system)
|
| 4997 | (guix build utils)
|
| 4998 | (srfi srfi-26))
|
| 4999 | #:phases
|
| 5000 | #~(modify-phases %standard-phases
|
| 5001 | (delete 'configure)
|
| 5002 | (add-after 'unpack 'unpack-git-source
|
| 5003 | (lambda _
|
| 5004 | (let* ((old-path (getcwd))
|
| 5005 | (doc-source (string-append old-path "/Documentation")))
|
| 5006 | (mkdir-p "git-source")
|
| 5007 | (chdir "git-source")
|
| 5008 | ((assoc-ref %standard-phases 'unpack)
|
| 5009 | #:source
|
| 5010 | #+(package-source (this-package-native-input "git-minimal")))
|
| 5011 | (for-each
|
| 5012 | (cut install-file <> doc-source)
|
| 5013 | (find-files "." "asciidoc\\.conf\\.in$|manpage.*\\.xsl$"))
|
| 5014 | |
| 5015 | (with-directory-excursion doc-source
|
| 5016 | (substitute* "asciidoc.conf.in"
|
| 5017 | (("@GIT_(VERSION|DATE)@") ""))
|
| 5018 | (rename-file "asciidoc.conf.in" "asciidoc.conf"))
|
| 5019 | (chdir old-path)
|
| 5020 | (delete-file-recursively "git-source"))))
|
| 5021 | (add-after 'unpack-git-source 'fix-t9391
|
| 5022 | (lambda* (#:key inputs native-inputs #:allow-other-keys)
|
| 5023 | (substitute* "t/t9391-filter-repo-lib-usage.sh"
|
| 5024 | (("/bin/bash")
|
| 5025 | (search-input-file (or native-inputs inputs) "/bin/bash")))))
|
| 5026 | (add-before 'build 'set-pythondir
|
| 5027 | (lambda* (#:key inputs outputs #:allow-other-keys)
|
| 5028 | (substitute* "Makefile"
|
| 5029 | (("(pythondir = ).*" _ pre)
|
| 5030 | (string-append pre (site-packages inputs outputs))))))
|
| 5031 | (add-after 'build 'build-doc
|
| 5032 | (lambda _
|
| 5033 | (invoke "make" "doc"
|
| 5034 | (string-append "prefix=" #$output)
|
| 5035 | (string-append "VERSION=" #$version))))
|
| 5036 | (add-after 'install 'install-doc
|
| 5037 | (lambda _
|
| 5038 | (let ((man1 (string-append #$output "/share/man/man1")))
|
| 5039 | (copy-recursively "Documentation/man1" man1))))
|
| 5040 | (add-after 'install-doc 'compress-documentation
|
| 5041 | (assoc-ref gnu:%standard-phases 'compress-documentation))
|
| 5042 | (replace 'check
|
| 5043 | (lambda* (#:key tests? #:allow-other-keys)
|
| 5044 | (when tests?
|
| 5045 | (invoke "t/run_tests")))))))
|
| 5046 | (native-inputs
|
| 5047 | (list asciidoc
|
| 5048 | docbook-xsl
|
| 5049 | git-minimal/pinned
|
| 5050 | libxml2 |
| 5051 | xmlto
|
| 5052 | perl
|
| 5053 | python-setuptools
|
| 5054 | python-setuptools-scm
|
| 5055 | rsync))
|
| 5056 | (inputs (list python)) |
| 5057 | (home-page "https://github.com/newren/git-filter-repo")
|
| 5058 | (synopsis "Quickly rewrite Git repository history")
|
| 5059 | (description
|
| 5060 | "@command{git filter-repo} is a versatile tool for rewriting history,
|
| 5061 | which roughly falls into the same space of tool like git filter-branch but
|
| 5062 | with more capabilities. @command{git filter-repo} is now recommended by the
|
| 5063 | Git project instead of @command{git filter-branch}.")
|
| 5064 | (license (list license:expat |
| 5065 | license:gpl2)))) |
| 5066 |
|
| 5067 | (define-public gitlint
|
| 5068 | (package
|
| 5069 | (name "gitlint")
|
| 5070 | (version "0.19.1")
|
| 5071 | (source (origin
|
| 5072 | (method url-fetch)
|
| 5073 | |
| 5074 | |
| 5075 | |
| 5076 | (uri (pypi-uri "gitlint_core" version))
|
| 5077 | (sha256
|
| 5078 | (base32
|
| 5079 | "14lrlbdbnm1biczd54iymbgi5k02hnxmxxh3kr5650gm7yq7gybv"))))
|
| 5080 | (build-system pyproject-build-system)
|
| 5081 | (arguments
|
| 5082 | (list
|
| 5083 | #:tests? #f |
| 5084 | #:phases
|
| 5085 | #~(modify-phases %standard-phases
|
| 5086 | (add-before 'build 'loosen-requirements
|
| 5087 | (lambda* (#:key inputs #:allow-other-keys)
|
| 5088 | (substitute* "gitlint/shell.py"
|
| 5089 | (("'git'") (string-append
|
| 5090 | "'"
|
| 5091 | (search-input-file inputs "bin/git")
|
| 5092 | "'"))
|
| 5093 | |
| 5094 | |
| 5095 | (("if USE_SH_LIB") "if False")))))))
|
| 5096 | (native-inputs
|
| 5097 | (list python-hatch-vcs
|
| 5098 | python-hatchling))
|
| 5099 | (inputs
|
| 5100 | (list git python-arrow python-click python-sh))
|
| 5101 | (home-page "https://jorisroovers.com/gitlint/")
|
| 5102 | (synopsis "Linting Git commit messages")
|
| 5103 | (description
|
| 5104 | "Gitlint is a Git commit message linter written in Python: it checks your
|
| 5105 | commit messages for style.")
|
| 5106 | (license license:expat)))
|
| 5107 |
|
| 5108 | (define-public git-extras
|
| 5109 | (package
|
| 5110 | (name "git-extras")
|
| 5111 | (version "7.5.0")
|
| 5112 | (source
|
| 5113 | (origin
|
| 5114 | (method git-fetch)
|
| 5115 | (uri (git-reference
|
| 5116 | (url "https://github.com/tj/git-extras")
|
| 5117 | (commit version)))
|
| 5118 | (file-name (git-file-name name version))
|
| 5119 | (sha256
|
| 5120 | (base32 "1yrnzhf7z21rrirw55vm9rwaliy4hib3qsibf0y8gs4gsv0lnr06"))))
|
| 5121 | (build-system gnu-build-system)
|
| 5122 | (arguments
|
| 5123 | (list
|
| 5124 | |
| 5125 | |
| 5126 | #:tests? #f
|
| 5127 | #:make-flags
|
| 5128 | #~(list (string-append "PREFIX=" #$output))
|
| 5129 | #:phases
|
| 5130 | #~(modify-phases %standard-phases
|
| 5131 | |
| 5132 | (delete 'bootstrap)
|
| 5133 | (delete 'configure)
|
| 5134 | (delete 'build)
|
| 5135 | (delete 'check)
|
| 5136 | (add-after 'unpack 'hardcode-dependency-paths
|
| 5137 | (lambda* (#:key inputs #:allow-other-keys)
|
| 5138 | |
| 5139 | |
| 5140 | (let* ((temp-file (mkstemp! "temp-file.XXXXXX"))
|
| 5141 | (temp-filename (port-filename temp-file)))
|
| 5142 | (map (lambda (name)
|
| 5143 | (format temp-file "export PATH=$PATH:~a/bin~%"
|
| 5144 | (assoc-ref inputs name)))
|
| 5145 | (list "coreutils-minimal"
|
| 5146 | "curl"
|
| 5147 | "findutils"
|
| 5148 | "gawk"
|
| 5149 | "less"
|
| 5150 | "ncurses"
|
| 5151 | "procps"
|
| 5152 | "rsync"
|
| 5153 | "sed"
|
| 5154 | "util-linux"))
|
| 5155 | |
| 5156 | |
| 5157 | |
| 5158 | |
| 5159 | (substitute* "Makefile"
|
| 5160 | (("head -1 bin/\\$\\(COMMAND\\) > \\$\\(TEMPFILE\\); \\\\" line)
|
| 5161 | (string-append
|
| 5162 | line "\n"
|
| 5163 | "cat " temp-filename " >> $(TEMPFILE); \\")))))))))
|
| 5164 | (propagated-inputs (list git))
|
| 5165 | (inputs
|
| 5166 | (list coreutils-minimal
|
| 5167 | curl
|
| 5168 | findutils
|
| 5169 | gawk
|
| 5170 | less
|
| 5171 | ncurses
|
| 5172 | procps
|
| 5173 | rsync
|
| 5174 | sed
|
| 5175 | util-linux))
|
| 5176 | (home-page "https://github.com/tj/git-extras")
|
| 5177 | (synopsis "Additional Git utilities")
|
| 5178 | (description "The git-extras package provides a collection of additional
|
| 5179 | git commands for repository metrics and summarization, commit and log editing,
|
| 5180 | developer workflow, and project and release management.")
|
| 5181 | (license license:expat)))
|
| 5182 |
|
| 5183 | (define-public ngit-cli
|
| 5184 | (package
|
| 5185 | (name "ngit-cli")
|
| 5186 | (version "2.5.0")
|
| 5187 | (source (origin
|
| 5188 | (method git-fetch)
|
| 5189 | (uri (git-reference
|
| 5190 | (url "https://ngit.dev/ngit.git")
|
| 5191 | (commit (string-append "v" version))))
|
| 5192 | (file-name (git-file-name name version))
|
| 5193 | (patches
|
| 5194 | (search-patches "ngit-cli-tests-libgit2-version.patch"))
|
| 5195 | (sha256
|
| 5196 | (base32
|
| 5197 | "1k3h0rkm9zfpyzwvfp0aix3b8lphz1y5pb431jl2jg8wrarpf4bz"))))
|
| 5198 | (build-system cargo-build-system)
|
| 5199 | (arguments
|
| 5200 | (list
|
| 5201 | #:install-source? #f
|
| 5202 | |
| 5203 | |
| 5204 | #:cargo-test-flags ''("--lib" "--bins" "--benches" "--examples")
|
| 5205 | |
| 5206 | |
| 5207 | |
| 5208 | |
| 5209 | #:cargo-install-paths ''(".")
|
| 5210 | #:phases
|
| 5211 | #~(modify-phases %standard-phases
|
| 5212 | |
| 5213 | |
| 5214 | |
| 5215 | (add-after 'unpack 'hardcode-executable-paths
|
| 5216 | (lambda* (#:key inputs outputs #:allow-other-keys)
|
| 5217 | (let ((git (search-input-file inputs "bin/git"))
|
| 5218 | (ngit (string-append (assoc-ref outputs "out")
|
| 5219 | "/bin/ngit")))
|
| 5220 | (substitute* '("src/bin/ngit/sub_commands/apply.rs"
|
| 5221 | "src/bin/ngit/sub_commands/list.rs"
|
| 5222 | "src/bin/ngit/sub_commands/pr_merge.rs")
|
| 5223 | (("Command::new\\(\"git\"\\)")
|
| 5224 | (string-append "Command::new(\"" git "\")")))
|
| 5225 | (substitute* "src/bin/ngit/sub_commands/init.rs"
|
| 5226 | (("let command = \"git\";")
|
| 5227 | (string-append "let command = \"" git "\";"))
|
| 5228 | (("let command = \"ngit\";")
|
| 5229 | (string-append "let command = \"" ngit "\";"))))))
|
| 5230 | |
| 5231 | |
| 5232 | |
| 5233 | |
| 5234 | |
| 5235 | |
| 5236 | |
| 5237 | |
| 5238 | |
| 5239 | (add-after 'install 'wrap-programs
|
| 5240 | (lambda* (#:key inputs outputs #:allow-other-keys)
|
| 5241 | (let* ((out (assoc-ref outputs "out"))
|
| 5242 | (bin (string-append out "/bin"))
|
| 5243 | (git (dirname (search-input-file inputs "bin/git")))
|
| 5244 | (bash (dirname (search-input-file inputs "bin/bash"))))
|
| 5245 | |
| 5246 | |
| 5247 | |
| 5248 | |
| 5249 | |
| 5250 | |
| 5251 | (wrap-program (string-append bin "/ngit")
|
| 5252 | `("PATH" ":" prefix (,bin ,git ,bash)))
|
| 5253 | |
| 5254 | |
| 5255 | |
| 5256 | |
| 5257 | (wrap-program (string-append bin "/git-remote-nostr")
|
| 5258 | `("PATH" ":" prefix (,git ,bash)))))))))
|
| 5259 | (inputs
|
| 5260 | (cons* bash-minimal git-minimal libgit2-1.9 libsecp256k1 libssh2
|
| 5261 | openssl zlib
|
| 5262 | (cargo-inputs 'ngit-cli)))
|
| 5263 | (native-inputs
|
| 5264 | (list pkg-config))
|
| 5265 | (synopsis "Put Git and collaboration metadata on Nostr")
|
| 5266 | (description
|
| 5267 | "This package provides a way to store git metadata on Nostr
|
| 5268 | (including collaboration stuff like PRs, issues, statuses, ...).")
|
| 5269 | (home-page "https://gitworkshop.dev/danconwaydev.com/ngit")
|
| 5270 | (license license:expat)))
|
| 5271 |
|
| 5272 | (define-public git-quick-stats
|
| 5273 | (package
|
| 5274 | (name "git-quick-stats")
|
| 5275 | (version "2.11.0")
|
| 5276 | (source
|
| 5277 | (origin
|
| 5278 | (method git-fetch)
|
| 5279 | (uri (git-reference
|
| 5280 | (url "https://github.com/git-quick-stats/git-quick-stats")
|
| 5281 | (commit version)))
|
| 5282 | (file-name (git-file-name name version))
|
| 5283 | (sha256
|
| 5284 | (base32 "1sx6idfl0s88xx5wd39cg1540hzkh7p6yad0l56qnf9v2i38hra1"))))
|
| 5285 | (build-system gnu-build-system)
|
| 5286 | (arguments
|
| 5287 | (list
|
| 5288 | #:test-target "test"
|
| 5289 | #:tests? #f |
| 5290 | #:make-flags #~(list (string-append "PREFIX=" #$output))
|
| 5291 | #:phases
|
| 5292 | #~(modify-phases %standard-phases
|
| 5293 | (delete 'configure)
|
| 5294 | (add-after 'install 'wrap-program
|
| 5295 | (lambda _
|
| 5296 | (wrap-program (string-append #$output "/bin/git-quick-stats")
|
| 5297 | '("PATH" ":" prefix
|
| 5298 | #$(map (lambda (x)
|
| 5299 | (file-append (cadr x) "/bin"))
|
| 5300 | (package-inputs this-package)))))))))
|
| 5301 | (native-inputs (list which))
|
| 5302 | (inputs (list bash-minimal
|
| 5303 | coreutils-minimal
|
| 5304 | gawk
|
| 5305 | git-minimal/pinned
|
| 5306 | grep
|
| 5307 | ncurses
|
| 5308 | util-linux))
|
| 5309 | (home-page "https://git-quick-stats.sh")
|
| 5310 | (synopsis "Access various statistics in git repositories")
|
| 5311 | (description
|
| 5312 | "Any git repository may contain tons of information about commits,
|
| 5313 | contributors, and files. Extracting this information is not always trivial,
|
| 5314 | mostly because there are a gazillion options to a gazillion git commands.
|
| 5315 | This package provides a cleaner interface to access this information.")
|
| 5316 | (license license:expat)))
|
| 5317 |
|
| 5318 | (define-public hut
|
| 5319 | (package
|
| 5320 | (name "hut")
|
| 5321 | (version "0.8.0")
|
| 5322 | (source
|
| 5323 | (origin
|
| 5324 | (method git-fetch)
|
| 5325 | (uri (git-reference
|
| 5326 | (url "https://git.sr.ht/~xenrox/hut")
|
| 5327 | (commit (string-append "v" version))))
|
| 5328 | (file-name (git-file-name name version))
|
| 5329 | (sha256
|
| 5330 | (base32 "0q8g43szgj16jhhzj1y362a85cxmrf6kmy0czrgjhlp5xirnmcbm"))))
|
| 5331 | (build-system go-build-system)
|
| 5332 | (arguments
|
| 5333 | (list
|
| 5334 | #:import-path "git.sr.ht/~xenrox/hut"
|
| 5335 | #:phases
|
| 5336 | #~(modify-phases %standard-phases
|
| 5337 | (replace 'build
|
| 5338 | (lambda* (#:key import-path #:allow-other-keys)
|
| 5339 | (with-directory-excursion (string-append "src/" import-path)
|
| 5340 | |
| 5341 | (setenv "CGO_LDFLAGS" "-s -w")
|
| 5342 | (invoke "make" "all" "GOFLAGS=-v -x"))))
|
| 5343 | (replace 'install
|
| 5344 | (lambda* (#:key import-path #:allow-other-keys)
|
| 5345 | (with-directory-excursion (string-append "src/" import-path)
|
| 5346 | (invoke "make" "install"
|
| 5347 | (string-append "PREFIX=" #$output))))))
|
| 5348 | #:test-flags #~(list "-vet=off")))
|
| 5349 | (native-inputs
|
| 5350 | (list scdoc))
|
| 5351 | (inputs
|
| 5352 | (list go-codeberg-org-emersion-go-scfg
|
| 5353 | go-git-sr-ht-emersion-gqlclient
|
| 5354 | go-github-com-dustin-go-humanize
|
| 5355 | go-github-com-google-shlex
|
| 5356 | go-github-com-juju-ansiterm
|
| 5357 | go-github-com-spf13-cobra
|
| 5358 | go-golang-org-x-term))
|
| 5359 | (home-page "https://git.sr.ht/~xenrox/hut")
|
| 5360 | (synopsis "CLI tool for sr.ht")
|
| 5361 | (description "@command{hut} is a CLI tool for
|
| 5362 | @uref{https://sr.ht/~sircmpwn/sourcehut/, sr.ht}. It helps you interact with
|
| 5363 | sr.ht's public services:
|
| 5364 | @table @asis
|
| 5365 | @item builds
|
| 5366 | submit and manage build jobs
|
| 5367 | @item git
|
| 5368 | create, and manage git repositories and artifacts
|
| 5369 | @item hg
|
| 5370 | list Mercurial repositories
|
| 5371 | @item lists
|
| 5372 | manage mailing lists and patches
|
| 5373 | @item meta
|
| 5374 | manage PGP, and SSH keys
|
| 5375 | @item pages
|
| 5376 | publish and manage hosted websites
|
| 5377 | @item paste
|
| 5378 | create and manage pastes
|
| 5379 | @item todo
|
| 5380 | create and manage trackers, tickets
|
| 5381 | @item graphql
|
| 5382 | interact with GraphQL APIs directly
|
| 5383 | @end table")
|
| 5384 | (license license:agpl3)))
|
| 5385 |
|
| 5386 | (define-public commit-patch
|
| 5387 | (package
|
| 5388 | (name "commit-patch")
|
| 5389 | (version "2.6.2")
|
| 5390 | (source (origin
|
| 5391 | (method url-fetch)
|
| 5392 | (uri (string-append
|
| 5393 | "https://github.com/caldwell/commit-patch/releases/download/"
|
| 5394 | version "/commit-patch-" version ".tar.gz"))
|
| 5395 | (sha256
|
| 5396 | (base32
|
| 5397 | "0v11vjyisk243zi0ym90bnqb229j7iaqx1lwqdkszxzn1yxwq4ck"))))
|
| 5398 | (build-system copy-build-system)
|
| 5399 | (arguments
|
| 5400 | (list #:phases #~(modify-phases %standard-phases
|
| 5401 | (add-after 'unpack 'fix-paths
|
| 5402 | (lambda* (#:key inputs #:allow-other-keys)
|
| 5403 | (patch-shebang "commit-patch"))))
|
| 5404 | #:install-plan ''(("commit-patch" "bin/")
|
| 5405 | ("commit-patch-buffer.el"
|
| 5406 | "share/emacs/site-lisp/"))))
|
| 5407 | (inputs (list perl))
|
| 5408 | (propagated-inputs (list patchutils))
|
| 5409 | (synopsis "Commit parts of changes to VCS repositories")
|
| 5410 | (description
|
| 5411 | "commit-patch is a utility that lets you check in select portions of a
|
| 5412 | file into Darcs, Git, Mercurial, Bazaar, Subversion, or CVS repositories. It
|
| 5413 | comes as a command line app and also an Emacs interface.")
|
| 5414 | (home-page "https://porkrind.org/commit-patch/")
|
| 5415 | (license license:gpl2+)))
|
| 5416 |
|
| 5417 | (define-public git-sizer
|
| 5418 | (package
|
| 5419 | (name "git-sizer")
|
| 5420 | (version "1.5.0")
|
| 5421 | (source
|
| 5422 | (origin
|
| 5423 | (method git-fetch)
|
| 5424 | (uri (git-reference
|
| 5425 | (url "https://github.com/github/git-sizer")
|
| 5426 | (commit (string-append "v" version))))
|
| 5427 | (file-name (git-file-name name version))
|
| 5428 | (sha256
|
| 5429 | (base32 "1b4sl4djnfaxwph41y4bh9yal4bpd1nz4403ryp7nzna7h2x0zis"))))
|
| 5430 | (build-system go-build-system)
|
| 5431 | (arguments
|
| 5432 | (list
|
| 5433 | #:install-source? #f
|
| 5434 | #:import-path "github.com/github/git-sizer"
|
| 5435 | #:test-flags
|
| 5436 | |
| 5437 | #~(list "-skip" "TestExec|TestSubmodule")
|
| 5438 | #:phases
|
| 5439 | #~(modify-phases %standard-phases
|
| 5440 | (add-after 'unpack 'fix-paths
|
| 5441 | (lambda* (#:key inputs #:allow-other-keys)
|
| 5442 | (substitute* '("src/github.com/github/git-sizer/git/git.go")
|
| 5443 | (("gitBin, err := findGitBin\\(\\)")
|
| 5444 | (string-append "gitBin := \""
|
| 5445 | (search-input-file inputs "bin/git")
|
| 5446 | "\"\n\tvar err error")))
|
| 5447 | (substitute* '("src/github.com/github/git-sizer/git_sizer_test.go")
|
| 5448 | (("bin/git-sizer")
|
| 5449 | (string-append #$output "/bin/git-sizer"))))))))
|
| 5450 | (inputs
|
| 5451 | (list git-minimal))
|
| 5452 | (native-inputs
|
| 5453 | (list go-github-com-cli-safeexec
|
| 5454 | go-github-com-pmezard-go-difflib
|
| 5455 | go-github-com-spf13-pflag
|
| 5456 | go-github-com-stretchr-testify
|
| 5457 | go-go-uber-org-goleak
|
| 5458 | go-golang-org-x-sync
|
| 5459 | go-gopkg-in-yaml-v3))
|
| 5460 | (home-page "https://github.com/github/git-sizer")
|
| 5461 | (synopsis "Analyze size of a Git repo")
|
| 5462 | (description "Compute various size metrics for a Git repository, flagging
|
| 5463 | those that might cause problems or inconvenience.")
|
| 5464 | (license license:expat)))
|
| 5465 |
|
| 5466 | |
| 5467 | |
| 5468 | |
| 5469 | |
| 5470 | |