From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp10.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms5.migadu.com with LMTPS id YHkIKEZYC2MxkQAAbAwnHQ (envelope-from ) for ; Sun, 28 Aug 2022 13:57:58 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp10.migadu.com with LMTPS id wD4qJ0ZYC2OJggAAG6o9tA (envelope-from ) for ; Sun, 28 Aug 2022 13:57:58 +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 3CE8128CCA for ; Sun, 28 Aug 2022 13:57:58 +0200 (CEST) Received: from localhost ([::1]:33422 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oSGvN-0004ov-EF for larch@yhetil.org; Sun, 28 Aug 2022 07:57:57 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:52228) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oSGvC-0004oY-HB for help-guix@gnu.org; Sun, 28 Aug 2022 07:57:46 -0400 Received: from mx0.riseup.net ([198.252.153.6]:60374) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oSGvA-00061a-Ps for help-guix@gnu.org; Sun, 28 Aug 2022 07:57:46 -0400 Received: from fews1.riseup.net (fews1-pn.riseup.net [10.0.1.83]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256 client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "mail.riseup.net", Issuer "R3" (not verified)) by mx0.riseup.net (Postfix) with ESMTPS id 4MFsWq0KGfz9sLj; Sun, 28 Aug 2022 11:57:43 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=riseup.net; s=squak; t=1661687863; bh=VeKQvleuLeAPwBNr7nnKiyxJ7acWt8YZrLG5Rwc4UFw=; h=References:From:To:Cc:Subject:Date:In-reply-to:From; b=dwPppoIMVqCMA855HMKUIH9gkt0fJYoaq+Y8Jh/pCBtUBuhdrXqv8UwWNhavij7SI xF1qh7uiiHIsT+EMf0GDCSNMp7DJ3VRWZCSBHNp0xb+bLTYDW34ajJxxYcEE5nzexM 9UvJaq6Pvpx4yIcugH3AUPNSsTmwOEOFdGtFpexA= X-Riseup-User-ID: 5408B37C66C1F94F094C731CF164072E5A9DC55D412DDE1325A4B1781ECDDF7E Received: from [127.0.0.1] (localhost [127.0.0.1]) by fews1.riseup.net (Postfix) with ESMTPSA id 4MFsWp2S8Kz5vXT; Sun, 28 Aug 2022 11:57:42 +0000 (UTC) References: From: Csepp To: Matthew James Kraai Cc: help-guix@gnu.org Subject: Re: Build particular Rust version Date: Sun, 28 Aug 2022 13:54:45 +0200 In-reply-to: Message-ID: <87h71wr364.fsf@riseup.net> MIME-Version: 1.0 Content-Type: text/plain Received-SPF: pass client-ip=198.252.153.6; envelope-from=raingloom@riseup.net; helo=mx0.riseup.net X-Spam_score_int: -27 X-Spam_score: -2.8 X-Spam_bar: -- X-Spam_report: (-2.8 / 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_LOW=-0.7, SPF_HELO_PASS=-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=1661687878; 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:in-reply-to:in-reply-to: references:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=O0m5PHMlb7+CgMrf+8FwPOv09z1qxfx85lHbDHCoV/g=; b=NqQZruEFLMHTXXNS+n+VEu26laj0qC+9nEvhwcIsSBoTn7uxnhzr1dN1W8EZ0f1ArcCOeZ KzvHtksJ/1ErG6pI5E4Du15qejavsi0/Aws2QwSyRA6Oo1ftutKTbjNHem2+vsD23dLpFw IL0F/s7O/RZXlp8JyGXB5bBTR/PVtfA6y49zyhk8NOiFzCIXtp8SW1JtGAVmtjCY5ZiEBC R12vb7H+VPRhv0WYhQWWQ42kDcqdTntB0usqrx80WFCdETDRtmRqWvytLqR16Zg5Bye3cq FhOtYzAwYKizxXHGW0FO4R+MrBNqR7Tq/N4a6sHvIHoRaPLW827TI5hAuZvdKQ== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1661687878; a=rsa-sha256; cv=none; b=BnxzxdAWkZHH8uuicWK2ZrHOiOdvyg9kWXu9bO1OLpsccki2fRaJaQ9u4y1nlL5BECW0T3 Fo4jM/KU3Zu69u7TLLPwjpSKeCkHBAl3JsR5RvA8MZ4Th9mdJHr2sgu0eJRlLiEVab5PLx rlvVczXMrK2EF7jB7u5CbC6hsAAaMqyJqrP0CuBCwVedxGzIWAq/o2r9BWHYbQzOFpe0GQ Vgut8bATLjXtEZKVNULiU/dbr0+dV9jEkwnr9/HoW3dvBeUinpEO886y2HhcT03n3KVI0u ZrasjcvOrDhJcDJrJbYWMJ7xucrkgoybjhjViGErj+9ZAWwnH+gBhQhlP3t4qg== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=riseup.net header.s=squak header.b=dwPppoIM; dmarc=pass (policy=none) header.from=riseup.net; 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.39 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=riseup.net header.s=squak header.b=dwPppoIM; dmarc=pass (policy=none) header.from=riseup.net; 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: 3CE8128CCA X-Spam-Score: -2.39 X-Migadu-Scanner: scn1.migadu.com X-TUID: zgtye3BA2OX4 Matthew James Kraai writes: > Hi, > > Is it possible to build Rust 1.58.1 without updating the `rust` > definition? If so, how do I do so? > > If I apply this patch: > > ``` > diff --git a/gnu/packages/rust.scm b/gnu/packages/rust.scm > index 67dc5cdaf3..61d6686b64 100644 > --- a/gnu/packages/rust.scm > +++ b/gnu/packages/rust.scm > @@ -644,10 +644,14 @@ (define rust-1.56 > rust-1.55 "1.56.1" "04cmqx7nn63hzz7z27b2b0dj2qx18rck9ifvip43s6dampx8v2f3")) > > (define rust-1.57 > + (rust-bootstrapped-package > + rust-1.56 "1.57.0" "06jw8ka2p3kls8p0gd4p0chhhb1ia1mlvj96zn78n7qvp71zjiim")) > + > +(define rust-1.58 > (let ((base-rust > (rust-bootstrapped-package > - rust-1.56 "1.57.0" > - "06jw8ka2p3kls8p0gd4p0chhhb1ia1mlvj96zn78n7qvp71zjiim"))) > + rust-1.57 "1.58.1" > + "1iq7kj16qfpkx8gvw50d8rf7glbm6s0pj2y1qkrz7mi56vfsyfd8"))) > (package > (inherit base-rust) > (outputs (cons "rustfmt" (package-outputs base-rust))) > ``` > > and run `./pre-inst-env guix build rust@1.58.1`, it outputs > > ``` > guix build: error: rust: package not found for version 1.58.1 > ``` I haven't tried building Rust, but at a glance it seems like the new package inherits its version field from base-rust. Guix doesn't really care what symbol you assign the package to, only the version field matters. You could write (define-public this-is-definitely-php rust-base) and it would still show up in `guix search rust`.