From mboxrd@z Thu Jan 1 00:00:00 1970 From: swedebugia Subject: Re: CLI reorganization revisited Date: Thu, 8 Nov 2018 23:18:55 +0100 Message-ID: <365ea0c0-a3b5-69de-398c-af216ed55975@riseup.net> References: <54f45908-3390-b95e-d52a-eb34e6caf239@riseup.net> <87va5az3ks.fsf@gnu.org> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="------------89B89B5FA2AB5C07914BED62" Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:40053) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gKsYW-0002HO-3e for guix-devel@gnu.org; Thu, 08 Nov 2018 17:13:43 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gKsYN-0005l0-Q9 for guix-devel@gnu.org; Thu, 08 Nov 2018 17:13:36 -0500 In-Reply-To: <87va5az3ks.fsf@gnu.org> Content-Language: sv-FI 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" To: =?UTF-8?Q?Ludovic_Court=c3=a8s?= , guix-devel This is a multi-part message in MIME format. --------------89B89B5FA2AB5C07914BED62 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: quoted-printable Hi :) On 2018-11-06 15:24, Ludovic Court=C3=A8s wrote: > Hello, > > swedebugia skribis: > >> I would like to go ahead preparing a patch for the aliases for =E2=80=98= guix install=E2=80=99, =E2=80=98guix remove=E2=80=99, and =E2=80=98guix u= pgrade=E2=80=99. > That would be sweet! I gave it a go but did not get that far. :p This patch errors out with: $ ./pre-inst-env guix install ice-9/boot-9.scm:3356:22: Syntax error: /home/sdb/guix-tree/guix/scripts/install.scm:31:2: define-module:=20 expected keyword arg in subform (guix-install) of (define-module (guix=20 scripts install) #:use-module ((guix ui) #:hide=20 (display-profile-content)) #:use-module (guix scripts) #:use-module=20 (guix scripts package) (guix-install)) I do not understand how args work. Is this documented somewhere? Also I do not understand this form: (define (guix-describe . args) =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0= =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 ^ What is the role of the dot? I'm probably in way over my head here :D Cheers Swedebugia --------------89B89B5FA2AB5C07914BED62 Content-Type: text/x-patch; name="0001-WIP-Add-guix-install.patch" Content-Disposition: attachment; filename="0001-WIP-Add-guix-install.patch" Content-Transfer-Encoding: quoted-printable >From 82a844c8c37b9a969e332ff19a87aa857881b039 Mon Sep 17 00:00:00 2001 From: swedebugia Date: Thu, 8 Nov 2018 22:57:49 +0100 Subject: [PATCH] WIP: 'Add guix install'. --- Makefile.am | 2 ++ guix/scripts/install.scm | 41 ++++++++++++++++++++++++++++++++++++++++ 2 files changed, 43 insertions(+) create mode 100644 guix/scripts/install.scm diff --git a/Makefile.am b/Makefile.am index c63b65ba5..2dfbef006 100644 --- a/Makefile.am +++ b/Makefile.am @@ -12,6 +12,7 @@ # Copyright =C2=A9 2018 Nils Gillmann # Copyright =C2=A9 2018 Julien Lepiller # Copyright =C2=A9 2018 Oleg Pykhalov +# Copyright =C2=A9 2018 swedebugia # # This file is part of GNU Guix. # @@ -196,6 +197,7 @@ MODULES =3D \ guix/scripts/build.scm \ guix/scripts/archive.scm \ guix/scripts/import.scm \ + guix/scripts/install.scm \ guix/scripts/package.scm \ guix/scripts/gc.scm \ guix/scripts/hash.scm \ diff --git a/guix/scripts/install.scm b/guix/scripts/install.scm new file mode 100644 index 000000000..ebfa819a7 --- /dev/null +++ b/guix/scripts/install.scm @@ -0,0 +1,41 @@ + +;;; GNU Guix --- Functional package management for GNU +;;; Copyright =C2=A9 2018 swedebugia + +;;; +;;; This file is part of GNU Guix. +;;; +;;; GNU Guix is free software; you can redistribute it and/or modify it +;;; under the terms of the GNU General Public License as published by +;;; the Free Software Foundation; either version 3 of the License, or (a= t +;;; your option) any later version. +;;; +;;; GNU Guix is distributed in the hope that it will be useful, but +;;; WITHOUT ANY WARRANTY; without even the implied warranty of +;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +;;; GNU General Public License for more details. +;;; +;;; You should have received a copy of the GNU General Public License +;;; along with GNU Guix. If not, see . + +;;; Commentary: +;;; +;;; Alias for "guix package -i" +;;; Needs to be in its own file because of (command-files) in guix/ui.sc= m +;;; + +(define-module (guix scripts install) + #:use-module ((guix ui) #:hide (display-profile-content)) + #:use-module (guix scripts) + #:use-module (guix scripts package) + (guix-install)) + +;;; +;;; Entry point. +;;; + +(define (guix-install . args) +;; How do we pass everything over to (guix scripts package)? + (display args) + (newline) + (display "swedebugia was here")) --=20 2.18.0 --------------89B89B5FA2AB5C07914BED62--