From mboxrd@z Thu Jan 1 00:00:00 1970 From: ludo@gnu.org (Ludovic =?utf-8?Q?Court=C3=A8s?=) Subject: Re: How can I add a package outside the guix source dir? Date: Fri, 22 May 2015 16:22:50 +0200 Message-ID: <87siaoitdx.fsf@gnu.org> References: <87oaldvwh6.fsf@163.com> <87fv6pvvdn.fsf@T420.taylan> <87wq00vpna.fsf@163.com> <871ti8q0z9.fsf@gmail.com> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:56758) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Yvnqn-0005ru-1x for guix-devel@gnu.org; Fri, 22 May 2015 10:23:05 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Yvnqg-0000Mj-Iv for guix-devel@gnu.org; Fri, 22 May 2015 10:23:00 -0400 Received: from fencepost.gnu.org ([2001:4830:134:3::e]:51348) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Yvnqg-0000Mf-Fh for guix-devel@gnu.org; Fri, 22 May 2015 10:22:54 -0400 In-Reply-To: <871ti8q0z9.fsf@gmail.com> (=?utf-8?B?IuWui+aWh+atpiIncw==?= message of "Fri, 22 May 2015 19:56:58 +0800") 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-bounces+gcggd-guix-devel=m.gmane.org@gnu.org To: =?utf-8?B?5a6L5paH5q2m?= Cc: guix , Feng Shu --=-=-= Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable =E5=AE=8B=E6=96=87=E6=AD=A6 skribis: > Feng Shu writes: > >> taylanbayirli@gmail.com (Taylan Ulrich "Bay=C4=B1rl=C4=B1/Kammer") write= s: [...] >>> See (info "(guix) Package Modules"), >>> i.e. https://gnu.org/s/guix/manual/html_node/Package-Modules.html > The manual does mention it as (17), but it's not very clear how to do > it right. I have pushed a clarification. Thanks for your feedback, Ludo=E2=80=99. --=-=-= Content-Type: text/x-patch Content-Disposition: inline --- a/doc/guix.texi +++ b/doc/guix.texi @@ -6154,11 +6154,15 @@ facility is implemented in the @code{(gnu packages)} module. @cindex package module search path Users can store package definitions in modules with different names---e.g., @code{(my-packages emacs)}@footnote{Note that the file -name and module name must match. @xref{Modules and the File System,,, -guile, GNU Guile Reference Manual}, for details.} These package definitions +name and module name must match. For instance, the @code{(my-packages +emacs)} module must be stored in a @file{my-packages/emacs.scm} file +relative to the load path specified with @option{--load-path} or +@code{GUIX_PACKAGE_PATH}. @xref{Modules and the File System,,, +guile, GNU Guile Reference Manual}, for details.}. These package definitions will not be visible by default. Thus, users can invoke commands such as @command{guix package} and @command{guix build} have to be used with the -@code{-e} option so that they know where to find the package, or use the +@code{-e} option so that they know where to find the package. Better +yet, they can use the @code{-L} option of these commands to make those modules visible (@pxref{Invoking guix build, @code{--load-path}}), or define the @code{GUIX_PACKAGE_PATH} environment variable. This environment --=-=-=--