1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103
|
;;; Guile-Git --- GNU Guile bindings of libgit2
;;; Copyright © 2016 Amirouche Boubekki <amirouche@hypermove.net>
;;; Copyright © 2016, 2017 Erik Edrosa <erik.edrosa@gmail.com>
;;; Copyright © 2024 Ludovic Courtès <ludo@gnu.org>
;;;
;;; This file is part of Guile-Git.
;;;
;;; Guile-Git 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.
;;;
;;; Guile-Git 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 Guile-Git. If not, see <http://www.gnu.org/licenses/>.
(define-module (guile-git-package)
#:use-module (guix) ;XXX: this helps 'current-source-directory'
#:use-module ((guix licenses) #:select (gpl3+))
#:use-module (guix gexp)
#:use-module ((guix git-download) #:select (git-predicate))
#:use-module (guix packages)
#:use-module (guix build-system gnu)
#:use-module (gnu packages autotools)
#:use-module (gnu packages guile)
#:use-module (gnu packages pkg-config)
#:use-module (gnu packages ssh)
#:use-module (gnu packages texinfo)
#:use-module (gnu packages version-control))
(define %srcdir
(string-append (current-source-directory) "/../.."))
(define-public guile-git
(package
(name "guile-git")
(version "42") ;take precedence over the version provided by Guix
(source (local-file %srcdir "guile-git-checkout"
#:recursive? #t
#:select? (git-predicate %srcdir)))
(build-system gnu-build-system)
(native-inputs
(list autoconf
automake
pkg-config
texinfo
guile-3.0 ;for 'guild compile'
guile-bytestructures ;needed when cross-compiling
openssh
git-minimal))
(inputs
(list guile-3.0 libgit2-1.8))
(propagated-inputs
(list guile-bytestructures))
(synopsis "Guile bindings for libgit2")
(description
"This package provides Guile bindings to libgit2, a library to
manipulate repositories of the Git version control system.")
(home-page "https://gitlab.com/guile-git/guile-git.git")
(license gpl3+)))
(define-public guile-git/libgit2-1.3
(package/inherit guile-git
(name "guile-git-with-libgit2-1.3")
(inputs (modify-inputs (package-inputs guile-git)
(replace "libgit2" libgit2-1.3)))))
(define-public guile-git/libgit2-1.4
(package/inherit guile-git
(name "guile-git-with-libgit2-1.4")
(inputs (modify-inputs (package-inputs guile-git)
(replace "libgit2" libgit2-1.4)))))
(define-public guile-git/libgit2-1.5
(package/inherit guile-git
(name "guile-git-with-libgit2-1.5")
(inputs (modify-inputs (package-inputs guile-git)
(replace "libgit2" libgit2-1.5)))))
(define-public guile-git/libgit2-1.6
(package/inherit guile-git
(name "guile-git-with-libgit2-1.6")
(inputs (modify-inputs (package-inputs guile-git)
(replace "libgit2" libgit2-1.6)))))
(define-public guile-git/libgit2-1.7
(package/inherit guile-git
(name "guile-git-with-libgit2-1.7")
(inputs (modify-inputs (package-inputs guile-git)
(replace "libgit2" libgit2-1.7)))))
(define with-guile-2.2
(package-input-rewriting `((,guile-3.0 . ,guile-2.2))))
(define-public guile-git/guile-2.2
(with-guile-2.2 (package/inherit guile-git
(name "guile2.2-git"))))
guile-git
|