diff options
author | Rodion Goritskov <rodion.goritskov@gmail.com> | 2023-10-16 01:36:18 +0400 |
---|---|---|
committer | Rodion Goritskov <rodion.goritskov@gmail.com> | 2023-10-16 01:36:18 +0400 |
commit | 7d247f79b42df5c26d79414c2350efce276c62e6 (patch) | |
tree | 0da8a045bb3b015b96ac4498c7424aeec2f3bc8f | |
parent | cfee0a86d4bdc74abcf03c47715a382d7ba93be8 (diff) |
Fix build
-rw-r--r-- | rodion/packages/fonts.scm | 28 |
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) + )) |