From mboxrd@z Thu Jan 1 00:00:00 1970 From: Danny Milosavljevic Subject: Re: Suggest add font: font-wqy-microhei Date: Fri, 13 Jan 2017 10:51:51 +0100 Message-ID: <20170113105146.162bc10b@scratchpost.org> References: <452bcab7.22cd.1599584719b.Coremail.tumashu@163.com> Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:59249) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cRyWg-0002Dz-OR for guix-devel@gnu.org; Fri, 13 Jan 2017 04:52:06 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cRyWc-0005tb-Sm for guix-devel@gnu.org; Fri, 13 Jan 2017 04:52:02 -0500 Received: from dd1012.kasserver.com ([85.13.128.8]:37878) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1cRyWc-0005t4-LF for guix-devel@gnu.org; Fri, 13 Jan 2017 04:51:58 -0500 In-Reply-To: <452bcab7.22cd.1599584719b.Coremail.tumashu@163.com> List-Id: "Development of GNU Guix and the GNU System distribution." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-devel-bounces+gcggd-guix-devel=m.gmane.org@gnu.org Sender: "Guix-devel" To: tumashu Cc: guix Hi, On Fri, 13 Jan 2017 09:50:02 +0800 (CST) tumashu wrote: > wqy-microhei is a very useful chinese fonts, suggest add it to guix. > > 1. http://wenq.org/wqy2/index.cgi?MicroHei_BigBang_README > 2. http://downloads.sourceforge.net/project/wqy/wqy-microhei/0.2.0-beta/wqy-microhei-0.2.0-beta.tar.gz?r=http%3A%2F%2Fwenq.org%2Fwqy2%2Findex.cgi%3FDownload&ts=1484272152&use_mirror=nchc We already have font-wqy-zenhai which is very similar in setup. If you want, check out gnu/packages/fonts.scm and just copy the font-wqy-zenhei block and modify the url, name and checksum in the copy. Also, is there a reason wqy-microhei is marked "beta"? Is it not finished? What's the difference between wqy-microhei and wqy-zenhei? If you want to quickly build and use your own packages, the easiest is: $ mkdir -p ${HOME}/.local/guix/wip $ export GUIX_PACKAGE_PATH=${HOME}/.local/guix Then put your own Scheme files in there, containing package definitions. They need to be valid Scheme modules. For example the (new) file ${HOME}/.local/guix/wip/fonts.scm should have the following header: (define-module (wip fonts) #:use-module (ice-9 regex) #:use-module (guix utils) #:use-module ((guix licenses) #:prefix license:) #:use-module (guix packages) #:use-module (guix download) #:use-module (guix build-system gnu) #:use-module (guix build-system trivial) #:use-module (gnu packages base) #:use-module (gnu packages compression) #:use-module (gnu packages fontutils) #:use-module (gnu packages perl) #:use-module (gnu packages pkg-config) #:use-module (gnu packages python) #:use-module (gnu packages xorg) #:use-module (gnu packages zip)) And then the package definitions should follow, in this manner: (define-public font-wqy-microhei (package (name "font-wqy-microhei") ...)) Replace "..." by what you copied from font-wqy-zenhai.