From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp0 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms11 with LMTPS id aLD9NOqw7F7kEgAA0tVLHw (envelope-from ) for ; Fri, 19 Jun 2020 12:34:50 +0000 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp0 with LMTPS id mAvHMOqw7F4ZXAAA1q6Kng (envelope-from ) for ; Fri, 19 Jun 2020 12:34:50 +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 77BEB9400E1 for ; Fri, 19 Jun 2020 12:34:50 +0000 (UTC) Received: from localhost ([::1]:46882 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jmGEL-0008Ge-7C for larch@yhetil.org; Fri, 19 Jun 2020 08:34:49 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:34554) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jmGE7-0008Cz-BK for guix-devel@gnu.org; Fri, 19 Jun 2020 08:34:35 -0400 Received: from m42-5.mailgun.net ([69.72.42.5]:27763) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1jmGE0-00042A-Sw for guix-devel@gnu.org; Fri, 19 Jun 2020 08:34:35 -0400 DKIM-Signature: a=rsa-sha256; v=1; c=relaxed/relaxed; d=mg.wilsonb.com; q=dns/txt; s=krs; t=1592570073; h=Content-Type: MIME-Version: Message-Id: In-Reply-To: References: Subject: From: Cc: To: Date: Sender; bh=sAKQt5Eh625d2+AJ+XKWBMBtDrWVPJF7s+b0M1cX6Mo=; b=mnIXgNeHfIYSuEpxbL1uf4Y0rbattIKaWjlmtsCtUy3tVrGxkUuCC/RkQFqS/GnqApe7+WuZ 79b2MU50BBntpMGboVOgMGf6/ffvILHbWl33igbSOR626srhaEi0HFMryxcNhjM7bywgmUGp Uj+WL0QfhqQW2S5jjE63H3AJTqR3CxgDBEoCFZ2CB4nKy6YNTYqcijz2V6sfKEMhgkQeRAfH 8aBP4n6Zz2ZSbWvoCYIzwu7GJVZQKiPFi1CfjDt+ufRhlZMG08KokP0wThWS1WFkq/nRmS/3 yBpOwaDA45azGeBs9hWpwOjL2rkWOd93Y6dyDM+Rxoh7IaOsCKWFww== X-Mailgun-Sending-Ip: 69.72.42.5 X-Mailgun-Sid: WyIyNWJlMSIsICJndWl4LWRldmVsQGdudS5vcmciLCAiMDg1NDdhIl0= Received: from wilsonb.com (wilsonb.com [104.199.203.42]) by smtp-out-n11.prod.us-west-2.postgun.com with SMTP id 5eecb0befe1db4db89b0b417 (version=TLS1.3, cipher=TLS_AES_128_GCM_SHA256); Fri, 19 Jun 2020 12:34:06 GMT Received: from localhost (KD111239198099.au-net.ne.jp [111.239.198.99]) by wilsonb.com (Postfix) with ESMTPSA id 908B3A2B29; Fri, 19 Jun 2020 12:34:04 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=wilsonb.com; s=201703; t=1592570044; bh=sAKQt5Eh625d2+AJ+XKWBMBtDrWVPJF7s+b0M1cX6Mo=; h=Date:To:Cc:From:Subject:References:In-Reply-To:From; b=t0ah8WPqJH+/DBjRPjp2uRNicUA0zXAPUNxcV1bks3l1kXtZ2rLIt1sRLae4Uf7kr sTb7hBpyMcCC5Gb5EYfdnUqlCS5fboAAposWeTy0IDlDGng8gaISwLFYyb3DXaD0Te Dcxn34BtYIr3yrM4LZ2pVq5RIy30kOu/hRUF6YbFj6v3LbnlrDD+J83KTfSOMHR26l y/c+McXSNsXdSKEfluVYfoUjRorI1QipVumrsvLiUw4/WOBmqD5F1dzo+13ku5V4kH d4G9QCYB9Jczp+dKuxkDKBuBzjF3EVe0oHGRhrhCRNm3DgnkZaMzK6eFPqKM6hgwNj Xxk1eVsYi0aSUlwHWvS8tqQNOOaYSJL5qCDBKXkXQn+4FJrtClMIhPG0/kCaZySR5D /+VOwiD6lAn43aYwFYrVgqNBuqfDJdJTWupK/bfv3bhVD0sn+N5pxsDBF7qp3Mf7OA Cegl6zihNjfPZBXV1Oc72/LuTZrvkLb3+bQeU2Mcx49ETfJCabTJxjKV0yNi4MIWer xa3tQ/NyYjR+ilSBUsUwFTmEYKyo7FQz70pGSSpXVQwr2nlF4TGzw67Rg9oar62ZXh k1nCsdsCc55Ay5wCqUfRlZ0P5KvhYfF7+KuPTyYIJRMKAZERiv1COBgyI0T/fOLoqm RtRBTUssZjM2cV8+zp7H+k7g= Date: Fri, 19 Jun 2020 21:34:01 +0900 To: zimoun Cc: Ludovic =?UTF-8?Q?Court=C3=A8s?= , Pierre Neidhardt , guix-devel@gnu.org From: elaexuotee@wilsonb.com Subject: Re: how to "guix pack" a profile? References: <338KGSFKQGP1E.23382XUCMS8T3@wilsonb.com> <87v9juwvn0.fsf@gnu.org> <87d062ne8a.fsf@ambrevar.xyz> <87y2opu0ue.fsf@gnu.org> <86lfko92fj.fsf@gmail.com> <871rmfwdfp.fsf@gnu.org> <2AU8F0YU6YV9A.3KVDEJ754D654@wilsonb.com> <86sgevqg8q.fsf@gmail.com> <268B906X3RZH5.3NHG3ABUCOVPN@wilsonb.com> <861rmexgwf.fsf@gmail.com> <35VODTGT3A8OP.2ZYCBD56EYVPN@wilsonb.com> <861rmcvssb.fsf@gmail.com> <35IQNXNGMD4MQ.2U3WRPXMLCVVA@wilsonb.com> <86sgerv4nj.fsf@gmail.com> In-Reply-To: <86sgerv4nj.fsf@gmail.com> Message-Id: <20D5XZWWIP8NW.2T1GC8IP1QN8L@wilsonb.com> User-Agent: mblaze/0.7 MIME-Version: 1.0 Content-Type: multipart/signed; micalg="pgp-sha1"; protocol="application/pgp-signature"; boundary="----_=_204f65a02daf77ee78c3d394_=_" Received-SPF: pass client-ip=69.72.42.5; envelope-from=bounce+ec9951.08547a-guix-devel=gnu.org@mg.wilsonb.com; helo=m42-5.mailgun.net X-detected-operating-system: by eggs.gnu.org: First seen = 2020/06/19 08:16:39 X-ACL-Warn: Detected OS = Linux 2.2.x-3.x [generic] [fuzzy] X-Spam_score_int: -30 X-Spam_score: -3.1 X-Spam_bar: --- X-Spam_report: (-3.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, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H2=-1, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, URIBL_BLOCKED=0.001 autolearn=_AUTOLEARN 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: , Errors-To: guix-devel-bounces+larch=yhetil.org@gnu.org Sender: "Guix-devel" X-Scanner: scn0 Authentication-Results: aspmx1.migadu.com; dkim=fail (rsa verify failed) header.d=mg.wilsonb.com header.s=krs header.b=mnIXgNeH; dkim=pass header.d=wilsonb.com header.s=201703 header.b=t0ah8WPq; dmarc=pass (policy=quarantine) header.from=wilsonb.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.81 X-TUID: k7A1qC/EuZi0 This is a multipart message in MIME format. ------_=_204f65a02daf77ee78c3d394_=_ MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="----_=_3ccdbdd670e6473c2ba0675a_=_" This is a multipart message in MIME format. ------_=_3ccdbdd670e6473c2ba0675a_=_ Content-Type: text/plain; charset=UTF-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable > > 1. Composable profiles, >=20 > This is already possible. Would you kindly point me to the documentation? I am failing to find it. By "composable profiles" what I have in mind is the sum of two existing profiles and extending them as necessary $ guix environment --with-profile saved-profiles/profile-A \ --with-profile saved-profiles/profile-B \ > This snippet of quotation shows that it is not "easy" for the general > case. And the transformation using "--load-path" has not been evoked. > For example: >=20 > --8<---------------cut here---------------start------------->8--- > (define-module (foo) > #:use-module (guix packages) > #:use-module (guix profiles) ;; imagine it is used > #:use-module (gnu packages base)) >=20 > (define (crazy-transformation pkg) > "Could do really complicated things" > (package > (inherit pkg) > (name (string-append "ex-" (package-name pkg))))) >=20 > (define bonjour > (package > (inherit hello) > (name "bonjour"))) >=20 > (define-public crazy-bonjour > (crazy-transformation bonjour)) > --8<---------------cut here---------------end--------------->8--- >=20 > then "guix install -L /path/to/foo ex-bonjour". Thank you for the concrete example. I guess it wasn't clear in my previous emails, but I proposed *simply copying /path/to/foo* into the generated profile and letting "manifest.scm"= refer to these copies. Is this obviously broken. > Thank you for the ideas. Especially the two ones: >=20 > 1. create an environment from a profile > 2. pack a profile >=20 > Well, I do not know if they will happen but it should be cool to have. I agree. If I'm to make any points, I should just submit some concrete patc= hes. Again, thank you for your time and patience. Cheers, ------_=_3ccdbdd670e6473c2ba0675a_=_-- ------_=_204f65a02daf77ee78c3d394_=_ Content-Disposition: attachment; filename=signature.asc Content-Type: application/pgp-signature Content-Transfer-Encoding: 7bit -----BEGIN PGP SIGNATURE----- iI0EABYIADUWIQQ7FdZn/PDWvxE6cmR2pStZ7i7CgQUCXuywtBccZWxhZXh1b3Rl ZUB3aWxzb25iLmNvbQAKCRB2pStZ7i7CgaCzAQDyR6gwYcNuqM1CyZuRwtXKiWDk dW2eiqEMRaLoW76OtgEAn2s174DUzvtdiYYXtUHbK3IOg5v3U+k+hn+oAY2rNQo= =adRy -----END PGP SIGNATURE----- ------_=_204f65a02daf77ee78c3d394_=_--