1 ;;; mudsync --- Live hackable MUDs in Guile
2 ;;; Copyright (C) 2016 Jan Nieuwenhuizen <janneke@gnu.org>
3 ;;; Copyright (C) 2017 Christopher Allan Webber <cwebber@dustycloud.org>
5 ;;; This program is free software: you can redistribute it and/or modify
6 ;;; it under the terms of the GNU 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.
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 General Public License for more details.
15 ;;; You should have received a copy of the GNU General Public License
16 ;;; along with this program. If not, see <http://www.gnu.org/licenses/>.
20 ;; GNU Guix development package. To build and install, run:
22 ;; guix package -f guix.scm
24 ;; To build it, but not install it, run:
26 ;; guix build -f guix.scm
28 ;; To use as the basis for a development environment, run:
30 ;; guix environment -l guix.scm
34 (use-modules (srfi srfi-1)
44 (guix build-system gnu)
45 ((guix build utils) #:select (with-directory-excursion))
47 (gnu packages autotools)
49 (gnu packages pkg-config)
50 (gnu packages texinfo))
52 (define %source-dir (dirname (current-filename)))
54 (define guile-without-select-bug
57 (version (package-version guile-next))
60 (uri (string-append "ftp://alpha.gnu.org/gnu/guile/guile-"
64 "0r9y4hw17dlxahik4zsccfb2f3p2a07wqndfm251bgmam9hln6gi"))
65 (modules '((guix build utils)))
67 ;; Remove the pre-built object files. Instead, build everything
68 ;; from source, at the expense of significantly longer build
69 ;; times (almost 3 hours on a 4-core Intel i5).
70 (snippet '(for-each delete-file
71 (find-files "prebuilt" "\\.go$")))
73 ;; Here's what we're adding
74 (patches (list (string-append %source-dir
75 "/build-aux/patch-guile-fix-live-repl.patch")))))))
78 (name "guile-mudsync")
80 (source (local-file %source-dir
82 #:select? (git-predicate %source-dir)))
83 (build-system gnu-build-system)
84 (native-inputs `(("autoconf" ,autoconf)
85 ("automake" ,automake)
86 ("guile" ,guile-without-select-bug)
87 ("guile-8sync" ,guile-8sync)
88 ("guile-irregex" ,guile2.2-irregex)
89 ("pkg-config" ,pkg-config)
90 ("texinfo" ,texinfo)))
92 `(#:phases (modify-phases %standard-phases
93 (add-before 'configure 'bootstrap
95 (zero? (system* "./bootstrap.sh"))))
96 (add-before 'configure 'setenv
98 (setenv "GUILE_AUTO_COMPILE" "0"))))))
99 (home-page "https://notabug.org/cwebber/mudsync/")
100 (synopsis "Live hackable MUD system")
102 "GNU 8sync (pronounced \"eight-sync\") is an asynchronous programming
103 library for GNU Guile based on the actor model.")