From mboxrd@z Thu Jan 1 00:00:00 1970 From: ludo@gnu.org (Ludovic =?utf-8?Q?Court=C3=A8s?=) Subject: Re: emacs.scm: Suggest add emacs-next or emacs-snapshot Date: Sat, 14 Nov 2015 12:32:48 +0100 Message-ID: <87vb94yfxb.fsf@gnu.org> References: <11cf533a.13b0.150f91df556.Coremail.tumashu@163.com> <87fv0bz8f4.fsf@gnu.org> <87d1vei043.fsf@163.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:33629) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZxZ4j-0007qf-E8 for guix-devel@gnu.org; Sat, 14 Nov 2015 06:32:58 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZxZ4e-00038h-Bo for guix-devel@gnu.org; Sat, 14 Nov 2015 06:32:57 -0500 In-Reply-To: <87d1vei043.fsf@163.com> (Feng Shu's message of "Fri, 13 Nov 2015 19:56:28 +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: Feng Shu Cc: guix-devel@gnu.org "Feng Shu" skribis: > ludo@gnu.org (Ludovic Court=C3=A8s) writes: > >> tumashu skribis: >> >>> Suggest add emacs-next or emacs-snapshot and let guile-emacs inherit it= , The reason is that >>> user can use it build emacs from emacs.git conveniently=EF=BC=8C for ex= ample: >>> >>> guix build emacs-snapshot --with-source=3D./emacs-snapshot-20151111= .tar.gz >> >> To use --with-source, all you need to do is to rename the tarball to >> =E2=80=98emacs-20151111.tar.gz=E2=80=99; after that, you can run: >> >> guix build emacs --with-source=3Demacs-20151111.tar.gz >> >> That=E2=80=99s because --with-source expects the tarball name to match t= he >> package name (info "(guix) Invoking guix build"). > > I don't think it is a flexible way, i like the below: > > guix build emacs --with-source=3D~/my-own-emacs-dir --override-name= =3Demacs --override-version=3D20151111 I agree that=E2=80=99s more flexible but that=E2=80=99s also less nice as a= UI. And it=E2=80=99s not as simple as this. Currently one can do: guix build emacs guile \ --with-source=3Demacs-2123123.tar.gz --with-source=3Dguile-12321.tar.gz and it does the right thing. Here we wouldn=E2=80=99t know what package --override-name and --override-version apply to. For non-trivial use cases, I would suggest writing a file like this: (use-modules (guix) (gnu packages emacs)) (package (inherit emacs) (name "emacs-snapshot") (source "/path/to/some-file-or-directory.tar.gz")) and then run: guix package --install-from-file=3Dthat-file.scm WDYT? Ludo=E2=80=99.