From 7d247f79b42df5c26d79414c2350efce276c62e6 Mon Sep 17 00:00:00 2001 From: Rodion Goritskov Date: Mon, 16 Oct 2023 01:36:18 +0400 Subject: Fix build --- rodion/packages/fonts.scm | 28 ++++++++++++++++++++++++++-- 1 file changed, 26 insertions(+), 2 deletions(-) (limited to 'rodion') 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) + )) -- cgit v1.2.3