From mboxrd@z Thu Jan 1 00:00:00 1970 From: Alex Kost Subject: Re: [PATCH] scripts: package: Add --install-from-file option. Date: Wed, 19 Aug 2015 22:15:18 +0300 Message-ID: <87mvxn2ipl.fsf@gmail.com> References: <8737zs78rs.fsf@izanagi.i-did-not-set--mail-host-address--so-tickle-me> <57add006a9e098fd69e269f1082262c7@hypermove.net> <60d219d4d56e5edce70da79239efc059@hypermove.net> 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]:40533) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZS8pW-0004MZ-KA for guix-devel@gnu.org; Wed, 19 Aug 2015 15:15:23 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZS8pR-0000X1-AO for guix-devel@gnu.org; Wed, 19 Aug 2015 15:15:22 -0400 Received: from mail-lb0-x22f.google.com ([2a00:1450:4010:c04::22f]:33872) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZS8pR-0000WP-1k for guix-devel@gnu.org; Wed, 19 Aug 2015 15:15:17 -0400 Received: by lbbtg9 with SMTP id tg9so9791437lbb.1 for ; Wed, 19 Aug 2015 12:15:15 -0700 (PDT) In-Reply-To: <60d219d4d56e5edce70da79239efc059@hypermove.net> (Amirouche Boubekki's message of "Wed, 19 Aug 2015 17:31:55 +0200") 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: Amirouche Boubekki Cc: guix-devel Amirouche Boubekki (2015-08-19 18:31 +0300) wrote: > Le 2015-08-19 15:04, Thompson, David a =C3=A9crit=C2=A0: >> On Wed, Aug 19, 2015 at 4:27 AM, Amirouche Boubekki >> wrote: >>> Le 2015-08-09 17:59, David Thompson a =C3=A9crit : >>>> >>>> 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': >>>> >>>> guix package -e '(primitive-load "package.scm")' >>>> >>>> This patch adds a shorthand for this: >>>> >>>> guix package -f package.scm >>> >>> >>> What about dispatch `guix package -i` depending on the argument. In >>> 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 >>> this >>> case, IMO, it makes sens to merge both logic inside the same UI. >> >> That won't work because it creates ambiguities in the package spec >> syntax. I agree with David on another option instead of adding a special case to "--install". I think you can't rely on ".scm" extension. [...] > My opinion, is that instead of adding options/modifiers to "guix > package", it should be split into "guix package install", "guix package > search", "guix package show" and "guix package generation". It might not > be obvious and is afaik not a cli layout that is widespread but it will > greatly help people get their hands on guix. I would also like subcommands for "guix package" but what about simultaneous installing+removing that can be currently done with "guix package -i foo -r bar"? --=20 Alex