build: Rename package.scm to guix.scm and update.
[8sync.git] / guix.scm
1 ;;; 8sync --- Asynchronous programming for Guile
2 ;;; Copyright (C) 2016 Jan Nieuwenhuizen <janneke@gnu.org>
3 ;;;
4 ;;; This file is part of 8sync.
5 ;;;
6 ;;; 8sync is free software: you can redistribute it and/or modify it
7 ;;; under the terms of the GNU Lesser General Public License as
8 ;;; published by the Free Software Foundation, either version 3 of the
9 ;;; License, or (at your option) any later version.
10 ;;;
11 ;;; 8sync is distributed in the hope that it will be useful,
12 ;;; but WITHOUT ANY WARRANTY; without even the implied warranty of
13 ;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
14 ;;; GNU Lesser General Public License for more details.
15 ;;;
16 ;;; You should have received a copy of the GNU Lesser General Public
17 ;;; License along with 8sync.  If not, see <http://www.gnu.org/licenses/>.
18
19 ;;; Commentary:
20 ;;
21 ;; GNU Guix development package.  To build and install, run:
22 ;;
23 ;;   guix package -f guix.scm
24 ;;
25 ;; To build it, but not install it, run:
26 ;;
27 ;;   guix build -f guix.scm
28 ;;
29 ;; To use as the basis for a development environment, run:
30 ;;
31 ;;   guix environment -l guix.scm
32 ;;
33 ;;; Code:
34
35 (use-modules (guix packages)
36              (guix licenses)
37              (guix git-download)
38              (guix build-system gnu)
39              (gnu packages)
40              (gnu packages autotools)
41              (gnu packages guile)
42              (gnu packages pkg-config)
43              (gnu packages texinfo))
44
45 (package
46   (name "8sync")
47   (version "0.4.0")
48   (source (origin
49               (method url-fetch)
50               (uri (string-append "mirror://gnu/guile/8sync-" version
51                                   ".tar.gz"))
52               (sha256
53                (base32
54                 "1playdk7k0rsbp5iryv1i88gkm97xzvsrkyw10k6hs5z6zl28j19"))))
55   (build-system gnu-build-system)
56   (native-inputs `(("autoconf" ,autoconf)
57                    ("automake" ,automake)
58                    ("guile" ,guile-next)
59                    ("pkg-config" ,pkg-config)
60                    ("texinfo" ,texinfo)))
61   (arguments
62    `(#:phases (modify-phases %standard-phases
63                 (add-before 'configure 'bootstrap
64                             (lambda _
65                               (zero? (system* "./bootstrap.sh"))))
66                 (add-before 'configure 'setenv
67                             (lambda _
68                               (setenv "GUILE_AUTO_COMPILE" "0"))))))
69   (home-page "https://gnu.org/s/8sync/")
70   (synopsis "Asynchronous actor model library for Guile")
71   (description
72    "GNU 8sync (pronounced \"eight-sync\") is an asynchronous programming
73 library for GNU Guile based on the actor model.")
74   (license lgpl3+))