gnu: font-hack: Use 'font-build-system'.
* gnu/packages/fonts.scm (font-hack): Switch to font-build-system. [source]: Use url-fetch/zipbomb.
This commit is contained in:
parent
6084d9b420
commit
8069f889ee
|
@ -794,7 +794,7 @@ glyph designs, not just an added slant.")
|
||||||
(name "font-hack")
|
(name "font-hack")
|
||||||
(version "2.020")
|
(version "2.020")
|
||||||
(source (origin
|
(source (origin
|
||||||
(method url-fetch)
|
(method url-fetch/zipbomb)
|
||||||
(uri (string-append
|
(uri (string-append
|
||||||
"https://github.com/chrissimpkins/Hack/releases/download/v"
|
"https://github.com/chrissimpkins/Hack/releases/download/v"
|
||||||
version "/Hack-v"
|
version "/Hack-v"
|
||||||
|
@ -803,28 +803,7 @@ glyph designs, not just an added slant.")
|
||||||
(sha256
|
(sha256
|
||||||
(base32
|
(base32
|
||||||
"16kkmc3psckw1b7k07ccn1gi5ymhlg9djh43nqjzg065g6p6d184"))))
|
"16kkmc3psckw1b7k07ccn1gi5ymhlg9djh43nqjzg065g6p6d184"))))
|
||||||
(build-system trivial-build-system)
|
(build-system font-build-system)
|
||||||
(arguments
|
|
||||||
`(#:modules ((guix build utils))
|
|
||||||
#:builder (begin
|
|
||||||
(use-modules (guix build utils)
|
|
||||||
(srfi srfi-26))
|
|
||||||
|
|
||||||
(let ((PATH (string-append (assoc-ref %build-inputs
|
|
||||||
"unzip")
|
|
||||||
"/bin"))
|
|
||||||
(font-dir (string-append %output
|
|
||||||
"/share/fonts/truetype")))
|
|
||||||
(setenv "PATH" PATH)
|
|
||||||
(system* "unzip" (assoc-ref %build-inputs "source"))
|
|
||||||
|
|
||||||
(mkdir-p font-dir)
|
|
||||||
(for-each (lambda (ttf)
|
|
||||||
(install-file ttf font-dir))
|
|
||||||
(find-files "." "\\.ttf$"))))))
|
|
||||||
(native-inputs
|
|
||||||
`(("source" ,source)
|
|
||||||
("unzip" ,unzip)))
|
|
||||||
(home-page "https://sourcefoundry.org/hack/")
|
(home-page "https://sourcefoundry.org/hack/")
|
||||||
(synopsis "Typeface designed for source code")
|
(synopsis "Typeface designed for source code")
|
||||||
(description
|
(description
|
||||||
|
|
Loading…
Reference in New Issue