[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[bug#65351] [PATCH 7/7] gnu: Add cgit-pink.
From: |
Arun Isaac |
Subject: |
[bug#65351] [PATCH 7/7] gnu: Add cgit-pink. |
Date: |
Fri, 18 Aug 2023 10:03:19 +0100 |
* gnu/packages/version-control.scm (cgit-pink): New variable.
---
gnu/packages/version-control.scm | 43 ++++++++++++++++++++++++++++++++
1 file changed, 43 insertions(+)
diff --git a/gnu/packages/version-control.scm b/gnu/packages/version-control.scm
index bc2b06c0d5..00b2f66f5a 100644
--- a/gnu/packages/version-control.scm
+++ b/gnu/packages/version-control.scm
@@ -1123,6 +1123,49 @@ (define-public cgit
a built-in cache to decrease server I/O pressure.")
(license license:gpl2)))
+(define-public cgit-pink
+ (package
+ (inherit cgit)
+ (name "cgit-pink")
+ (version "1.4.1")
+ (source (origin
+ (method git-fetch)
+ (uri (git-reference
+ (url "https://git.causal.agency/cgit-pink")
+ (commit version)))
+ (file-name (git-file-name name version))
+ (sha256
+ (base32
+ "0yp6rm60pz8pj8wrm1aglix51hhy00al86mm94ag2bifc92q23ar"))))
+ (arguments
+ (substitute-keyword-arguments (package-arguments cgit)
+ ((#:tests? _ #f)
+ (not (%current-target-system)))
+ ((#:make-flags make-flags '())
+ #~(list (string-append "CC=" #$(cc-for-target))
+ (string-append "PERL_PATH="
+ (search-input-file %build-inputs "/bin/perl"))
+ ;; It is important to set an absolute path in SHELL_PATH
+ ;; because it is used as the shebang of generated scripts.
+ (string-append "SHELL_PATH="
+ (search-input-file %build-inputs "/bin/sh"))))))
+ (native-inputs
+ (modify-inputs (package-native-inputs cgit)
+ (replace "git-source"
+ ;; cgit-pink is tightly bound to git. Use GIT_VER from the Makefile,
+ ;; which may not match the current (package-version git).
+ (origin
+ (method url-fetch)
+ (uri "mirror://kernel.org/software/scm/git/git-2.36.1.tar.xz")
+ (sha256
+ (base32
+ "0w43a35mhc2qf2gjkxjlnkf2lq8g0snf34iy5gqx2678yq7llpa0"))))
+ (append gnu-gettext perl)))
+ (home-page "https://git.causal.agency/cgit-pink/about/")
+ (description "cgit-pink is a fast web interface for the Git SCM, using a
+built-in cache to decrease server I/O pressure. cgit-pink is a fork of
+cgit.")))
+
(define-public python-git-multimail
(package
(name "python-git-multimail")
--
2.39.2
- [bug#65351] [PATCH 4/7] gnu: cgit: Use G-expressions., (continued)
- [bug#65351] [PATCH 4/7] gnu: cgit: Use G-expressions., Liliana Marie Prikler, 2023/08/18
- [bug#65351] [PATCH 4/7] gnu: cgit: Use G-expressions., Arun Isaac, 2023/08/21
- [bug#65351] [PATCH 4/7] gnu: cgit: Use G-expressions., Liliana Marie Prikler, 2023/08/21
- [bug#65351] [PATCH 4/7] gnu: cgit: Use G-expressions., (, 2023/08/21
- [bug#65351] [PATCH 4/7] gnu: cgit: Use G-expressions., Arun Isaac, 2023/08/24
- [bug#65351] [PATCH 5/7] gnu: cgit: Use cc-for-target., Arun Isaac, 2023/08/18
- [bug#65351] [PATCH 6/7] gnu: cgit: Add bash-minimal to inputs., Arun Isaac, 2023/08/18
- [bug#65351] [PATCH 3/7] gnu: cgit: Do not return #t from custom phases., Arun Isaac, 2023/08/18
- [bug#65351] [PATCH 7/7] gnu: Add cgit-pink.,
Arun Isaac <=
[bug#65351] [PATCH] gnu: Add cgit-pink., Arun Isaac, 2023/08/18