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:27:42 +0200 Message-ID: <57add006a9e098fd69e269f1082262c7@hypermove.net> References: <8737zs78rs.fsf@izanagi.i-did-not-set--mail-host-address--so-tickle-me> 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]:35988) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZRypa-0001TN-4h for guix-devel@gnu.org; Wed, 19 Aug 2015 04:34:46 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZRypZ-0002Ob-5F for guix-devel@gnu.org; Wed, 19 Aug 2015 04:34:46 -0400 In-Reply-To: <8737zs78rs.fsf@izanagi.i-did-not-set--mail-host-address--so-tickle-me> 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-09 17:59, David Thompson a =C3=A9crit=C2=A0: > In my personal projects, I keep a 'package.scm' file in the root of 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 What about dispatch `guix package -i` depending on the argument. In=20 principle there will be no "*.scm$" packages so the above could be guix package -i package.scm The idea behind that is to keep the number of command to minimum. In=20 this case, IMO, it makes sens to merge both logic inside the same UI. On a similar note, I like a lot the idea of Andy Wingo `guix install`=20 and `guix search`. >=20 > The motivation for this is to ultimately encourage other people to keep > a 'package.scm' file in their own repos for building reproducible > development environments and easily testing development snapshots, like > what we do with our 'guix-devel' package. >=20 > I'd like to add the same option for 'guix build', if this is approved.