guix.scm
| 1 | ;;;; Copyright (C) 2020, 2021 Julien Lepiller <julien@lepiller.eu> |
| 2 | ;;;; |
| 3 | ;;;; SPDX-License-Identifier: AGPL-3.0-or-later |
| 4 | ;;;; |
| 5 | ;;;; This program is free software: you can redistribute it and/or modify |
| 6 | ;;;; it under the terms of the GNU Affero General Public License as published by |
| 7 | ;;;; the Free Software Foundation, either version 3 of the License, or |
| 8 | ;;;; (at your option) any later version. |
| 9 | ;;;; |
| 10 | ;;;; This program is distributed in the hope that it will be useful, |
| 11 | ;;;; but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 12 | ;;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 13 | ;;;; GNU Affero General Public License for more details. |
| 14 | ;;;; |
| 15 | ;;;; You should have received a copy of the GNU Affero General Public License |
| 16 | ;;;; along with this program. If not, see <https://www.gnu.org/licenses/>. |
| 17 | ;;;; |
| 18 | |
| 19 | (use-modules (guix packages) |
| 20 | (guix licenses) |
| 21 | (guix build-system gnu) |
| 22 | (guix git-download) |
| 23 | (guix git) |
| 24 | (gnu packages autotools) |
| 25 | (gnu packages gnupg) |
| 26 | (gnu packages guile) |
| 27 | (gnu packages guile-xyz) |
| 28 | (gnu packages pkg-config) |
| 29 | (gnu packages texinfo) |
| 30 | (gnu packages tls)) |
| 31 | |
| 32 | (define my-guile-syntax-highlight |
| 33 | (package |
| 34 | (inherit guile-syntax-highlight) |
| 35 | (source (origin |
| 36 | (method git-fetch) |
| 37 | (uri (git-reference |
| 38 | (url "https://git.dthompson.us/guile-syntax-highlight.git") |
| 39 | (commit "897fa5156ff41588e0d281eb00e4e94de63ccd8a"))) |
| 40 | (file-name (git-file-name "guile-syntax-highlight" "0.1.897fa51")) |
| 41 | (sha256 |
| 42 | (base32 |
| 43 | "18zlg4mkgd3swgv2ggfz91ivnnzc0zhvc9ybgrxg1y762va9hyvj")))) |
| 44 | (native-inputs |
| 45 | `(("autoconf" ,autoconf) |
| 46 | ("automake" ,automake) |
| 47 | ("texinfo" ,texinfo) |
| 48 | ,@(package-native-inputs guile-syntax-highlight))))) |
| 49 | |
| 50 | (package |
| 51 | (name "gitile") |
| 52 | (version "0.1") |
| 53 | (source (git-checkout (url (dirname (current-filename))))) |
| 54 | (build-system gnu-build-system) |
| 55 | (propagated-inputs |
| 56 | `(("guile-commonmark" ,guile-commonmark) |
| 57 | ("guile-git" ,guile-git) |
| 58 | ("guile-gcrypt" ,guile-gcrypt) |
| 59 | ("guile-syntax-highlight" ,my-guile-syntax-highlight) |
| 60 | ("gnutls" ,gnutls) |
| 61 | ("guile-fibers" ,guile-fibers))) |
| 62 | (native-inputs |
| 63 | `(("autoconf" ,autoconf) |
| 64 | ("automake" ,automake) |
| 65 | ("libtool" ,libtool) |
| 66 | ("pkg-config" ,pkg-config) |
| 67 | ("guile" ,guile-3.0))) |
| 68 | (home-page "https://git.lepiller.eu") |
| 69 | (synopsis "") |
| 70 | (description "") |
| 71 | (license gpl3+)) |
| 72 |