aboutsummaryrefslogtreecommitdiff
path: root/guix/forge/guile-git.scm
diff options
context:
space:
mode:
authorArun Isaac2023-07-05 20:47:53 +0100
committerArun Isaac2023-07-05 21:40:09 +0100
commit07da703b69f192116da55d674f874b4ed083acf8 (patch)
tree6db51cd37c45cebe0ecd96dbd2f10170c4d67340 /guix/forge/guile-git.scm
parent6e37c6a8d8e025fbbce9c9ed08c25cc361b32dc6 (diff)
downloadguix-forge-07da703b69f192116da55d674f874b4ed083acf8.tar.gz
guix-forge-07da703b69f192116da55d674f874b4ed083acf8.tar.lz
guix-forge-07da703b69f192116da55d674f874b4ed083acf8.zip
tissue: Use latest tissue with a patched libgit2.
* guix/forge/guile-git.scm: New file. * guix/forge/tissue.scm: Import guile-git from (forge guile-git), (guix git-download) and (guix packages). Import tissue with a guix: prefix. (tissue): New public variable.
Diffstat (limited to 'guix/forge/guile-git.scm')
-rw-r--r--guix/forge/guile-git.scm49
1 files changed, 49 insertions, 0 deletions
diff --git a/guix/forge/guile-git.scm b/guix/forge/guile-git.scm
new file mode 100644
index 0000000..f582b7d
--- /dev/null
+++ b/guix/forge/guile-git.scm
@@ -0,0 +1,49 @@
+;;; guix-forge --- Guix software forge meta-service
+;;; Copyright © 2023 Arun Isaac <arunisaac@systemreboot.net>
+;;;
+;;; This file is part of guix-forge.
+;;;
+;;; guix-forge is free software: you can redistribute it and/or modify
+;;; it under the terms of the GNU General Public License as published
+;;; by the Free Software Foundation, either version 3 of the License,
+;;; or (at your option) any later version.
+;;;
+;;; guix-forge is distributed in the hope that it will be useful, but
+;;; WITHOUT ANY WARRANTY; without even the implied warranty of
+;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+;;; General Public License for more details.
+;;;
+;;; You should have received a copy of the GNU General Public License
+;;; along with guix-forge. If not, see
+;;; <https://www.gnu.org/licenses/>.
+
+(define-module (forge guile-git)
+ #:use-module ((gnu packages guile) #:select (guile-git) #:prefix guix:)
+ #:use-module ((gnu packages version-control) #:select (libgit2-1.3) #:prefix guix:)
+ #:use-module (guix gexp)
+ #:use-module (guix packages)
+ #:use-module (guix utils))
+
+;; Use a patched libgit2 until there is a way to disable repository
+;; ownership validation using the API. See
+;; https://issues.guix.gnu.org/55399
+(define libgit2-1.3
+ (package
+ (inherit guix:libgit2-1.3)
+ (name "libgit2")
+ (arguments
+ (substitute-keyword-arguments (package-arguments guix:libgit2-1.3)
+ ((#:phases phases #~%standard-phases)
+ #~(modify-phases #$phases
+ (add-after 'unpack 'disable-ownership-validation
+ (lambda _
+ (substitute* "src/repository.c"
+ (("git_repository__validate_ownership = true")
+ "git_repository__validate_ownership = false"))))))))))
+
+(define-public guile-git
+ (package
+ (inherit guix:guile-git)
+ (inputs
+ (modify-inputs (package-inputs guix:guile-git)
+ (replace "libgit2" libgit2-1.3)))))