~whereiseveryone/guixrus

guixrus/guixrus/packages/guile.scm -rw-r--r-- 8.5 KiB
f6f32b39jgart roper: add license 11 hours ago
                                                                                
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
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
;;; GNU Guix --- Functional package management for GNU
;;;
;;; Copyright © 2022 jgart <jgart@dismail.de>
;;; Copyright © 2022 Attila Lendvai <attila@lendvai.name>
;;; Copyright © 2022 florhizome <florhizome@posteo.de>
;;;
;;; This file is not part of GNU Guix.
;;;
;;; GNU Guix 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.
;;;
;;; GNU Guix 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 GNU Guix.  If not, see <http://www.gnu.org/licenses/>.

(define-module (guixrus packages guile)
  #:use-module (guix build-system guile)
  #:use-module (guix build-system gnu)
  #:use-module (guix build-system cargo)
  #:use-module (guix git-download)
  #:use-module (guix hg-download)
  #:use-module (guix download)
  #:use-module ((guix licenses) #:prefix license:)
  #:use-module (guix packages)
  #:use-module (guix utils)
  #:use-module (gnu packages)
  #:use-module (gnu packages guile)
  #:use-module (gnu packages version-control)
  #:use-module (gnu packages autotools)
  #:use-module (gnu packages pkg-config)
  #:use-module (gnu packages guile-xyz)
  #:use-module (gnu packages crates-io)
  #:use-module (gnu packages package-management))

(define-public guile-for-loops
  (let ((commit "580d3fb365ea2734b037ad3ca7f2ab1e4aa5116d") (revision "0"))
    (package
      (name "guile-for-loops")
      (version (git-version "0.0.0" revision commit))
      (source (origin
                (method hg-fetch)
                (uri (hg-reference (url
                                    "https://hg.sr.ht/~bjoli/guile-for-loops")
                                   (changeset commit)))
                (file-name (git-file-name name version))
                (sha256
                 (base32
                  "0ksz08v2msdd0xsvjvyg05ka9frphcgvy4vh4ax516bgg9sra9r1"))))
      (inputs (list guix))
      (native-inputs (list guile-3.0))
      (build-system guile-build-system)
      (home-page "https://hg.sr.ht/~bjoli/guile-for-loops")
      (synopsis "Efficient looping facility for guile")
      (description
       "@code{guile-for-loops} is a re-implementation of a large-ish chunk of
racket for-macros.  @code{guile-for-loops} is mostly compatible with
racket's macros, with the largest omission being the body-or-break
clause and some of the sequence iterators (like in-cycle, which can
be covered by circular lists).  There are other differences of course,
like for/foldr not being on par feature-wise, and all the nicities you
get by having a generic sequence interface.")
      (license license:mpl2.0))))

(define-public guile-threading-macros
  (let ((commit "a438588baf9d06b0bc47167b2f670b8c651482ec") (revision "0"))
    (package
      (name "guile-threading-macros")
      (version (git-version "0.0.0" revision commit))
      (source (origin
                (method hg-fetch)
                (uri (hg-reference (url
                                    "https://hg.sr.ht/~bjoli/guile-threading-macros")
                                   (changeset commit)))
                (file-name (git-file-name name version))
                (sha256
                 (base32
                  "0mxlvlj1cbsqsr7d43hk8shlnzb3mklvgdfzygyq68bjl700af3a"))))
      (inputs (list guix))
      (native-inputs (list guile-3.0))
      (build-system guile-build-system)
      (home-page "https://hg.sr.ht/~bjoli/guile-threading-macros")
      (synopsis "Threading macros for guile scheme")
      (description
       "@code{guile-threading-macros} implements a version of the famous clojure
threading macros.  These are syntax-rules macros, and are as such portable
across r(5 6 7)rs-conforming implementations.")
      (license license:bsd-3))))

(define-public guile-srfi-189
  (let ((commit "a0e3786702956c9e510d92746474ac988c2010ec")
        (revision "0"))
    (package
      (name "guile-srfi-189")
      (version (git-version "0" revision commit))
      (source
       (origin
         (method git-fetch)
         (uri (git-reference
               ;; This is a fork of:
               ;; (url "https://github.com/scheme-requests-for-implementation/srfi-189")
               ;; Upstream merge requested at:
               ;; https://github.com/scheme-requests-for-implementation/srfi-189/pull/21
               ;; TODO switch over to the official repo when the PR gets merged
               (url "https://github.com/attila-lendvai-patches/srfi-189")
               (commit commit)))
         (sha256
          (base32
           "0iqv4sjwbp4k87r9l9abzbs5yjcljm69m91kb1ypb03b0rx7napy"))
         (modules '((guix build utils)))
         (snippet
          '(begin
             (delete-file "test-syntax.scm")
             (delete-file "test.scm")))
         (file-name (git-file-name name version))))
      (build-system guile-build-system)
      (arguments
       '(#:not-compiled-file-regexp "srfi/189\\.scm$")) ; it's INCLUDE'd
      (native-inputs
       (list guile-3.0))
      (propagated-inputs
       (list guile-srfi-145))
      (home-page "https://srfi.schemers.org/srfi-189/")
      (synopsis "Scheme SRFI implementation of Maybe and Either")
      (description
       "This SRFI defines two disjoint immutable container types known as
Maybe and Either, both of which can contain objects collectively known
as their payload.  A Maybe object is either a Just object or the unique
object Nothing (which has no payload); an Either object is either a Right
object or a Left object.  Maybe represents the concept of optional values;
Either represents the concept of values which are either correct (Right)
or errors (Left).")
      (license license:expat))))

(define-public tekuti
  (package
    (name "tekuti")
    (version "0.0.1")
    (source
     (origin
       (method git-fetch)
       (uri
        (git-reference
         (url "https://github.com/wingo/tekuti")
          (commit "master")))
       (sha256
        (base32
         "0gkwc4zxsfkmwxxgrvh6qpd18apxmgfcak90bq13xsl4a38nd4gk"))))
    (build-system gnu-build-system)
    (native-inputs
     (list guile-next pkg-config automake autoconf libtool))
    (inputs
     (list guile-next))
    (propagated-inputs (list git))
    (arguments
     `(#:make-flags '("GUILE_AUTO_COMPILE=0")
       #:phases
       (modify-phases %standard-phases
         (add-before 'bootstrap 'no-autocomp
           (lambda _
             (setenv "GUILE_AUTO_COMPILE" "0"))))))
    (synopsis "Server-side blog engine written in Scheme")
    (description "Tekuti is a simple functional blogging engine based on git and sxml, used by guile's maintainer Andy Wingo on his blog.")
    (home-page "https://github.com/wingo/tekuti")
    (license license:gpl3+)))

(define-public guilescript
  (package
    (name "guilescript")
    (version "0.2.0")
    (source
     (origin
       (method git-fetch)
       (uri
        (git-reference
         (url "https://github.com/aconchillo/guilescript")
          (commit (string-append "v" version))))
       (sha256
        (base32
         "15bvgklv77kvkl8dizriqblfir6rid5nm79ymi3m2fvpd7wf77qy"))))
    (build-system gnu-build-system)
    (native-inputs
     (list guile-3.0 pkg-config automake autoconf libtool))
    (inputs
     (list guile-3.0-latest))
    (arguments
     `(#:make-flags '("GUILE_AUTO_COMPILE=0")))
    (synopsis "Compile Guile to Javascript, similar to Clojurescript")
    (description "")
    (home-page "https://github.com/aconchillo/guilescript")
    (license license:gpl3+)))

(define-public rust-guile-0.1.6
  (package
    (name "rust-guile")
    (version "0.1.6")
    (source
     (origin
       (method url-fetch)
       (uri
        (crate-uri "rust-guile" version))
       (sha256
        (base32 "1rp6ajkhbxkig8z6w8qn6k11hh11h40zkxh4dqqpkajkh7irxmyh"))))
    (build-system cargo-build-system)
    (native-inputs (list pkg-config))
    (inputs (list guile-next))
    (arguments
     `(#:phases
       (modify-phases %standard-phases
         (add-before 'build 'chdir
           (lambda _
             (chdir "./guix-vendor/download"))))
       #:cargo-inputs
       (("rust-pkg-config-0.3" ,rust-pkg-config-0.3))))
    (home-page "https://github.com/slondr/rust-guile")
    (synopsis "Provides a scheme runtime in your rust library")
    (description "This package provides a way to create access to
rust functions from guile.")
    (license (list license:agpl3))))