aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlex Griffin <a@ajgrf.com>2017-05-31 12:39:53 -0500
committerDanny Milosavljevic <dannym@scratchpost.org>2017-05-31 23:25:49 +0200
commit4a9140b1ee452c95682bb9e4e1b030f24f0c631d (patch)
tree3dba020be68f2eec1db70b46053f9e802da0d21a
parent046175cd4eae314f6e5d3d614efdeb573e8199df (diff)
downloadgnu-guix-4a9140b1ee452c95682bb9e4e1b030f24f0c631d.tar
gnu-guix-4a9140b1ee452c95682bb9e4e1b030f24f0c631d.tar.gz
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>
-rw-r--r--gnu/packages/fonts.scm16
1 files changed, 2 insertions, 14 deletions
diff --git a/gnu/packages/fonts.scm b/gnu/packages/fonts.scm
index ef0642f798..6dc098a5e3 100644
--- a/gnu/packages/fonts.scm
+++ b/gnu/packages/fonts.scm
@@ -1205,26 +1205,14 @@ typeface, by mimicking Comic Sans while fixing its most obvious shortcomings.")
(name "font-iosevka")
(version "1.12.5")
(source (origin
- (method url-fetch)
+ (method url-fetch/zipbomb)
(uri (string-append
"https://github.com/be5invis/Iosevka/releases/download/v"
version "/iosevka-pack-" version ".zip"))
(sha256
(base32
"0s3g6mk0ngwsrw9h9dqinb50cd9i8zhqdcmmh93fhyf4d87yfwyi"))))
- (build-system trivial-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)))
+ (build-system font-build-system)
(home-page "https://be5invis.github.io/Iosevka/")
(synopsis "Coders' typeface, built from code")
(description