From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp2 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms11 with LMTPS id AMf/C1SEol+9CwAA0tVLHw (envelope-from ) for ; Wed, 04 Nov 2020 10:37:08 +0000 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp2 with LMTPS id QCvOB1SEol8LDQAAB5/wlQ (envelope-from ) for ; Wed, 04 Nov 2020 10:37:08 +0000 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 69D61940149 for ; Wed, 4 Nov 2020 10:37:07 +0000 (UTC) Received: from localhost ([::1]:52264 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kaGA6-0007Sz-8G for larch@yhetil.org; Wed, 04 Nov 2020 05:37:06 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:43502) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kaG9h-0007PD-As for guix-devel@gnu.org; Wed, 04 Nov 2020 05:36:41 -0500 Received: from mail-m972.mail.163.com ([123.126.97.2]:42938) by eggs.gnu.org with esmtps (TLS1.2:DHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.90_1) (envelope-from ) id 1kaG9c-00044v-Ec for guix-devel@gnu.org; Wed, 04 Nov 2020 05:36:39 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=163.com; s=s110527; h=From:Subject:Date:Message-ID:MIME-Version; bh=PIy21 AgQBsFL4ejatQteQLxgs/b8lEyIz46mt+BQXks=; b=mgGotPjsICE4Vt+osWChB 8rNh7m/2MxXF+VMmH8QSlJuCGDYBnmfXZUAqpTgGT3XObj+k7RZIsDlIyVZY3mO5 4qcP3RjsF/CbW8rBlQiGKsEUNArElIXldpRnBUXPzR5Ig5xJ597oPZb8B+72VThp OPtLmx7dNchbhUFl1SMFgU= Received: from asus-laptop (unknown [27.39.89.237]) by smtp2 (Coremail) with SMTP id GtxpCgA3rOEthKJf69DAAA--.74S2; Wed, 04 Nov 2020 18:36:29 +0800 (CST) References: <33db285c56516bac910112344b7c9766221bdaf3.camel@student.tugraz.at> <864km55teh.fsf@163.com> <42ddcb59882ded6c18da226c56bec7e6e224801a.camel@student.tugraz.at> User-agent: mu4e 1.4.13; emacs 27.1 From: Zhu Zihao To: Leo Prikler Subject: Re: A public Lisp programming interface provide feature like `guix environment --container` In-reply-to: <42ddcb59882ded6c18da226c56bec7e6e224801a.camel@student.tugraz.at> Date: Wed, 04 Nov 2020 18:36:25 +0800 Message-ID: <86lffh2yty.fsf@163.com> MIME-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha256; protocol="application/pgp-signature" X-CM-TRANSID: GtxpCgA3rOEthKJf69DAAA--.74S2 X-Coremail-Antispam: 1Uf129KBjvdXoW7GrWUZrW5XFWkArWDZryftFb_yoWfXrb_uF Wftr97AryDXF97twsrJanrXrZxKryfXFy3Jw1ktw12qr97Can7XFn2y3Z7Z397uF4FgFyY gF93GFy8J3yUGjkaLaAFLSUrUUUUUb8apTn2vfkv8UJUUUU8Yxn0WfASr-VFAUDa7-sFnT 9fnUUvcSsGvfC2KfnxnUUI43ZEXa7IU16uWtUUUUU== X-Originating-IP: [27.39.89.237] X-CM-SenderInfo: pdoosuxxwbztlvw6il2tof0z/1tbiTw-Sr1sGWV-eVgAAsu Received-SPF: pass client-ip=123.126.97.2; envelope-from=all_but_last@163.com; helo=mail-m972.mail.163.com X-detected-operating-system: by eggs.gnu.org: First seen = 2020/11/04 05:36:32 X-ACL-Warn: Detected OS = Linux 3.1-3.10 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.23 Precedence: list List-Id: "Development of GNU Guix and the GNU System distribution." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: guix-devel@gnu.org Errors-To: guix-devel-bounces+larch=yhetil.org@gnu.org Sender: "Guix-devel" X-Scanner: ns3122888.ip-94-23-21.eu Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=163.com header.s=s110527 header.b=mgGotPjs; dmarc=pass (policy=none) header.from=163.com; spf=pass (aspmx1.migadu.com: domain of guix-devel-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=guix-devel-bounces@gnu.org X-Spam-Score: -2.31 X-TUID: 6X5iRQwJ+jYd --=-=-= Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Leo Prikler writes: > For the record, what you do want is something =C3=A0 la > (call-in-container-environment THUNK MANIFEST . KWARGS) > where manifest is the Guix environment manifest, THUNK is a procedure > to call with 0 arguments and KWARGS is a list of options for things you > might want to set up, e.g. just the GUIX_ENVIRONMENT variable or more > than that. > > Is that about right? > > Regards, Leo Yes, that's what I want. KWARGS may accept something like user-mappings, network?, namepsaces etc. like `launch-environment/container`. So I can create container entry script for different executable in batch with more confidence in code reuse. It's ugly to=20 concatenate string argument (For example: `(string-append "--expose=3D" xxxx "=3D" yyy)`) when I want to reuse some path variable. =2D-=20 Retrieve my PGP public key: https://meta.sr.ht/~citreu.pgp Zihao --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQFJBAEBCAAzFiEE7NCVzXX6efyusptG1SOVn+xGFqYFAl+ihCkVHGFsbF9idXRf bGFzdEAxNjMuY29tAAoJENUjlZ/sRhamqDQH/1ACV7rxQJoiCriOKeVMwTjXPr6f ACXCc7ISmIT0RT4Aup8pT3CC5aGRYMTORpR1L4YiospXKiWcCGMyYjCpABjMKwuT JycpBmznjfaGfyhd9M7HXRfp6nB80DnuzZ6RQ5U1zPx9Znofp+bknSB2hQUiag47 /M3ktohvlyR8Ug7n8sMH78xnfpmCLuNEYRU3AJ/5H3VF6YjKI7q7ThzMjucwnrtM xXvgtJ94lP0Ba6TPr/8XZp3Vs2G2+QEgBm7fO7zhTqYLPnVjqsu/S8Smc4J2mkme Na0HHEFgHWgZaYD2+RQ7LiD0qp4EPBK5eTuH3BGJKtSxKMYz8IUTYkO4vQk= =ER+n -----END PGP SIGNATURE----- --=-=-=--