DRAFT irc: Remove 0.4.2 interface. -- after 0.5.0 release.
[8sync.git] / guix.scm
1 ;;; 8sync --- Asynchronous programming for Guile
2 ;;; Copyright (C) 2016, 2023 Janneke Nieuwenhuizen <janneke@gnu.org>
3 ;;; Copyright (C) 2017 Christopher Allan Webber <cwebber@dustycloud.org>
4 ;;;
5 ;;; This file is part of 8sync.
6 ;;; However, unlike most of 8sync, which is under the LGPLv3+, this
7 ;;; file in particular is licensed under GPLv3+.
8 ;;; Guix is also licensed under GPLv3+.
9 ;;;
10 ;;; This program is free software: you can redistribute it and/or modify
11 ;;; it under the terms of the GNU General Public License as published by
12 ;;; the Free Software Foundation, either version 3 of the License, or
13 ;;; (at your option) any later version.
14 ;;;
15 ;;; This program is distributed in the hope that it will be useful,
16 ;;; but WITHOUT ANY WARRANTY; without even the implied warranty of
17 ;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
18 ;;; GNU General Public License for more details.
19 ;;; 
20 ;;; You should have received a copy of the GNU General Public License
21 ;;; along with this program.  If not, see <http://www.gnu.org/licenses/>.
22
23 ;;; Commentary:
24 ;;
25 ;; GNU Guix development package.  To build and install, run:
26 ;;
27 ;;   guix package -f guix.scm
28 ;;
29 ;; To build it, but not install it, run:
30 ;;
31 ;;   guix build -f guix.scm
32 ;;
33 ;; To use as the basis for a development environment, run:
34 ;;
35 ;;   guix shell -D -f guix.scm
36 ;;
37 ;; or simply
38 ;;
39 ;;   guix shell
40 ;;
41 ;;; Code:
42
43 (use-modules (srfi srfi-1)
44              (srfi srfi-26)
45              (ice-9 popen)
46              (ice-9 match)
47              (ice-9 rdelim)
48              (guix packages)
49              (guix licenses)
50              (guix gexp)
51              (guix git-download)
52              (guix build-system gnu)
53              ((guix build utils) #:select (with-directory-excursion))
54              (gnu packages)
55              (gnu packages autotools)
56              (gnu packages guile)
57              (gnu packages pkg-config)
58              (gnu packages texinfo))
59
60 (define %source-dir (dirname (current-filename)))
61
62 (package
63   (name "guile-8sync")
64   (version "git")
65   (source (local-file %source-dir
66                       #:recursive? #t
67                       #:select? (git-predicate %source-dir)))
68   (build-system gnu-build-system)
69   (native-inputs `(("autoconf" ,autoconf)
70                    ("automake" ,automake)
71                    ("pkg-config" ,pkg-config)
72                    ("texinfo" ,texinfo)))
73   (inputs `(("guile" ,guile-3.0)))
74   (arguments
75    `(#:phases (modify-phases %standard-phases
76                 (add-before 'configure 'bootstrap
77                             (lambda _
78                               (zero? (system* "./bootstrap.sh"))))
79                 (add-before 'configure 'setenv
80                             (lambda _
81                               (setenv "GUILE_AUTO_COMPILE" "0"))))))
82   (home-page "https://gnu.org/s/8sync/")
83   (synopsis "Asynchronous actor model library for Guile")
84   (description
85    "GNU 8sync (pronounced \"eight-sync\") is an asynchronous programming
86 library for GNU Guile based on the actor model.")
87   (license lgpl3+))