blob: 901d008f407077c1e7c3d3dd586fada96a874a5d (
plain)
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
|
;;; Copyright © 2025 bdunahu <bdunahu@operationnull.com>
;;;
;;; SPDX-License-Identifier: GPL-3.0-or-later
(define-module (tanelorn packages rust-crates)
#:use-module (guix gexp)
#:use-module (guix packages)
#:use-module (guix download)
#:use-module (guix git-download)
#:use-module (guix build-system cargo)
#:use-module (gnu packages rust-sources)
#:export (lookup-cargo-inputs
tanelorn-cargo-inputs))
;;;
;;; This file is managed by ‘guix import’. Do NOT add definitions manually.
;;;
(define* (tanelorn-cargo-inputs name
#:key (module '(tanelorn packages rust-crates)))
"Lookup Cargo inputs for NAME defined in MODULE, return an empty list if
unavailable."
(let ((lookup (module-ref (resolve-interface module) 'lookup-cargo-inputs)))
(or (lookup name)
(begin
(warning (G_ "no Cargo inputs available for '~a'~%") name)
'()))))
;;;
;;; Rust libraries fetched from crates.io and non-workspace development
;;; snapshots.
;;;
(define qqqq-separator 'begin-of-crates)
(define ssss-separator 'end-of-crates)
;;;
;;; Cargo inputs.
;;;
(define-cargo-inputs lookup-cargo-inputs)
|