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:25:33 +0100 Message-ID: <87bnawzutu.fsf@gnu.org> References: <11cf533a.13b0.150f91df556.Coremail.tumashu@163.com> <87fv0bz8f4.fsf@gnu.org> <7fcbf7df.11d3.150fe3ce823.Coremail.tumashu@163.com> <87io56p9pz.fsf@gnu.org> <876116hzy7.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]:59679) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZxYxi-0004FB-5i for guix-devel@gnu.org; Sat, 14 Nov 2015 06:25:42 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZxYxd-0001K2-JG for guix-devel@gnu.org; Sat, 14 Nov 2015 06:25:42 -0500 In-Reply-To: (Ricardo Wurmus's message of "Fri, 13 Nov 2015 15:44:20 +0100") 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: Ricardo Wurmus Cc: guix-devel@gnu.org, Feng Shu Ricardo Wurmus skribis: > Feng Shu writes: > >> ludo@gnu.org (Ludovic Court=C3=A8s) writes: >> >>> Currently you have to do: >>> >>> guix package -i $(guix build emacs --with-source=3D=E2=80=A6/emacs-20= 151111.tar.gz) >>> >>> Not as convenient as one would like. I guess we could add --with-source >>> directly in =E2=80=98guix package=E2=80=99. >> >> I agree and suggest add a way which can override name and verison, for >> example: >> >> guix package -i emacs-snapshot --with-source=3D/path/to/emacs.git --ov= erride-name=3Demacs-snapshot --override-version=3D20151111 > > I don=E2=80=99t like to add override-name and override-version flags. Th= ey > don=E2=80=99t seem very useful. After all, every different build gets it= s own > directory in the store, so =E2=80=9Coverride-version=E2=80=9D seems to be= useless. > > =E2=80=9Coverride-name=E2=80=9D just duplicates the package name, so I fa= il to see how > it would be an improvement. Currently the name and version are inferred from the file/directory name passed to --with-source. That seemed like a simple UI, at the expense of less flexibility compared to what Feng Shu proposes. It=E2=80=99s always possible to do something arbitrarily complex and then u= se =E2=80=98guix package --install-from-file=E2=80=99. What=E2=80=99s missing though is the ability to pass --with-source to =E2= =80=98guix package=E2=80=99. > I do agree that it would be a little nicer if we could build and install > a package from a directory, rather than just from a tarball. It=E2=80=99s already possible, but its name must match the package name. Thanks, Ludo=E2=80=99.