~brown121407/guix.121407.xyz

guix.121407.xyz/channel/non-gnu/packages/lisp.scm -rw-r--r-- 4.1 KiB View raw
7245765fAlexandru-Sergiu Marton Update guile-f to 0.2.0 2 months 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
;;; Copyright 2019 Brett Gilio <brettg@gnu.org>
;;; Copyright 2020 Alexandru-Sergiu Marton <brown121407@member.fsf.org>
;;;
;;; This file is part of guix.121407.xyz.
;;;
;;; guix.121407.xyz 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.
;;;
;;; guix.121407.xyz 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 guix.121407.xyz.  If not, see <http://www.gnu.org/licenses/>.


(define-module (non-gnu packages lisp)
  #:use-module (gnu packages)
  #:use-module ((guix licenses) #:prefix license:)
  #:use-module (guix packages)
  #:use-module (guix download)
  #:use-module (guix git-download)
  #:use-module (guix utils)
  #:use-module (guix build-system asdf)
  #:use-module (gnu packages lisp)
  #:use-module (gnu packages lisp-xyz)
  #:use-module (ice-9 match)
  #:use-module (srfi srfi-19))

(define-public sbcl-clx-truetype
  (package
   (name "sbcl-clx-truetype")
   (version "0.1.0")
   (source
    (origin
     (method url-fetch)
     (uri (string-append "https://git.sr.ht/~brown121407/clx-truetype/archive/"
			 version ".tar.gz"))
     (sha256
      (base32
       "0qrdzl7g88n1985npr935b442c10fnfr22dfs0ldmwxb88kv59x4"))))
   (build-system asdf-build-system/sbcl)
   (arguments
    '(#:phases
      (modify-phases %standard-phases
		     (add-after 'unpack 'pre-fonf
				(lambda _
				  (substitute* "font-cache.lisp"
					       (("user-homedir-pathname")
						"pathname \"~\""))
				  ;; TODO: Dont hard-cook ~
				  (substitute* "font-cache.lisp"
					       (("/usr/share/fonts")
						"~/.guix-profile/share/fonts"))
				  ;; FIXME: Dont limit to profile, expand list instead.
				  #t)))))
   (inputs
    `(("sbcl-clx" ,sbcl-clx)
      ("sbcl-zpb-ttf" ,sbcl-zpb-ttf)
      ("sbcl-cl-vectors" ,sbcl-cl-vectors)
      ("sbcl-cl-paths-ttf" ,sbcl-cl-paths-ttf)  ; See FIXME below
      ("sbcl-cl-fad" ,sbcl-cl-fad)
      ("sbcl-cl-store" ,sbcl-cl-store)
      ("sbcl-trivial-features" ,sbcl-trivial-features)))
   (home-page "https://git.sr.ht/~brown121407/clx-truetype")
   (synopsis "Pure Common Lisp TrueType antialiased fonts rendering
using CLX and Xrender extension")
   (description #f)
   (license license:expat)))

(define-public sbcl-zpb-ttf
  (package
   (name "sbcl-zpb-ttf")
   (version "1.0.3")
   (source
    (origin
     (method url-fetch)
     (uri (string-append "http://beta.quicklisp.org/archive/zpb-ttf/"
			 "2013-07-20/zpb-ttf-"
			 version ".tgz"))
     (sha256
      (base32
       "1irv0d0pcbwi2wx6hhjjyxzw12lnw8pvyg6ljsljh8xmhppbg5j6"))))
   (build-system asdf-build-system/sbcl)
   (home-page #f)
   (synopsis #f)
   (description #f)
   (license #f)))

(define-public sbcl-cl-vectors
  (package
   (name "sbcl-cl-vectors")
   (version "20180228")
   (source
    (origin
     (method url-fetch)
     (uri (string-append "http://beta.quicklisp.org/archive/cl-vectors/"
			 "2018-02-28/cl-vectors-"
			 version "-git.tgz"))
     (sha256
      (base32
       "0fcypjfzqra8ryb4nx1vx1fqy7fwvyz3f443qkjg2z81akhkscly"))))
   (build-system asdf-build-system/sbcl)
   (inputs
    `(("sbcl-zpb-ttf" ,sbcl-zpb-ttf)
      ("sbcl-cl-aa" ,sbcl-cl-aa)
      ("sbcl-cl-paths" ,sbcl-cl-paths)))
   (home-page #f)
   (synopsis #f)
   (description #f)
   (license #f)))

;; FIXME: Be more programmatic and appropriate
;; about handling SBCL-CL-AA and SBCL-CL-PATHS, etc.
;; in SBCL-CL-VECTORS. Just passing them as inputs
;; is hacky and bad.

(define-private sbcl-cl-aa
  (package (inherit sbcl-cl-vectors)
	   (name "sbcl-cl-aa")
	   (inputs '())))

(define-private sbcl-cl-paths
  (package (inherit sbcl-cl-vectors)
	   (name "sbcl-cl-paths")
	   (inputs '())))

(define-private sbcl-cl-paths-ttf
  (package (inherit sbcl-cl-vectors)
	   (name "sbcl-cl-paths-ttf")
	   (inputs
	    `(("sbcl-cl-paths" ,sbcl-cl-paths)
	      ("sbcl-zpb-ttf" ,sbcl-zpb-ttf)))))