From mboxrd@z Thu Jan 1 00:00:00 1970 From: Ludovic =?UTF-8?Q?Court=C3=A8s?= Subject: bug#39505: Adding filesystem utilities based on file-systems Date: Mon, 10 Feb 2020 23:06:55 +0100 Message-ID: <87r1z2gkqo.fsf@gnu.org> References: <20200208003122.GA31711@jasmine.lan> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" Return-path: Received: from eggs.gnu.org ([2001:470:142:3::10]:39039) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1j1HDn-0002Fq-RV for bug-guix@gnu.org; Mon, 10 Feb 2020 17:08:04 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1j1HDm-0002rC-UR for bug-guix@gnu.org; Mon, 10 Feb 2020 17:08:03 -0500 Received: from debbugs.gnu.org ([209.51.188.43]:49677) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1j1HDm-0002mI-Q0 for bug-guix@gnu.org; Mon, 10 Feb 2020 17:08:02 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1j1HDl-0005Yw-JX for bug-guix@gnu.org; Mon, 10 Feb 2020 17:08:01 -0500 Sender: "Debbugs-submit" Resent-Message-ID: In-Reply-To: <20200208003122.GA31711@jasmine.lan> (Leo Famulari's message of "Fri, 7 Feb 2020 19:31:22 -0500") List-Id: Bug reports for GNU Guix List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-guix-bounces+gcggb-bug-guix=m.gmane-mx.org@gnu.org Sender: "bug-Guix" To: Leo Famulari Cc: 39505@debbugs.gnu.org --=-=-= Content-Type: text/plain Hi Leo, Leo Famulari skribis: > As discussed in #39332 [0], it would be great if filesystem utility > packages were added to the system profile if a file-systems entry uses > that filesystem type. > > For example, btrfs-progs could be added if a btrfs filesystem was listed > in file-systems. This could be done with something like: --=-=-= Content-Type: text/x-patch Content-Disposition: inline diff --git a/gnu/system.scm b/gnu/system.scm index 01baa248a2..3ff3073017 100644 --- a/gnu/system.scm +++ b/gnu/system.scm @@ -203,7 +203,11 @@ (default %default-issue)) (packages operating-system-packages ; list of (PACKAGE OUTPUT...) - (default %base-packages)) ; or just PACKAGE + (thunked) ; or just PACKAGE + (default (append (file-system-packages + (operating-system-file-systems + this-operating-system)) + %base-packages))) (timezone operating-system-timezone) ; string (locale operating-system-locale ; string --=-=-= Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable However, this would only work for the default values of =E2=80=98packages= =E2=80=99. In other cases, users would have to add (file-system-packages =E2=80=A6) expli= citly by themselves, which is not great. Alternately, we could turn =E2=80=98%base-packages=E2=80=99 into a macro th= at expands to something like: (gimme-the-base-packages this-operating-system) but that wouldn=E2=80=99t be great because now you=E2=80=99d be unable to r= efer to =E2=80=98%base-packages=E2=80=99 like a regular variable, outside the lexic= al context of an =E2=80=98operating-system=E2=80=99 form. Thoughts? Ludo=E2=80=99. --=-=-=--