From 07da703b69f192116da55d674f874b4ed083acf8 Mon Sep 17 00:00:00 2001 From: Arun Isaac Date: Wed, 5 Jul 2023 20:47:53 +0100 Subject: 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. --- guix/forge/guile-git.scm | 49 ++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 49 insertions(+) create mode 100644 guix/forge/guile-git.scm (limited to 'guix/forge/guile-git.scm') 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 +;;; +;;; 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 +;;; . + +(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))))) -- cgit v1.2.3