summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorjgart <jgart@dismail.de>2021-12-06 00:51:32 -0500
committerNicolas Goaziou <mail@nicolasgoaziou.fr>2021-12-06 10:47:09 +0100
commit326e5321775fa6b79d5ba27dd1fc72ab2c49bc55 (patch)
tree38492e276eb6351c9b7884ad9b8b76e05bfe5874
parent96416e4256bbb68cbd717c179890c512b9662b00 (diff)
gnu: Add git-absorb.
* gnu/packages/rust-apps.scm (git-absorb): New variable. Signed-off-by: Nicolas Goaziou <mail@nicolasgoaziou.fr>
-rw-r--r--gnu/packages/rust-apps.scm51
1 files changed, 51 insertions, 0 deletions
diff --git a/gnu/packages/rust-apps.scm b/gnu/packages/rust-apps.scm
index 51075b54489..42846dd36e8 100644
--- a/gnu/packages/rust-apps.scm
+++ b/gnu/packages/rust-apps.scm
@@ -13,6 +13,7 @@
13;;; Copyright © 2021 Alexandru-Sergiu Marton <brown121407@posteo.ro> 13;;; Copyright © 2021 Alexandru-Sergiu Marton <brown121407@posteo.ro>
14;;; Copyright © 2021 Maxim Cournoyer <maxim.cournoyer@gmail.com> 14;;; Copyright © 2021 Maxim Cournoyer <maxim.cournoyer@gmail.com>
15;;; Copyright © 2021 Petr Hodina <phodina@protonmail.com> 15;;; Copyright © 2021 Petr Hodina <phodina@protonmail.com>
16;;; Copyright © 2021 jgart <jgart@dismail.de>
16;;; 17;;;
17;;; This file is part of GNU Guix. 18;;; This file is part of GNU Guix.
18;;; 19;;;
@@ -1234,6 +1235,56 @@ C-compatible) software.")
1234Full featured offline client with caching support.") 1235Full featured offline client with caching support.")
1235 (license (list license:expat license:asl2.0)))) 1236 (license (list license:expat license:asl2.0))))
1236 1237
1238(define-public git-absorb
1239 (package
1240 (name "git-absorb")
1241 (version "0.6.6")
1242 (source
1243 (origin
1244 ;; crates.io does not include the manual page.
1245 (method git-fetch)
1246 (uri (git-reference
1247 (url "https://github.com/tummychow/git-absorb")
1248 (commit version)))
1249 (file-name (git-file-name name version))
1250 (sha256
1251 (base32 "04v10bn24acify34vh5ayymsr1flcyb05f3az9k1s2m6nlxy5gb9"))))
1252 (build-system cargo-build-system)
1253 (arguments
1254 `(#:cargo-inputs
1255 (("rust-anyhow" ,rust-anyhow-1)
1256 ("rust-clap" ,rust-clap-2)
1257 ("rust-git2" ,rust-git2-0.13)
1258 ("rust-memchr" ,rust-memchr-2)
1259 ("rust-slog" ,rust-slog-2)
1260 ("rust-slog-async" ,rust-slog-async-2)
1261 ("rust-slog-term" ,rust-slog-term-2))
1262 #:cargo-development-inputs
1263 (("rust-tempfile" ,rust-tempfile-3))
1264 #:phases
1265 (modify-phases %standard-phases
1266 (add-after 'unpack 'relax-version-requirements
1267 (lambda _
1268 (substitute* "Cargo.toml"
1269 (("2.5") "2")
1270 (("~2.3\"") "2\"")
1271 (("3.1") "3"))))
1272 (add-after 'install 'install-manual-page
1273 (lambda* (#:key outputs #:allow-other-keys)
1274 (let* ((out (assoc-ref outputs "out"))
1275 (man (string-append out "/share/man/man1")))
1276 (install-file "Documentation/git-absorb.1" man)))))))
1277 (inputs
1278 `(("zlib" ,zlib)))
1279 (home-page "https://github.com/tummychow/git-absorb")
1280 (synopsis "Git tool for making automatic fixup commits")
1281 (description
1282 "@code{git absorb} automatically absorbs staged changes into their
1283current branch. @code{git absorb} will automatically identify which commits
1284are safe to modify, and which staged changes belong to each of those commits.
1285It will then write @code{fixup!} commits for each of those changes.")
1286 (license license:bsd-3)))
1287
1237(define-public zoxide 1288(define-public zoxide
1238 (package 1289 (package
1239 (name "zoxide") 1290 (name "zoxide")