This repository has been archived by the owner on Nov 28, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathguix.scm
69 lines (63 loc) · 2.25 KB
/
guix.scm
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
;;;; SPDX-FileCopyrightText: (#| TMPL_VAR author |#)
;;;; SPDX-License-Identifier: (#| TMPL_VAR license |#)
;;; Commentary:
;;
;; GNU Guix development package. To build and install, clone this repository,
;; switch directory to here and run:
;;
;; guix package --install-from-file=guix.scm
;;
;; To use as the basis for a development environment, run:
;;
;; guix shell --container -D -f guix.scm
;;
;; Replace --container by --pure if you still want ASDF to see external
;; libraries in ~/common-lisp, etc.
;;
;;; Code:
(use-modules (guix packages)
((guix licenses) #:prefix license:)
(guix gexp)
(guix git-download)
(guix build-system asdf)
(gnu packages)
(gnu packages lisp)
(gnu packages lisp-check)
(gnu packages lisp-xyz))
(define-public sbcl-(#| TMPL_VAR name |#)
(package
(name "sbcl-(#| TMPL_VAR name |#)")
(version "0.0.0")
(source
(local-file (dirname (current-filename)) #:recursive? #t)
;;;; Or this, in case of contributing to Guix.
;; (origin
;; (method git-fetch)
;; (uri (git-reference
;; (url "https://github.com/atlas-engineer/(#| TMPL_VAR name |#)")
;; (commit version)))
;; (file-name (git-file-name "cl-(#| TMPL_VAR name |#)" version))
;; (sha256
;; (base32
;; "SPECIFY-HASH")))
)
(build-system asdf-build-system/sbcl)
;; We use `cl-*' inputs and not `sbcl-*' ones so that CCL users can also use
;; this Guix manifests.
;;
;; Another reason is to not fail when an input dependency is found in
;; ~/common-lisp, which would trigger a rebuild of the SBCL input in the
;; store, which is read-only and would thus fail.
;;
;; The official Guix package should use `sbcl-*' inputs though.
(native-inputs (list cl-lisp-unit2 sbcl))
(inputs SPECIFY-INPUTS)
(synopsis "ADD A SYNOPSYS.")
(home-page "https://github.com/atlas-engineer/(#| TMPL_VAR name |#)")
(description "ADD A DESCRIPTION")
(license license:bsd-3)))
(define-public cl-(#| TMPL_VAR name |#)
(sbcl-package->cl-source-package sbcl-(#| TMPL_VAR name |#)))
(define-public ecl-(#| TMPL_VAR name |#)
(sbcl-package->ecl-package sbcl-(#| TMPL_VAR name |#)))
cl-(#| TMPL_VAR name |#)