From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:48004) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1egtWZ-0004Os-Ui for guix-patches@gnu.org; Wed, 31 Jan 2018 09:38:13 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1egtWU-0004vI-8j for guix-patches@gnu.org; Wed, 31 Jan 2018 09:38:07 -0500 Received: from debbugs.gnu.org ([208.118.235.43]:42541) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1egtWT-0004v8-W6 for guix-patches@gnu.org; Wed, 31 Jan 2018 09:38:02 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1egtWT-00048P-KS for guix-patches@gnu.org; Wed, 31 Jan 2018 09:38:01 -0500 Subject: [bug#30283] [PATCH] etc: Add installation script. Resent-Message-ID: References: <20180128221740.4401-1-rekado@elephly.net> <87inbkn3t4.fsf@gnu.org> From: Ricardo Wurmus In-reply-to: <87inbkn3t4.fsf@gnu.org> Date: Tue, 30 Jan 2018 03:49:30 +0100 MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Message-ID: <87inbkrrgl.fsf@elephly.net> List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+kyle=kyleam.com@gnu.org Sender: "Guix-patches" To: Ludovic =?UTF-8?Q?Court=C3=A8s?= Cc: sharlatanus@gmail.com, 30283-done@debbugs.gnu.org Hi Ludo, > Ricardo Wurmus skribis: > >> * etc/guix-install.sh: New file. >> * Makefile.am (EXTRA_DIST): Add it. >> >> Co-authored-by: sharlatan > > Looks really cool! We=E2=80=99d need a bit of documentation though, unde= r > =E2=80=9CBinary Installation=E2=80=9D maybe? Done. >> +sys_authorize_build_farms() >> +{ # authorize the public keys of the two build farms >> + _msg "${INF}Authorizing build farm public keys" >> + guix archive --authorize < ~root/.guix-profile/share/guix/hydra.gnu= .org.pub && >> + _msg "${PAS}Authorized hydra.gnu.org" >> + guix archive --authorize < ~root/.guix-profile/share/guix/berlin.gu= ixsd.org.pub && >> + _msg "${PAS}Authorized berlin.guixsd.org" >> +} > > Would it make sense to ask for confirmation? Like: > > echo "Do you want to authorize binaries from the project's build farms?= " > echo "If you answer yes, Guix will download pre-built package binaries = from them." > echo "If you answer no, Guix will build software from source." > read -r ANSWER > case "$ANSWER" > =E2=80=A6 > esac > > ? Okay, I=E2=80=99ve implemented it. Pushed with commit 6f4e8693e. Thanks for your comments! --=20 Ricardo GPG: BCA6 89B6 3655 3801 C3C6 2150 197A 5888 235F ACAC https://elephly.net