From mboxrd@z Thu Jan 1 00:00:00 1970 From: Amirouche Boubekki Subject: Re: [PATCH] scripts: package: Add --install-from-file option. Date: Wed, 19 Aug 2015 10:56:40 +0200 Message-ID: <1baf47b773872ca3663600b2fdb3888e@hypermove.net> References: <8737zs78rs.fsf@izanagi.i-did-not-set--mail-host-address--so-tickle-me> <57add006a9e098fd69e269f1082262c7@hypermove.net> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:43984) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZRzAv-0000ty-P3 for guix-devel@gnu.org; Wed, 19 Aug 2015 04:56:50 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZRzAu-0005bL-T8 for guix-devel@gnu.org; Wed, 19 Aug 2015 04:56:49 -0400 In-Reply-To: <57add006a9e098fd69e269f1082262c7@hypermove.net> 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: David Thompson Cc: guix-devel@gnu.org, guix-devel-bounces+amirouche=hypermove.net@gnu.org Le 2015-08-19 10:27, Amirouche Boubekki a =C3=A9crit=C2=A0: > Le 2015-08-09 17:59, David Thompson a =C3=A9crit=C2=A0: >> In my personal projects, I keep a 'package.scm' file in the root of=20 >> the >> source tree for use with 'guix environment -l'. However, it's also >> handy to install that package by using 'guix package -e': >>=20 >> guix package -e '(primitive-load "package.scm")' >>=20 >> This patch adds a shorthand for this: >>=20 >> guix package -f package.scm >=20 > What about dispatch `guix package -i` depending on the argument. In > principle there will be no "*.scm$" packages so the above could be >=20 > guix package -i package.scm >=20 > The idea behind that is to keep the number of command to minimum. In > this case, IMO, it makes sens to merge both logic inside the same UI. >=20 > On a similar note, I like a lot the idea of Andy Wingo `guix install` > and `guix search`. To be precise I prefer, `guix package install` and `guix package search`=20 (which is not the subject of patch of Andy Wingo).