mirror of
https://git.in.rschanz.org/ryan77627/guix.git
synced 2025-01-23 19:19:20 -05:00
gnu: font-iosevka: Use 'font-build-system'.
Fixes <https://bugs.gnu.org/27172>. * gnu/packages/fonts.scm (font-iosevka): Switch to font-build-system. [source]: Use url-fetch/zipbomb. [native-inputs]: Remove dependency on unzip. Signed-off-by: Danny Milosavljevic <dannym@scratchpost.org>
This commit is contained in:
parent
046175cd4e
commit
4a9140b1ee
1 changed files with 2 additions and 14 deletions
|
@ -1205,26 +1205,14 @@ (define-public font-iosevka
|
||||||
(name "font-iosevka")
|
(name "font-iosevka")
|
||||||
(version "1.12.5")
|
(version "1.12.5")
|
||||||
(source (origin
|
(source (origin
|
||||||
(method url-fetch)
|
(method url-fetch/zipbomb)
|
||||||
(uri (string-append
|
(uri (string-append
|
||||||
"https://github.com/be5invis/Iosevka/releases/download/v"
|
"https://github.com/be5invis/Iosevka/releases/download/v"
|
||||||
version "/iosevka-pack-" version ".zip"))
|
version "/iosevka-pack-" version ".zip"))
|
||||||
(sha256
|
(sha256
|
||||||
(base32
|
(base32
|
||||||
"0s3g6mk0ngwsrw9h9dqinb50cd9i8zhqdcmmh93fhyf4d87yfwyi"))))
|
"0s3g6mk0ngwsrw9h9dqinb50cd9i8zhqdcmmh93fhyf4d87yfwyi"))))
|
||||||
(build-system trivial-build-system)
|
(build-system font-build-system)
|
||||||
(arguments
|
|
||||||
`(#:modules ((guix build utils))
|
|
||||||
#:builder (begin
|
|
||||||
(use-modules (guix build utils))
|
|
||||||
(let ((font-dir (string-append %output
|
|
||||||
"/share/fonts/truetype"))
|
|
||||||
(source (assoc-ref %build-inputs "source"))
|
|
||||||
(unzip (string-append (assoc-ref %build-inputs "unzip")
|
|
||||||
"/bin/unzip")))
|
|
||||||
(mkdir-p font-dir)
|
|
||||||
(system* unzip "-d" font-dir source)))))
|
|
||||||
(native-inputs `(("unzip" ,unzip)))
|
|
||||||
(home-page "https://be5invis.github.io/Iosevka/")
|
(home-page "https://be5invis.github.io/Iosevka/")
|
||||||
(synopsis "Coders' typeface, built from code")
|
(synopsis "Coders' typeface, built from code")
|
||||||
(description
|
(description
|
||||||
|
|
Loading…
Reference in a new issue