diff options
author | Efraim Flashner <efraim@flashner.co.il> | 2024-01-24 10:04:24 +0200 |
---|---|---|
committer | Efraim Flashner <efraim@flashner.co.il> | 2024-02-20 13:58:29 +0200 |
commit | 92a7b944d934cc4f64b9ab68136cb4b831b5bf1c (patch) | |
tree | e4edd63656c644c64a42b04037793aa8b9baf889 /gnu | |
parent | edea52e2fe6cfc47ff8811cd611feefa1ae4a233 (diff) |
gnu: git-absorb: Update to 0.6.11.
* gnu/packages/rust-apps.scm (git-absorb): Update to 0.6.11.
[source]: Add snippet to relax version requirements, delete manpage.
[arguments]: Don't install the sources. Remove phase relaxing version
requirements. Adjust 'install-manual-page phase to generate the manpage.
[cargo-inputs]: Replace rust-git2-0.13 with 0.18.
[native-inputs]: Add asciidoc.
[inputs]: Add libgit2-1.7. Remoev libgit2-1.3.
Change-Id: I45d56739ed5d01f891a35a91d275b23ab381d9fd
Diffstat (limited to 'gnu')
-rw-r--r-- | gnu/packages/rust-apps.scm | 24 |
1 files changed, 14 insertions, 10 deletions
diff --git a/gnu/packages/rust-apps.scm b/gnu/packages/rust-apps.scm index ae99790d92..88d27cede7 100644 --- a/gnu/packages/rust-apps.scm +++ b/gnu/packages/rust-apps.scm @@ -2500,7 +2500,7 @@ Full featured offline client with caching support.") (define-public git-absorb (package (name "git-absorb") - (version "0.6.6") + (version "0.6.11") (source (origin ;; crates.io does not include the manual page. @@ -2510,13 +2510,19 @@ Full featured offline client with caching support.") (commit version))) (file-name (git-file-name name version)) (sha256 - (base32 "04v10bn24acify34vh5ayymsr1flcyb05f3az9k1s2m6nlxy5gb9")))) + (base32 "1mgqmbk2rz87blas86k340nshiy0zbw9pq76b8nqknpgghm4k029")) + (snippet + #~(begin (use-modules (guix build utils)) + (substitute* "Cargo.toml" + (("\"~") "\"")) + (delete-file "Documentation/git-absorb.1"))))) (build-system cargo-build-system) (arguments - `(#:cargo-inputs + `(#:install-source? #f + #:cargo-inputs (("rust-anyhow" ,rust-anyhow-1) ("rust-clap" ,rust-clap-2) - ("rust-git2" ,rust-git2-0.13) + ("rust-git2" ,rust-git2-0.18) ("rust-memchr" ,rust-memchr-2) ("rust-slog" ,rust-slog-2) ("rust-slog-async" ,rust-slog-async-2) @@ -2525,19 +2531,17 @@ Full featured offline client with caching support.") (("rust-tempfile" ,rust-tempfile-3)) #:phases (modify-phases %standard-phases - (add-after 'unpack 'relax-version-requirements - (lambda _ - (substitute* "Cargo.toml" - (("\"~") "\"")))) (add-after 'install 'install-manual-page (lambda* (#:key outputs #:allow-other-keys) (let* ((out (assoc-ref outputs "out")) (man (string-append out "/share/man/man1"))) + (with-directory-excursion "Documentation" + (invoke "a2x" "-L" "-d" "manpage" "-f" "manpage" "git-absorb.txt")) (install-file "Documentation/git-absorb.1" man))))))) (native-inputs - (list pkg-config)) + (list asciidoc pkg-config)) (inputs - (list libgit2-1.3 zlib)) + (list libgit2-1.7 zlib)) (home-page "https://github.com/tummychow/git-absorb") (synopsis "Git tool for making automatic fixup commits") (description |