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 ms9.migadu.com with LMTPS id 4IOJDcjOiGQbfQAASxT56A (envelope-from ) for ; Tue, 13 Jun 2023 22:17:12 +0200 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 cDaYDMjOiGR9dAEAG6o9tA (envelope-from ) for ; Tue, 13 Jun 2023 22:17:12 +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 DE9B51A4EE for ; Tue, 13 Jun 2023 22:17:11 +0200 (CEST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1q8wv7-0000sD-KR; Tue, 13 Jun 2023 01:50:21 -0400 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 1q8kOn-0001RC-CY for help-guix@gnu.org; Mon, 12 Jun 2023 12:28:09 -0400 Received: from relay3-d.mail.gandi.net ([2001:4b98:dc4:8::223]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1q8kOk-0005x3-Jz for help-guix@gnu.org; Mon, 12 Jun 2023 12:28:09 -0400 X-GND-Sasl: contact@robbyzambito.me X-GND-Sasl: contact@robbyzambito.me Received: by mail.gandi.net (Postfix) with ESMTPSA id 49A3C6000C; Mon, 12 Jun 2023 16:28:01 +0000 (UTC) References: <2daa-64864600-75-1eca40e0@207435426> User-agent: mu4e 1.10.2; emacs 28.2 From: Robby Zambito To: "jordila@librebits.info" Cc: help-guix@gnu.org Subject: Re: Guix home - 'pinning' ? Date: Mon, 12 Jun 2023 12:16:15 -0400 In-reply-to: <2daa-64864600-75-1eca40e0@207435426> Message-ID: <87ttvczlv3.fsf@robbyzambito.me> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Received-SPF: pass client-ip=2001:4b98:dc4:8::223; envelope-from=contact@robbyzambito.me; helo=relay3-d.mail.gandi.net X-Spam_score_int: -25 X-Spam_score: -2.6 X-Spam_bar: -- X-Spam_report: (-2.6 / 5.0 requ) BAYES_00=-1.9, RCVD_IN_DNSWL_LOW=-0.7, 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-Mailman-Approved-At: Tue, 13 Jun 2023 01:50:20 -0400 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-bounces+larch=yhetil.org@gnu.org X-Migadu-Country: US X-Migadu-Flow: FLOW_IN ARC-Seal: i=1; s=key1; d=yhetil.org; t=1686687431; a=rsa-sha256; cv=none; b=PTNhlO6k2JrIDWEkzdosiII2+l6QFqBOlLWeAs0UhoW6YYBZT1lyN8qFBO1pI5gaEVfS7q dxA02sgjO9QJc67sfIx2vt0v3U+CtuqPapA8U0Jvr14hyOj4c1dZPhgJ014o2Z71tA35gL PlLwEazDCaUYfqtrs/Ik8nkw/BlZmbDXqBaeuy/5rIZIEJSLGvCXqViZvasFm4t/MQb/hq ySqcL5UCEN+ccHPojLbRBQJKz4+GTnYq7HFklrGcM/MCYtT1JErHcrDTcedjydupCrYWIv LO6QqkHPqfmmsEn4/wlUcflOrp99T63XWhpxggu4b5aS7bd5CKKC6L4v31o8IA== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=none; dmarc=none; 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" ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1686687431; 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; bh=mwNRmfNmrrzGdnnqMCZdp6tZJhMFT0x3fSxYXHN3wQI=; b=m0wIvVUJyyWQbG6utIee/0pqc24fJsFR6vU0ob56us2nMB2OT9H5Wm3h/NYBYXb0LFz6tW UJASssNs+HnmT0/Q2KbHLaAPbcIMu14HDXb/jiUlRBiWKi0kv9DFfbp6GPbw6GJCzlegRH Rz3WBZuvJHY+oGmYSS0TC9dRACEhhaaXz2WlmPMi+QnqLOWK8kX612lTQWVkcgxVvS7U0e sjYQuhHzLQSyXk0UejFEoABubg7qh72M/j7kGDhg8drkBz9+/XeLn1oOaHBx7FDlxwg0s7 4wQql/9NayX/IgYKnxgrjUMrghplhkf8DAjLzkbV8Q0AMAIn5g+EryRERD1gpA== Authentication-Results: aspmx1.migadu.com; dkim=none; dmarc=none; 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-Scanner: scn0.migadu.com X-Migadu-Spam-Score: -1.82 X-Spam-Score: -1.82 X-Migadu-Queue-Id: DE9B51A4EE X-TUID: D14EWr8OBSlN Hi, > when using guix-home, is there a way to pin a given package to its=C2=A0 > current version, so that it stays as it is despite 'guix pull' =C2=A0=C2= =A0=C2=A0 > bringing new commits ? In your (home-environment (packages ...)) list, you should specify the package that has the correct version that you want. There are two ways to do this. You can either create an inferior channel, and specify the package by looking it up in that channel, or you can apply a transformation to the package to specify the version. Using an inferior package will pull the package from a previous version of Guix - including all of its package inputs. This will pin all of the transitive dependencies of the package as well. See: info guix Inferiors for information on how to define an inferior, and how to select a package from that inferior. If you want to pin a package to a specific commit, version, branch, etc of that package, you can use transformations. See: info guix "Defining Package Variants" for how to use options->transformation, and info guix "Package Transformation Options" for the available options you can set. Hope this helps :) Robby