From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp0.migadu.com ([2001:41d0:403:4876::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms13.migadu.com with LMTPS id uGbxOmn+cmamSQAAqHPOHw:P1 (envelope-from ) for ; Wed, 19 Jun 2024 15:51:06 +0000 Received: from aspmx1.migadu.com ([2001:41d0:403:4876::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp0.migadu.com with LMTPS id uGbxOmn+cmamSQAAqHPOHw (envelope-from ) for ; Wed, 19 Jun 2024 17:51:06 +0200 X-Envelope-To: larch@yhetil.org Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=remworks.net header.s=fm1 header.b=I5t3wNqu; dkim=pass header.d=messagingengine.com header.s=fm2 header.b=qG3IzMCK; 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"; dmarc=none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1718812265; 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=XbASg9/78G0RbB7M9XoIQTf+iATuY3O+b442LYyf8kU=; b=Heg6GL8hDD5Aq7WQwontEGXWeD0Jq+qQ2XM2ceKvaEgpMfVIlFJvVL6ZCq8naq35UFAiuP 2EAx55ydd4l/5kX5rp2UoNefVJiq75U+3WPOvMM/7yCcNHBIUUlvabij00DBmFOOU89Noi yfSggtnKzIfCXgHtmxub2o1dD2K6o3Yk381Pw7Vm1CmINJ3vsGxqhlGlSgBVpYnscH0vIe lUqPCgohjFEWfFXZAX8sUiS1q5XDdX5TvChzikrbqWIaQI1fgkqahGPNuIGUK2I4E+mu/i zO3Rx4kfPHip3dNKglrIGwcuFG7/jb4YcYIlJW0lToE68Y835IB0rjhKV5IGGw== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=remworks.net header.s=fm1 header.b=I5t3wNqu; dkim=pass header.d=messagingengine.com header.s=fm2 header.b=qG3IzMCK; 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"; dmarc=none ARC-Seal: i=1; s=key1; d=yhetil.org; t=1718812265; a=rsa-sha256; cv=none; b=etsu20UPiawwqW41B7juz4CdW1czBZ10faJXc0gnSpeBRREkzV7BBfOiSkaCUpqUkN3kX9 vtewYGMnl1cqPuYOKXkJjgm4zHPmWyPCZv9WVHstd9WtMtkhEB71URlvTJUUj7FPO+s9qi AuncRuinvKL0nOK7kIv6WAaB3M4DvTOcFW7tQ8cmEviHei/pIH8A8XUjqgWKM7jNfWh1+6 Zr4iF9kmGDN4YJzh4phtQVg0ot4135Y/NhfYFO8E67GruwQeWZvM/lbzmcslGSjfauY3OS GzDoy3rQ7RJkhAad10Fk2u/+4oBHZzVyvehJhQNvMZq++xe9JViyIOWTPwylPQ== 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 CAD9624941 for ; Wed, 19 Jun 2024 17:51:05 +0200 (CEST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1sJxa2-0002u8-5t; Wed, 19 Jun 2024 11:50:38 -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 1sJxa0-0002tU-RX for help-guix@gnu.org; Wed, 19 Jun 2024 11:50:37 -0400 Received: from fhigh7-smtp.messagingengine.com ([103.168.172.158]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1sJxZy-0001u9-5O for help-guix@gnu.org; Wed, 19 Jun 2024 11:50:36 -0400 Received: from compute6.internal (compute6.nyi.internal [10.202.2.47]) by mailfhigh.nyi.internal (Postfix) with ESMTP id 92EEA11401E0; Wed, 19 Jun 2024 11:50:31 -0400 (EDT) Received: from mailfrontend1 ([10.202.2.162]) by compute6.internal (MEProxy); Wed, 19 Jun 2024 11:50:31 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=remworks.net; h= cc:cc:content-type:content-type:date:date:from:from:in-reply-to :in-reply-to:message-id:mime-version:references:reply-to:subject :subject:to:to; s=fm1; t=1718812231; x=1718898631; bh=XbASg9/78G 0RbB7M9XoIQTf+iATuY3O+b442LYyf8kU=; b=I5t3wNquIkuOh01khfLpNCJK2e IJ+WrK72B31Jxngq1FDZ4v1w7QSpwhbSt50oSy8RbcRpYTiNng55whpxrDjcCPyt kUSFDPzKFjm1pAYDMilUnvElUWf+ndOtEFu8vtdREcBa+68+8dzTbl6eo0zVI25T SD3HEncwXmvgZPT9v3cFLON/J4URtwYnnG7QoZ4xf7zLc6XXSR0P/pOmKwDTkW7L n0h8HrETXo5sq07dRFcqmCaDWLNeEsrJqb6x/0KqfaZxK/H1L9BkHKq4W5+mr6Xb fjlHmj/94Q2qZnwLmvPJoTQZ8rwRdtjiLKMlWR0T5pJf0pwhny6aP/tO03wA== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-type:content-type:date:date :feedback-id:feedback-id:from:from:in-reply-to:in-reply-to :message-id:mime-version:references:reply-to:subject:subject:to :to:x-me-proxy:x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s= fm2; t=1718812231; x=1718898631; bh=XbASg9/78G0RbB7M9XoIQTf+iATu Y3O+b442LYyf8kU=; b=qG3IzMCKHP635mP18aVA7OYTLYF8leupdl4yQMyQ1WJp G1d0ZcNIzF/+wM1BI9xCfssS/5BCmjP+R3VKGAcQwxKLB2GWuD5VTJA2igAie3oD F9M04+HiOAeYP/L5gT+CvrD83OCVB3BnbyS9ggg7Bn59pjrl+Wn3Ni4ng6YNSU7h jCZVdyQW0vLfX/P3LwQ1GUGfEAr/mflxoFkretb/4UxcsQGTZBdjhiLC9cO1eTIg 3QosLXVRVQPB24o2Q2siUPf0P+fm6uyrx8NUTm6jrdpm/xyaSj1/x1L9Wltnp8Nk QItKBZqkgna9jClyMXP3rIOyDJB/fNHOKdlPXOpk5g== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvledrfeeftddgleefucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne cujfgurhephffvvefujghffffkgggtsehttdertddttddtnecuhfhrohhmpeftvghmtgho uchvrghnucdkthcugggvvghruceorhgvmhgtohesrhgvmhifohhrkhhsrdhnvghtqeenuc ggtffrrghtthgvrhhnpeejvdeujeffjeejtdelveevgeetueethfehgfetvdfgueetleeh ledugeetudfhheenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepmhgrihhlfh hrohhmpehrvghmtghosehrvghmfihorhhkshdrnhgvth X-ME-Proxy: Feedback-ID: if0694934:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Wed, 19 Jun 2024 11:50:30 -0400 (EDT) From: Remco van 't Veer To: Daniel Littlewood Cc: help-guix Subject: Re: Ruby without RVM - what to do if the version I want is missing? In-Reply-To: (Daniel Littlewood's message of "Mon, 17 Jun 2024 20:09:13 +0100") References: Date: Wed, 19 Jun 2024 17:50:28 +0200 Message-ID: <87y171hqyj.fsf@remworks.net> MIME-Version: 1.0 Content-Type: text/plain Received-SPF: pass client-ip=103.168.172.158; envelope-from=remco@remworks.net; helo=fhigh7-smtp.messagingengine.com 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-bounces+larch=yhetil.org@gnu.org X-Migadu-Country: US X-Migadu-Flow: FLOW_IN X-Spam-Score: -6.99 X-Migadu-Queue-Id: CAD9624941 X-Migadu-Scanner: mx10.migadu.com X-Migadu-Spam-Score: -6.99 X-TUID: 9yliPOrleOSx Hi Daniel, 2024/06/17, Daniel Littlewood: > The file guix.scm contains (by the way, why is the use-modules syntax > different here?) > (use-modules (guix packages) > (guix download) > (guix utils) > (guix build-system ruby) > (ruby)) > (package > (name "my-project") > (version "1.0.0") > (license #f) > (source #f) > (build-system ruby-build-system) ; "no build system" was not an option > (propagated-inputs (list ruby-3.3)) > (synopsis "") > (description "") > (homepage "")) > > Now I become confused: > guix shell -L ~/my-channel -D -f guix.scm # works, as expected > ruby --version > ruby 3.1.4p223 (2023-03-30 revision 957bb7cb81) [x86_64-linux] > # this is *not* the host ruby: > exit > ruby --version > ruby 2.7.8p225 (2023-03-30 revision 1fd455848) [x86_64-linux] > > I don't know where it is getting 3.1.4 from! I have not written it > anywhere. I do recognise it - I think I have previously installed it > at some point. But I don't know where it's being pulled from - some > cache? It looks like Remco's approach using manifests should work, but > I wonder: does anyone know what's wrong with my guix.scm? I think you're getting the build dependency of ruby-3.3 because you're using -D to get the development dependencies of the defined package. It should probably work when you use "inputs" instead of "propagated-inputs" here when using -D. I've never used "propagated-inputs" but I think this is not the way to use them. A typical use, I think, would be some package which enhances some other package. So say you have a package "foo" which you could install to do it's thing but there's also "foo-with-superpowers" which depends on "foo" being installed but add superpowers to that command and function through the original package. Cheers, Remco