From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([209.51.188.92]:46556) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hAEs5-0003WS-7i for guix-patches@gnu.org; Sat, 30 Mar 2019 10:22:10 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hAEry-0006VN-JZ for guix-patches@gnu.org; Sat, 30 Mar 2019 10:22:06 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:52184) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1hAEry-0006V1-34 for guix-patches@gnu.org; Sat, 30 Mar 2019 10:22:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1hAErx-0002lc-JH for guix-patches@gnu.org; Sat, 30 Mar 2019 10:22:01 -0400 Subject: [bug#34948] [PATCH 1/3] records: Allow thunked fields to refer to 'this-record'. Resent-Message-ID: From: Ludovic =?UTF-8?Q?Court=C3=A8s?= References: <20190322172120.10974-1-ludo@gnu.org> <20190322172719.11199-1-ludo@gnu.org> <87y35660fw.fsf@elephly.net> <87a7hlzidl.fsf@gnu.org> Date: Sat, 30 Mar 2019 15:20:37 +0100 In-Reply-To: <87a7hlzidl.fsf@gnu.org> ("Ludovic \=\?utf-8\?Q\?Court\=C3\=A8s\=22'\?\= \=\?utf-8\?Q\?s\?\= message of "Sat, 23 Mar 2019 17:05:10 +0100") Message-ID: <878sww4f62.fsf@gnu.org> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable 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: Ricardo Wurmus Cc: 34948@debbugs.gnu.org Ludovic Court=C3=A8s skribis: > I should mention that there are other craaaazzy applications of this! > > For example, the =E2=80=98self-native-input?=E2=80=99 field of = becomes > useless, because now you can write: > > (package > ;; =E2=80=A6 > (native-inputs > ;; Add self as a native input when cross-compiling. > `(,@(if (%current-target-system) > `(("this" ,this-record)) > '()) > ;; =E2=80=A6 > ))) Done in a7646bc5e17a829d23519d0b199a576fb1edbd04! Ludo'.