~ruther/guix-exprs

ref: 75eae2a21ecb408498bff4d5582f93bef9ce15cd guix-exprs/modules/ruther/packages/vhdl-ls.scm -rw-r--r-- 13.3 KiB
75eae2a2 — Rutherther chore: move modules to modules subfolder 15 days 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
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
(define-module (ruther packages vhdl-ls)
  #:use-module ((guix licenses) #:prefix license:)
  #:use-module (guix utils)

  #:use-module (guix gexp)
  #:use-module (guix packages)

  #:use-module (guix git-download)
  #:use-module (guix download)

  #:use-module (guix build-system cargo)

  #:use-module (gnu packages crates-io)
  #:use-module (gnu packages crates-windows))

(define-public rust-skiplist-0.4
  (package
    (name "rust-skiplist")
    (version "0.4.0")
    (source
     (origin
       (method url-fetch)
       (uri (crate-uri "skiplist" version))
       (file-name (string-append name "-" version ".tar.gz"))
       (sha256
        (base32 "0ny9qjxd22090clhvbf1mlnx9k1ncvqmbzis25fpc2a65dx38dzs"))))
    (build-system cargo-build-system)
    (arguments
     `(#:skip-build? #t
       #:cargo-inputs (("rust-rand" ,rust-rand-0.8))))
    (home-page "https://www.jpellis.me/projects/rust-skiplist/")
    (synopsis
     "Skiplist implementation in rust, providing fast insertion and removal.  A normal skiplist is implemented, as well as an ordered skiplist and a skipmap")
    (description
     "This package provides Skiplist implementation in rust, providing fast insertion and removal.  A normal
skiplist is implemented, as well as an ordered skiplist and a skipmap.")
    (license license:expat)))

(define-public rust-float-extras-0.1
  (package
    (name "rust-float-extras")
    (version "0.1.6")
    (source
     (origin
       (method url-fetch)
       (uri (crate-uri "float_extras" version))
       (file-name (string-append name "-" version ".tar.gz"))
       (sha256
        (base32 "0ymb731vf7qdvw20spxavy1a8k8f9fb6v8ziamck38lyckw70axj"))))
    (build-system cargo-build-system)
    (arguments
     `(#:skip-build? #t
       #:cargo-inputs (("rust-libc" ,rust-libc-0.2))))
    (home-page "https://github.com/yjh0502/float_extras")
    (synopsis "Extra floating-point math functions from C math library")
    (description
     "This package provides Extra floating-point math functions from C math library.")
    (license license:asl2.0)))

(define-public rust-quantogram-0.4
  (package
    (name "rust-quantogram")
    (version "0.4.4")
    (source
     (origin
       (method url-fetch)
       (uri (crate-uri "quantogram" version))
       (file-name (string-append name "-" version ".tar.gz"))
       (sha256
        (base32 "0hxk6ns7fhxbg0mcblkxkq7f534w5n5rmrnapl5887b6i5pizmkp"))))
    (build-system cargo-build-system)
    (arguments
     `(#:skip-build? #t
       #:cargo-inputs (("rust-float-extras" ,rust-float-extras-0.1)
                       ("rust-skiplist" ,rust-skiplist-0.4))))
    (home-page "https://github.com/paulchernoch/quantogram/")
    (synopsis
     "Approximate quantiles using histograms with logarithmically sized bins to guarantee worst case absolute relative error")
    (description
     "This package provides Approximate quantiles using histograms with logarithmically sized bins to
guarantee worst case absolute relative error.")
    (license #f)))

(define-public rust-dactyl-0.7
  (package
    (name "rust-dactyl")
    (version "0.7.4")
    (source
     (origin
       (method url-fetch)
       (uri (crate-uri "dactyl" version))
       (file-name (string-append name "-" version ".tar.gz"))
       (sha256
        (base32 "0jdhmcxjr70q690xb19asnpv1vffv5m462glrzk6ncxijjmx3jky"))))
    (build-system cargo-build-system)
    (arguments
     `(#:skip-build? #t))
    (home-page "https://github.com/Blobfolio/dactyl")
    (synopsis
     "small library to quickly stringify integers with basic formatting.")
    (description
     "This package provides a small library to quickly stringify integers with basic
formatting.")
    (license license:wtfpl2)))

(define-public rust-brunch-0.5
  (package
    (name "rust-brunch")
    (version "0.5.3")
    (source
     (origin
       (method url-fetch)
       (uri (crate-uri "brunch" version))
       (file-name (string-append name "-" version ".tar.gz"))
       (sha256
        (base32 "1ranrp9qqmq8z2qkwdwxc67sl1w6mjk3kr7711xmrlw5v48dfcir"))))
    (build-system cargo-build-system)
    (arguments
     `(#:cargo-inputs (("rust-dactyl" ,rust-dactyl-0.7)
                       ("rust-unicode-width" ,rust-unicode-width-0.1))
       #:cargo-development-inputs (("rust-quantogram" ,rust-quantogram-0.4))))
    (home-page "https://github.com/Blobfolio/brunch")
    (synopsis "simple micro-benchmark runner.")
    (description "This package provides a simple micro-benchmark runner.")
    (license license:wtfpl2)))

(define-public rust-vhdl-lang-macros-0.83
  (package
    (name "rust-vhdl-lang-macros")
    (version "0.83.1")
    (source
     (origin
       (method url-fetch)
       (uri (crate-uri "vhdl_lang_macros" version))
       (file-name (string-append name "-" version ".tar.gz"))
       (sha256
        (base32 "186l183yqhnf42m8bpzmj189zzsrklrzvh4a0z3hzfdhsg221cb5"))))
    (build-system cargo-build-system)
    (arguments
     `(#:skip-build? #t
       #:cargo-inputs (("rust-quote" ,rust-quote-1)
                       ("rust-syn" ,rust-syn-2))))
    (home-page "https://github.com/kraigher/rust_hdl")
    (synopsis "VHDL Language Frontend - Macros")
    (description "This package provides VHDL Language Frontend - Macros.")
    (license license:mpl2.0)))

(define-public rust-serde-yaml-0.9
  (package
    (name "rust-serde-yaml")
    (version "0.9.34+deprecated")
    (source
     (origin
       (method url-fetch)
       (uri (crate-uri "serde_yaml" version))
       (file-name (string-append name "-" version ".tar.gz"))
       (sha256
        (base32 "0isba1fjyg3l6rxk156k600ilzr8fp7crv82rhal0rxz5qd1m2va"))))
    (build-system cargo-build-system)
    (arguments
     `(#:skip-build? #t
       #:cargo-inputs (("rust-indexmap" ,rust-indexmap-2)
                       ("rust-itoa" ,rust-itoa-1)
                       ("rust-ryu" ,rust-ryu-1)
                       ("rust-serde" ,rust-serde-1)
                       ("rust-unsafe-libyaml" ,rust-unsafe-libyaml-0.2))))
    (home-page "https://github.com/dtolnay/serde-yaml")
    (synopsis "YAML data format for Serde")
    (description "This package provides YAML data format for Serde.")
    (license (list license:expat license:asl2.0))))

(define-public rust-subst-0.3
  (package
    (name "rust-subst")
    (version "0.3.7")
    (source
     (origin
       (method url-fetch)
       (uri (crate-uri "subst" version))
       (file-name (string-append name "-" version ".tar.gz"))
       (sha256
        (base32 "038n81ns4b8ncjynhif7wq474023chg5mwccxw0xn6gaflk99rrk"))))
    (build-system cargo-build-system)
    (arguments
     `(#:skip-build? #t
       #:cargo-inputs (("rust-indexmap" ,rust-indexmap-2)
                       ("rust-memchr" ,rust-memchr-2)
                       ("rust-serde" ,rust-serde-1)
                       ("rust-serde-json" ,rust-serde-json-1)
                       ("rust-serde-yaml" ,rust-serde-yaml-0.9)
                       ("rust-toml" ,rust-toml-0.8)
                       ("rust-unicode-width" ,rust-unicode-width-0.1))))
    (home-page "https://github.com/fizyr/subst")
    (synopsis "shell-like variable substitution")
    (description "This package provides shell-like variable substitution.")
    (license (list license:bsd-2 license:asl2.0))))

(define-public rust-pinned-vec-0.1
  (package
    (name "rust-pinned-vec")
    (version "0.1.1")
    (source
     (origin
       (method url-fetch)
       (uri (crate-uri "pinned_vec" version))
       (file-name (string-append name "-" version ".tar.gz"))
       (sha256
        (base32 "12il2y234k9r4i3v9yh7qpavrwdhi48b057z96hb0bv2j8nxi2i6"))))
    (build-system cargo-build-system)
    (arguments
     `(#:skip-build? #t))
    (home-page "https://github.com/wishawa/decurse")
    (synopsis "Vec-like data structure whose elements never move")
    (description
     "This package provides Vec-like data structure whose elements never move.")
    (license license:mpl2.0)))

(define-public rust-enum-map-derive-0.17
  (package
    (name "rust-enum-map-derive")
    (version "0.17.0")
    (source
     (origin
       (method url-fetch)
       (uri (crate-uri "enum-map-derive" version))
       (file-name (string-append name "-" version ".tar.gz"))
       (sha256
        (base32 "1sv4mb343rsz4lc3rh7cyn0pdhf7fk18k1dgq8kfn5i5x7gwz0pj"))))
    (build-system cargo-build-system)
    (arguments
     `(#:skip-build? #t
       #:cargo-inputs (("rust-proc-macro2" ,rust-proc-macro2-1)
                       ("rust-quote" ,rust-quote-1)
                       ("rust-syn" ,rust-syn-2))))
    (home-page "https://codeberg.org/xfix/enum-map")
    (synopsis "Macros 1.1 implementation of #[derive(Enum)]")
    (description
     "This package provides Macros 1.1 implementation of #[derive(Enum)].")
    (license (list license:expat license:asl2.0))))

(define-public rust-enum-map-2
  (package
    (name "rust-enum-map")
    (version "2.7.3")
    (source
     (origin
       (method url-fetch)
       (uri (crate-uri "enum-map" version))
       (file-name (string-append name "-" version ".tar.gz"))
       (sha256
        (base32 "1sgjgl4mmz93jdkfdsmapc3dmaq8gddagw9s0fd501w2vyzz6rk8"))))
    (build-system cargo-build-system)
    (arguments
     `(#:skip-build? #t
       #:cargo-inputs (("rust-arbitrary" ,rust-arbitrary-1)
                       ("rust-enum-map-derive" ,rust-enum-map-derive-0.17)
                       ("rust-serde" ,rust-serde-1))))
    (home-page "https://codeberg.org/xfix/enum-map")
    (synopsis "map with C-like enum keys represented internally as an array")
    (description
     "This package provides a map with C-like enum keys represented internally as an
array.")
    (license (list license:expat license:asl2.0))))

(define-public rust-vhdl-lang-0.83
  (package
    (name "rust-vhdl-lang")
    (version "0.83.1")
    (source
     (origin
       (method url-fetch)
       (uri (crate-uri "vhdl_lang" version))
       (file-name (string-append name "-" version ".tar.gz"))
       (sha256
        (base32 "0l4n9pbja1vwpvcmz3b4darlm90vvyhjkpp09qx6zh1bqp8w3za6"))))
    (build-system cargo-build-system)
    (arguments
     `(#:skip-build? #t
       #:cargo-inputs (("rust-clap" ,rust-clap-4)
                       ("rust-dirs" ,rust-dirs-5)
                       ("rust-dunce" ,rust-dunce-1)
                       ("rust-enum-map" ,rust-enum-map-2)
                       ("rust-fnv" ,rust-fnv-1)
                       ("rust-glob" ,rust-glob-0.2)
                       ("rust-itertools" ,rust-itertools-0.5)
                       ("rust-pad" ,rust-pad-0.1)
                       ("rust-parking-lot" ,rust-parking-lot-0.4)
                       ("rust-pinned-vec" ,rust-pinned-vec-0.1)
                       ("rust-rayon" ,rust-rayon-1)
                       ("rust-strum" ,rust-strum-0.26)
                       ("rust-subst" ,rust-subst-0.3)
                       ("rust-toml" ,rust-toml-0.4)
                       ("rust-vhdl-lang-macros" ,rust-vhdl-lang-macros-0.83))))
    (home-page "https://github.com/kraigher/rust_hdl")
    (synopsis "VHDL Language Frontend")
    (description "This package provides VHDL Language Frontend.")
    (license license:mpl2.0)))


(define-public vhdl-ls
  (package
    (name "vhdl-ls")
    (version "0.83.1")
    (source
     (origin
       (method git-fetch)
       (uri (git-reference
             (url "https://github.com/VHDL-LS/rust_hdl")
             (commit (string-append "v" version))))
       (snippet
        #~(begin (use-modules (guix build utils))
                 (substitute* "vhdl_ls/Cargo.toml"
                   ((", path = \"../vhdl_lang\"") ""))))
       (sha256
        (base32 "0fs8qghnxw82by8dmlxlvm2spzqq3rk8aywj1ay7jxzwblkpkvq0"))))
    (build-system cargo-build-system)
    (arguments
     `(#:phases
       (modify-phases %standard-phases
         (replace 'install
           (lambda* (#:key inputs outputs #:allow-other-keys)
             (let* ((out (assoc-ref outputs "out")))
               (mkdir-p out)
               (invoke "cargo" "install" "--no-track"
                       "--path" "./vhdl_ls" "--root" out)
               (mkdir-p (string-append out "/share/vhdl_libraries"))
               (copy-recursively "vhdl_libraries"
                                 (string-append out "/share/vhdl_libraries"))))))
       #:cargo-inputs
       (("rust-clap" ,rust-clap-4)
        ("rust-env-logger" ,rust-env-logger-0.3)
        ("rust-fnv" ,rust-fnv-1)
        ("rust-fuzzy-matcher" ,rust-fuzzy-matcher-0.3)
        ("rust-log" ,rust-log-0.3)
        ("rust-lsp-server" ,rust-lsp-server-0.7)
        ("rust-lsp-types" ,rust-lsp-types-0.95)
        ("rust-serde" ,rust-serde-1)
        ("rust-serde-json" ,rust-serde-json-1)
        ("rust-vhdl-lang" ,rust-vhdl-lang-0.83))
       #:cargo-build-flags
       (list
        "--release" "--package" "vhdl_ls")
       #:cargo-package-flags
       (list
        "--no-metadata" "--no-verify"
        "--package" "vhdl_ls")
       #:cargo-test-flags
       (list
        "--release"
        "--package" "vhdl_ls")
       #:cargo-development-inputs
       (("rust-pretty-assertions" ,rust-pretty-assertions-1)
        ("rust-brunch" ,rust-brunch-0.5)
        ("rust-assert-cmd" ,rust-assert-cmd-2)
        ("rust-assert-matches" ,rust-assert-matches-1)
        ("rust-predicates" ,rust-predicates-3)
        ("rust-regex" ,rust-regex-1)
        ("rust-tempfile" ,rust-tempfile-3))))
    (home-page "https://github.com/kraigher/rust_hdl")
    (synopsis "VHDL Language Server")
    (description "This package provides VHDL Language Server.")
    (license license:mpl2.0)))
Do not follow this link