aboutsummaryrefslogtreecommitdiff
path: root/gnu/packages/fonts.scm
diff options
context:
space:
mode:
authorArun Isaac <arunisaac@systemreboot.net>2017-06-16 11:49:21 +0530
committerArun Isaac <arunisaac@systemreboot.net>2017-06-17 21:09:20 +0530
commit8069f889eefb6225c997dc90945bbb2ed4227bba (patch)
tree2cdd5365af7072218905300ecf7b2e4119e73d25 /gnu/packages/fonts.scm
parent6084d9b42065ecd5477dcbdcb5db483647bc1935 (diff)
downloadguix-8069f889eefb6225c997dc90945bbb2ed4227bba.tar
guix-8069f889eefb6225c997dc90945bbb2ed4227bba.tar.gz
gnu: font-hack: Use 'font-build-system'.
* gnu/packages/fonts.scm (font-hack): Switch to font-build-system. [source]: Use url-fetch/zipbomb.
Diffstat (limited to 'gnu/packages/fonts.scm')
-rw-r--r--gnu/packages/fonts.scm25
1 files changed, 2 insertions, 23 deletions
diff --git a/gnu/packages/fonts.scm b/gnu/packages/fonts.scm
index 3a79244835..01b6ef00d8 100644
--- a/gnu/packages/fonts.scm
+++ b/gnu/packages/fonts.scm
@@ -794,7 +794,7 @@ glyph designs, not just an added slant.")
(name "font-hack")
(version "2.020")
(source (origin
- (method url-fetch)
+ (method url-fetch/zipbomb)
(uri (string-append
"https://github.com/chrissimpkins/Hack/releases/download/v"
version "/Hack-v"
@@ -803,28 +803,7 @@ glyph designs, not just an added slant.")
(sha256
(base32
"16kkmc3psckw1b7k07ccn1gi5ymhlg9djh43nqjzg065g6p6d184"))))
- (build-system trivial-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)))
+ (build-system font-build-system)
(home-page "https://sourcefoundry.org/hack/")
(synopsis "Typeface designed for source code")
(description