From mboxrd@z Thu Jan 1 00:00:00 1970 From: ludo@gnu.org (Ludovic =?utf-8?Q?Court=C3=A8s?=) Subject: Re: [PATCH] scripts: environment: Allow mixing regular and ad-hoc packages. Date: Thu, 29 Oct 2015 21:18:48 +0100 Message-ID: <87wpu58m3b.fsf@gnu.org> References: <87bnbmxrmg.fsf@izanagi.i-did-not-set--mail-host-address--so-tickle-me> <87r3kh4rwf.fsf@gnu.org> 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]:34996) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Zrtew-0008CV-Kg for guix-devel@gnu.org; Thu, 29 Oct 2015 16:18:55 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Zrtet-0002tJ-G2 for guix-devel@gnu.org; Thu, 29 Oct 2015 16:18:54 -0400 In-Reply-To: (David Thompson's message of "Thu, 29 Oct 2015 08:58:43 -0400") 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: "Thompson, David" Cc: guix-devel "Thompson, David" skribis: > From ce7ebcc7d40bd6ec4beaad620597dfc121ca5bbe Mon Sep 17 00:00:00 2001 > From: David Thompson > Date: Sun, 25 Oct 2015 22:33:33 -0400 > Subject: [PATCH] scripts: environment: Allow mixing regular and ad-hoc > packages. > > This patch changes the --ad-hoc flag to be positional. That is, the > packages that appear before --ad-hoc are interpreted as packages whose > inputs should be in the environment; the packages that appear after are > interpreted as packages to be directly added to the environment. > > * guix/scripts/environment.scm (tag-package-arg, compact): New > procedures. > (%options): Tweak the handlers for --load and --expression options. > (options/resolve-packages): Preserve package mode tag. > (parse-args): Tweak argument handler to use package tagging procedure. > (guix-environment): Apply ad-hoc behavior on a per package basis. > * tests/guix-environment.sh: Add test. > * doc/guix.texi ("invoking guix environment"): Document new behavior of > --ad-hoc. OK, thank you! Ludo=E2=80=99.