gnu: font-inconsolata: Use 'font-build-system'.

* gnu/packages/fonts.scm (font-inconsolata): Switch to 'font-build-system'.
This commit is contained in:
Arun Isaac 2017-05-15 20:16:04 +05:30
parent 3d90fa982b
commit b2f89c19fc
No known key found for this signature in database
GPG Key ID: 2E25EE8B61802BB3
1 changed files with 2 additions and 12 deletions

View File

@ -42,6 +42,7 @@
#:use-module (guix packages) #:use-module (guix packages)
#:use-module (guix download) #:use-module (guix download)
#:use-module (guix git-download) #:use-module (guix git-download)
#:use-module (guix build-system font)
#:use-module (guix build-system gnu) #:use-module (guix build-system gnu)
#:use-module (guix build-system trivial) #:use-module (guix build-system trivial)
#:use-module (gnu packages base) #:use-module (gnu packages base)
@ -64,18 +65,7 @@
(sha256 (sha256
(base32 (base32
"06js6znbcf7swn8y3b8ki416bz96ay7d3yvddqnvi88lqhbfcq8m")))) "06js6znbcf7swn8y3b8ki416bz96ay7d3yvddqnvi88lqhbfcq8m"))))
(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/opentype"))
(source (assoc-ref %build-inputs "source")))
(mkdir-p font-dir)
(copy-file source
(string-append font-dir "/" "inconsolata.otf"))))))
(native-inputs `(("source" ,source)))
(home-page "http://levien.com/type/myfonts/inconsolata.html") (home-page "http://levien.com/type/myfonts/inconsolata.html")
(synopsis "Monospace font") (synopsis "Monospace font")
(description "A monospace font, designed for code listings and the like, (description "A monospace font, designed for code listings and the like,