From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp11.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms5.migadu.com with LMTPS id uCBqDX/DA2NriAAAbAwnHQ (envelope-from ) for ; Mon, 22 Aug 2022 19:57:19 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp11.migadu.com with LMTPS id IN6UDX/DA2MOCQEA9RJhRA (envelope-from ) for ; Mon, 22 Aug 2022 19:57:19 +0200 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 E9963367A5 for ; Mon, 22 Aug 2022 19:57:18 +0200 (CEST) Received: from localhost ([::1]:41344 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oQBfp-00026P-To for larch@yhetil.org; Mon, 22 Aug 2022 13:57:17 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:60074) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oQ9gb-0004gH-RE for help-guix@gnu.org; Mon, 22 Aug 2022 11:49:59 -0400 Received: from mail-wr1-x430.google.com ([2a00:1450:4864:20::430]:41672) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1oQ9gZ-0004iS-Kp for help-guix@gnu.org; Mon, 22 Aug 2022 11:49:56 -0400 Received: by mail-wr1-x430.google.com with SMTP id h24so13750947wrb.8 for ; Mon, 22 Aug 2022 08:49:51 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=content-transfer-encoding:mime-version:message-id:date:references :in-reply-to:subject:to:from:from:to:cc; bh=7JxgmVXU34hylWbdAUiYuFKbTOTeHVkwg5w0G6Ez4kI=; b=eWJUBi1VKwSVAKpZAfUvqwZt5b+mNS13enb2xLne24vVimXzPt3iAqRESi0QBMl3XU nIcttWWo2M/40TIvcP+ZO4ffqZxmDT/54qjpCjhejktWoF4SdWk8dyrByxTk+2q2KTkG QJihp1i97dMLd2l4pmuzSesuAHBoQg1GA16TnItFno9Bu9ahtYV2Y8HgjRm6F5o3SAXG UUPp/4s98rEv7bY50JPadZYlVVq08HdsoaAwoNgQyJhRdYKA3VjWNXVa2lOX2Jle7BAq hdtmx9ul8U/fucJMh70MO+yV3ULDdNK8TmOFB2Yg4VQkgShrFMZCtt9kiIpAwUH4FYyM ERBg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:message-id:date:references :in-reply-to:subject:to:from:x-gm-message-state:from:to:cc; bh=7JxgmVXU34hylWbdAUiYuFKbTOTeHVkwg5w0G6Ez4kI=; b=lbP8GyBpAmXEyruNreTLEdsf6iID279IG+/2201se3AaIzDlYvmhTdSwUk3tTl0aRN z3BdKFUCVIGgsv+ufspo1Xurv7n3fizeehxDMRrGruJd30IFAZeC0QFuSHMxX5eyoJ9U v7lISoU3tl1py15sWTlc8MBXxhhVzL8Y5V61EtIHHMHHOTw61Ye7Fd+X6UOZZX0Ri2E2 V7nfDqWTgNnLGT+D84V5kK7mdLjiduaremML3ZZbsCYdbVQKBSHDqtRP566v7ift09PX gq21uPeOV8XzX+1eCyDKvoXzx9o5zo8mu8tgJM6azfVRDZ0bKFTAHhVjWB48xthD9wGA 98ew== X-Gm-Message-State: ACgBeo0itQ82ITH9BBItI7jA5UMBnujBuTK/qY+6KSBQGf97vNoDvCD4 7b7qPWlO/cC06dUQPKtlIXzSoEx/IJ4= X-Google-Smtp-Source: AA6agR5MB24CFwJs8jmCTbLfMuscS3RxORXhIOCnv4TfRFCTyH0arEfQEt5MSBrYjde/SrZRfyk5gg== X-Received: by 2002:a5d:58ca:0:b0:225:24a8:8861 with SMTP id o10-20020a5d58ca000000b0022524a88861mr11439391wrf.316.1661183390390; Mon, 22 Aug 2022 08:49:50 -0700 (PDT) Received: from pfiuh07 ([193.48.40.241]) by smtp.gmail.com with ESMTPSA id l41-20020a05600c1d2900b003a62052053csm20386792wms.18.2022.08.22.08.49.49 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 22 Aug 2022 08:49:49 -0700 (PDT) From: zimoun To: Olivier Dion , help-guix@gnu.org Subject: Re: guix-pack on package record In-Reply-To: <87r11ek2my.fsf@laura> References: <87tu6ak3lb.fsf@laura> <87r11ek2my.fsf@laura> Date: Mon, 22 Aug 2022 17:08:38 +0200 Message-ID: <87czcs5n9l.fsf@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Received-SPF: pass client-ip=2a00:1450:4864:20::430; envelope-from=zimon.toutoune@gmail.com; helo=mail-wr1-x430.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, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: help-guix@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-guix-bounces+larch=yhetil.org@gnu.org Sender: "Help-Guix" X-Migadu-Flow: FLOW_IN X-Migadu-To: larch@yhetil.org X-Migadu-Country: US ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1661191039; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to: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=7JxgmVXU34hylWbdAUiYuFKbTOTeHVkwg5w0G6Ez4kI=; b=KLyMOgkPV60N3kh2U53Sf+6ohd9Xi7OvdzKydLGI5BqHiPhb9T2D9fRmL7g6UC5X5wKGEv XnxUYH3u4uAxVDMGOTUS6KkAQcMwm9oVGfVgj1vX386GV7yHIig2UIPdB1arHp2wzeCYrd NQgVuburiNgbfv5ugbzYBAxGiw0CZhbHw7+9WOecqJmkRxXNuCUH9YCO+zg7JDlXQtn5ht NSeSeuFj9CUWMzIsHJ8EHu9owUezHe6BqZbe6ZTbIw4kAVhdSlsf47EMV0jPYXZD1Z6nCl oqFaBPankqU4L2v2PZpeGYpXOJ5SV5FhTVGtAfFKGJt11heaDTTeVt0tkQYiCA== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1661191039; a=rsa-sha256; cv=none; b=c8MhO+ObA6WLiT/XSGKUs61Bj8uA81+ybztq9hpl/aE9aSsrTqVM3Plxt3Cc5V425CemDi iFroD6F0AgLOxGF06baX24wBCZpQ1a38Nrt1anseqFr5gJT3kVX0UbNUH8ZcTBjknyMsa6 teEPAPv0w7lQkvBOfSsYmDhdJhBnHqbmNOpFzpMecoXEhD5KUHw9kFA6uoOYaiZgz32mE3 ERAb0NI7tJmsv7IZeKyq6lywMwiF6l5NQSlGUbIsgpFUAMdwDLYD40sI5+nnLMvWrHmuL1 N2O9jNow6EKpdh6cHqN/TJUaPndQt1Qk80Bmjg4Nejm7qEI7tqqCr7wSO3t9nA== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20210112 header.b=eWJUBi1V; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (aspmx1.migadu.com: domain of "help-guix-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="help-guix-bounces+larch=yhetil.org@gnu.org" X-Migadu-Spam-Score: -2.31 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20210112 header.b=eWJUBi1V; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (aspmx1.migadu.com: domain of "help-guix-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="help-guix-bounces+larch=yhetil.org@gnu.org" X-Migadu-Queue-Id: E9963367A5 X-Spam-Score: -2.31 X-Migadu-Scanner: scn1.migadu.com X-TUID: A1NQeUZnnI/2 Hi Olivier, On mer., 17 ao=C3=BBt 2022 at 16:59, Olivier Dion via w= rote: > (define* (bundle-package package . rest) > > (define manifest (packages->manifest (list package))) > (define profile (profile (content manifest))) =E2=80=93^ =E2=80=93^=20 Well, I do not think the compiler likes that. From =E2=80=9Cguix repl=E2= =80=9D, it raises the message: ;;; : warning: possibly unbound variable `content' and then =E2=80=99bundle-package=E2=80=99 fails with: ice-9/boot-9.scm:1685:16: In procedure raise-exception: error: content: unbound variable > > (run-with-store (open-connection) > (mlet %store-monad ((drv (apply self-contained-tarbar =E2=80=93^ typo It is =E2=80=99self-contained-tarball=E2=80=99 from (guix scripts pack), I = guess. Otherwise, it does the same thing as =E2=80=9Cguix pack foo=E2=80=9D. --8<---------------cut here---------------start------------->8--- scheme@(guix-user)> ,use(gnu packages base) scheme@(guix-user)> (bundle-package hello) $1 =3D "/gnu/store/riyxydg95yyczl6w4dv9j1rd9m1jbq1h-hello.tar.gz" scheme@(guix-user)> ,q $ guix pack hello /gnu/store/0s6z9w6giwjh80ks4f3hwbhb1g9nhh8c-hello-tarball-pack.tar.gz $ shasum \ /gnu/store/riyxydg95yyczl6w4dv9j1rd9m1jbq1h-hello.tar.gz \ /gnu/store/0s6z9w6giwjh80ks4f3hwbhb1g9nhh8c-hello-tarball-pack.tar.gz=20 d326ee555dde564e357e3aa4d66a4497306fc12e /gnu/store/riyxydg95yyczl6w4dv9j1= rd9m1jbq1h-hello.tar.gz d326ee555dde564e357e3aa4d66a4497306fc12e /gnu/store/0s6z9w6giwjh80ks4f3hwb= hb1g9nhh8c-hello-tarball-pack.tar.gz --8<---------------cut here---------------end--------------->8--- And =E2=80=9Cguix package foo=E2=80=9D can be done from the REPL using =E2= =80=99guix-pack=E2=80=99 from (guix scripts pack): --8<---------------cut here---------------start------------->8--- scheme@(guix-user)> ,use(guix scripts pack) scheme@(guix-user)> (guix-pack "hello") /gnu/store/0s6z9w6giwjh80ks4f3hwbhb1g9nhh8c-hello-tarball-pack.tar.gz $1 =3D #t --8<---------------cut here---------------end--------------->8--- Somehow, bundle-package is a simplified version without all the =E2=80=9Coptions=E2=80=9C. But hey, it is always cool to unwrap things and= have a better control. :-) That=E2=80=99s why Guix is so cool! ;-) Cheers, simon