summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--rodion/packages/fonts.scm28
1 files changed, 26 insertions, 2 deletions
diff --git a/rodion/packages/fonts.scm b/rodion/packages/fonts.scm
index 998a6cc..2db6bbb 100644
--- a/rodion/packages/fonts.scm
+++ b/rodion/packages/fonts.scm
@@ -1,4 +1,5 @@
(define-module (rodion packages fonts)
+ #:use-module ((guix licenses) #:prefix license:)
#:use-module (guix packages)
#:use-module (guix git-download)
#:use-module (guix build-system font)
@@ -7,7 +8,6 @@
(define-public font-awesome-6
(package
- (inherit font-awesome)
(name "font-awesome-6")
(version "6.4.2")
(source (origin
@@ -18,6 +18,30 @@
(file-name (git-file-name name version))
(sha256
(base32
- "180y8fhjyfqagm9nhk4b35nqwszdz540jp68brb1jny2gs34iszy"))))))
+ "180y8fhjyfqagm9nhk4b35nqwszdz540jp68brb1jny2gs34iszy"))))
+ (build-system font-build-system)
+ (arguments
+ '(#:phases
+ (modify-phases %standard-phases
+ (replace 'install
+ (lambda* (#:key outputs #:allow-other-keys)
+ (let* ((out (assoc-ref outputs "out"))
+ (otf-source (string-append (getcwd) "/otfs"))
+ (ttf-source (string-append (getcwd) "/webfonts" ))
+ (fonts (string-append out "/share/fonts")))
+ (for-each (lambda (file)
+ (install-file file (string-append fonts "/truetype")))
+ (find-files ttf-source "\\.(ttf|ttc)$"))
+ (for-each (lambda (file)
+ (install-file file (string-append fonts "/opentype")))
+ (find-files otf-source "\\.(otf|otc)$"))
+ #t))))))
+ (home-page "https://fontawesome.com/")
+ (synopsis "Font that contains a rich iconset")
+ (description
+ "Font Awesome is a full suite of pictographic icons for easy scalable
+vector graphics.")
+ (license license:silofl1.1)
+ ))