~ruther/guix-local

71c496bee754f6c69af6402d1466a88dddfcccde — Arun Isaac 1 year, 2 months ago 32cda2f
gnu: cgit-pink: Correctly replace git-source inherited from cgit.

Fixes guix/guix#908

* gnu/packages/version-control.scm (cgit-pink)[arguments]: Replace unpack-git
phase to use correct git-source.tar.xz.
[inputs]: Replace "git-source.tar.xz" instead of "git-source".

Change-Id: Ia4b7e7be644e5da47f3989d53c8a1bff3d333b69
Signed-off-by: Sharlatan Hellseher <sharlatanus@gmail.com>
1 files changed, 10 insertions(+), 3 deletions(-)

M gnu/packages/version-control.scm
M gnu/packages/version-control.scm => gnu/packages/version-control.scm +10 -3
@@ 21,7 21,7 @@
;;; Copyright © 2018 Sou Bunnbu <iyzsong@member.fsf.org>
;;; Copyright © 2018 Christopher Baines <mail@cbaines.net>
;;; Copyright © 2018 Timothy Sample <samplet@ngyro.com>
;;; Copyright © 2018 Arun Isaac <arunisaac@systemreboot.net>
;;; Copyright © 2018, 2025 Arun Isaac <arunisaac@systemreboot.net>
;;; Copyright © 2019 Jovany Leandro G.C <bit4bit@riseup.net>
;;; Copyright © 2019 Kei Kebreau <kkebreau@posteo.net>
;;; Copyright © 2019, 2020 Alex Griffin <a@ajgrf.com>


@@ 1853,10 1853,17 @@ a built-in cache to decrease server I/O pressure.")
                ;; because it is used as the shebang of generated scripts that
                ;; are invoked during the test phase.
                (string-append "SHELL_PATH="
                               (search-input-file %build-inputs "/bin/sh"))))))
                               (search-input-file %build-inputs "/bin/sh"))))
       ((#:phases phases #~%standard-phases)
        #~(modify-phases #$phases
            (replace 'unpack-git
              (lambda _
                ;; Unpack the source of git into the 'git' directory.
                (invoke "tar" "--strip-components=1" "-C" "git" "-xf"
                        #$(this-package-input "git-source.tar.xz"))))))))
    (inputs
     (modify-inputs (package-inputs cgit)
       (replace "git-source"
       (replace "git-source.tar.xz"
         ;; cgit-pink is tightly bound to git. Use GIT_VER from the Makefile,
         ;; which may not match the current (package-version git).
         (origin