From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp10.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms5.migadu.com with LMTPS id uN/tH0/LnmM0TgAAbAwnHQ (envelope-from ) for ; Sun, 18 Dec 2022 09:11:59 +0100 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp10.migadu.com with LMTPS id O+cEH0/LnmPfTgAAG6o9tA (envelope-from ) for ; Sun, 18 Dec 2022 09:11:59 +0100 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id 36935ED94 for ; Sun, 18 Dec 2022 09:11:59 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1p6oll-0003Lz-Qi; Sun, 18 Dec 2022 03:11:37 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1p6oli-0003L5-3a for guix-devel@gnu.org; Sun, 18 Dec 2022 03:11:35 -0500 Received: from mail-ej1-x641.google.com ([2a00:1450:4864:20::641]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1p6olg-0001AE-Ho for guix-devel@gnu.org; Sun, 18 Dec 2022 03:11:33 -0500 Received: by mail-ej1-x641.google.com with SMTP id fc4so15078149ejc.12 for ; Sun, 18 Dec 2022 00:11:32 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=mime-version:user-agent:content-transfer-encoding:references :in-reply-to:date:cc:to:from:subject:message-id:from:to:cc:subject :date:message-id:reply-to; bh=aOlV0B/QA39U6XUOlCzZL6BL4MIF2b+BMYdUys4Vd1o=; b=PWLyhO5HR7ucjhRrrqxYFCuZQGWbzBR9BEGENgIa8YneYteRUjGmtW8Q20Udf2Sdyd kN2kUGguAPSqJ+nyGUpoBX3tfJkLRTTKZZSY06Z3pG+5LLx/UTYPUtJjSmvHZ1hS4D8/ 4orO5rratJyMzZOOSCgpBQMx4ZGPFnmpUqQ6Jwnb2TpfJehvKeuCzgdlwbNbfr3eJKaA 7uP0uVkSuSc+tEDJ2w1ovxlSg1jB+2cnojidmYVTTv2i8JkHmw40avB0Rmhlr7ALB9SI UwbKeW7BaTTkAy721HDvyH7usAb3QvE35EB+RZr0InebsVXFX7EC4UFg+TN/Iltay5U0 PmtA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=mime-version:user-agent:content-transfer-encoding:references :in-reply-to:date:cc:to:from:subject:message-id:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=aOlV0B/QA39U6XUOlCzZL6BL4MIF2b+BMYdUys4Vd1o=; b=wNmsLToOVUx6t5hEijuxUNLraGp2SZ1PpkXA42cprfpiD6feIpoPgs7C1g5MFp3zad gScYoqt9IWaJJ01swJejmOiFs5AbT0IFvHFFZ8hlxVegTlNPntRZVXY58OKg5QKmu2pv V50nf6RR3htbch8QkXUf2GCbeD+aiPg/umri+JaDdhZssGo0Qw2nO2+o9/CKA9Uz8Ojl JntzwlAb0ypgjMXDiPLQ+VNAhHfKsoz2TiNPKcUl591TH7RYdrguWtdYnEkV963I5sdd RHWmtKpmHyCfQnO8Fmx7c/43qHt1/K7Xf+wEhGvAadQG0egBPV2PzLncZFjseCRbNhgW FNwA== X-Gm-Message-State: AFqh2koBWstoWs95IXBez3AiPptD5m5gAZsoqL3TeyxItvxEkh5G9o+v QOAycte2bL4BQ+dF+L8zky8= X-Google-Smtp-Source: AMrXdXv8+fdKMXwJtuXICv9nXHNkEFSqIRdTUz8BowO3lJAVOZBCtWuEup145t1CcbRreiuHPfSmdQ== X-Received: by 2002:a17:906:3802:b0:820:4046:1586 with SMTP id v2-20020a170906380200b0082040461586mr153818ejc.12.1671351090841; Sun, 18 Dec 2022 00:11:30 -0800 (PST) Received: from lumine.fritz.box (85-127-52-93.dsl.dynamic.surfer.at. [85.127.52.93]) by smtp.gmail.com with ESMTPSA id r20-20020aa7da14000000b0046b9c536fc5sm2825035eds.63.2022.12.18.00.11.30 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 18 Dec 2022 00:11:30 -0800 (PST) Message-ID: Subject: Re: Proof of Concept: Import Emacs' use-packaged packages into Guix' manifest.scm From: Liliana Marie Prikler To: Mekeor Melire , Guix Devel Cc: Andrew Tropin Date: Sun, 18 Dec 2022 09:11:29 +0100 In-Reply-To: <87r0wxbhm5.fsf@posteo.de> References: <87r0wxbhm5.fsf@posteo.de> Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable User-Agent: Evolution 3.46.0 MIME-Version: 1.0 Received-SPF: pass client-ip=2a00:1450:4864:20::641; envelope-from=liliana.prikler@gmail.com; helo=mail-ej1-x641.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: guix-devel@gnu.org X-Mailman-Version: 2.1.29 Precedence: list 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+larch=yhetil.org@gnu.org Sender: guix-devel-bounces+larch=yhetil.org@gnu.org X-Migadu-Country: US X-Migadu-Flow: FLOW_IN ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20210112 header.b=PWLyhO5H; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (aspmx1.migadu.com: domain of "guix-devel-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-devel-bounces+larch=yhetil.org@gnu.org" ARC-Seal: i=1; s=key1; d=yhetil.org; t=1671351119; a=rsa-sha256; cv=none; b=Ci0LtUy2y6+UfmaNIBIE4oQH3f0j1+wwY5QzJ49Gx2R3ZK5zHGrO1tzZJ2gy8+RsZ/0E/y YF/GdUJ+5WspaMbiFMtPPj78tJm5p0L3OyGg6mcqo8zAORjXz/leo6PeCro7D02kGB3C3Z BL7u11j4P3rZDu/PWcali5w8CsikUpdMDPtcpT1RyXN2Ob3qtOkN5oAoWVBXt31Y3nGra7 KiEq5sJcdfRKJllEVRHmx+wra8206PbfL8YNkSOePHDbO7egpYBP/+HUzUq967W4ltut+m VUxcN68ZCAk7jb67w3+aOuFJ0g7+iieFid1bFqpVJ9ovbCm33n+3yHoii5f/Lg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1671351119; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references:list-id:list-help: list-unsubscribe:list-subscribe:list-post:dkim-signature; bh=aOlV0B/QA39U6XUOlCzZL6BL4MIF2b+BMYdUys4Vd1o=; b=Co8lKYWA/kWDxbAJJf7S7FFbT7gevxcEfCNpN8M37wcp41fSBi6YKk0A/+n5xXbmjiM6R/ q10R9W/dqJhzcuC5setAYr0SuSuMBIyUkHK1v/Swc0ucfw0NurlTgIWz1/rUAiM2isZX/a VS9YAoUz07UoudzeIKxyGZ+uzjkscEyZJ/nU31cZ2tRlLe6wco0ugp2mYgXFKw20rZmC1v mz4l9zQhWQPJoKbIMkqLwbfuSj7Sj47cv3UQu5+Mk8Dz1I81V6BJAttK2doLPhsSoajVGN krgBjgQMhVbJjMIWmUkhagA5NLjvMSoYR/NYYBzFiR0sa3F/9KyOt06HZ0r/TQ== Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20210112 header.b=PWLyhO5H; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (aspmx1.migadu.com: domain of "guix-devel-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-devel-bounces+larch=yhetil.org@gnu.org" X-Migadu-Scanner: scn1.migadu.com X-Migadu-Spam-Score: -4.48 X-Spam-Score: -4.48 X-Migadu-Queue-Id: 36935ED94 X-TUID: J6d1KdtwcwIj Am Sonntag, dem 18.12.2022 um 01:54 +0000 schrieb Mekeor Melire: > Nevertheless, for me, personally, it's pretty neat and handy to=20 > use, because I don't need to maintain the list of emacs-packages=20 > in two places. I also think that it could come pretty handy for=20 > many others, at least in order to initialize their user-profile,=20 > by running something like ~guix package -e '(some-magic=20 > "/home/user/.emacs.d/init.el")'~. I think we should be able to build an Emacs service in Guix Home that can manage init.el. As a workaround, use-package should also have a :when clause, so you can use :when (featurep 'some-package-autoloads) if you're unsure whether 'some-package is actually installed. This makes your init file a little more resilient and is particularly useful with pure shells. > What do you think? Should this go into a separate, private=20 > channel? Into the Guix Cookbook? Into Guix, if so, then probably=20 > with lots of changes? Should it just stay here, in this mailing=20 > list thread? Or do you think this is just a bad idea in general? Given the caveats, I would rather like to see an Emacs Lisp based script that mocks use-package and generates a manifest by evaluting init.el. This should give you more correct results. It's not a bad idea per se, but as-is, I think it would better be maintained in your own channel before upstreaming. For upstreaming, I see two potential paths. The first one would be integration to `guix home import', which Andrew Tropin (CC'd) could probably tell you more on. The second would be integration into `guix package' as a callable function/command line argument, but IMHO that's less likely to pass. Cheers