From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp0.migadu.com ([2001:41d0:303:e16b::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms13.migadu.com with LMTPS id 6N4lE/6JcGY3ewEAqHPOHw:P1 (envelope-from ) for ; Mon, 17 Jun 2024 19:09:50 +0000 Received: from aspmx1.migadu.com ([2001:41d0:303:e16b::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp0.migadu.com with LMTPS id 6N4lE/6JcGY3ewEAqHPOHw (envelope-from ) for ; Mon, 17 Jun 2024 21:09:50 +0200 X-Envelope-To: larch@yhetil.org Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20230601 header.b=bDA73GVE; 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=pass (policy=none) header.from=gmail.com ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1718651390; 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:dkim-signature; bh=yOGdiMHwIrCIsWgmnk31sh0y4n24Aed30nozJr1OEuY=; b=LldCbeSr4OAtvf9WKMjVQqKdfPB3ac1V45pdYY9WgHHE23jZMryOIXhFwq/XF7N60HoyVl LVTSFZlssFVIv2Ky6aU9yopshXfWxAkgVEBqTENZnRe8uaVWtxKhZMNbsymW1YMwOx1l6F 6lGn31bjLIRwQCjs0CEv5xc0txbsfGs8V2kGKkrAxuYKV/LbCOZarGNOcMUaTcKALFQucd 95VZwFmbmjDM1bY0tMeKSLjEopPVM5DOYD4MiKlx9NcA22ejr/lrcVl2AEcRkWdgiJCW20 UiQf70M8vhrl4JxCVBEkTxqdPPXTZpL2yjL3D2jYYTASrG2/irtAFbVFZNaIKw== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20230601 header.b=bDA73GVE; 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=pass (policy=none) header.from=gmail.com ARC-Seal: i=1; s=key1; d=yhetil.org; t=1718651390; a=rsa-sha256; cv=none; b=ca5NuQDp/4434z1YUZxZebo0YcSriB7p/9rQme/1N7HFaevvxYpduyT2ZKyqAjaFYrdm6P mpdr38474PZ1YR4qwDXViSxPL215Z7Qnsu7y+1XT7S9jATBd0lKhZoC7wzJYt2lV4pVYjp zQ+4kIShKAYfSySrIuePck1Qp8XTbcnaihd/jbSlXktD9qn4hjucKx8ekmi85FJySAFYAC /y6/S5cv+1yG8pLEGz5webh/RdjzEHfV7RzDx1ERpL+HjIT485oWpsrdXtJn37lgZypDZd tWUtSFUbyy8Bh68/kn/q6rYWbQ2zmF15YGO+nq+lRp+XAxTAtZu5a3ywvLRVoA== 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 13EB857428 for ; Mon, 17 Jun 2024 21:09:50 +0200 (CEST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1sJHjQ-00071y-Ml; Mon, 17 Jun 2024 15:09:32 -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 1sJHjP-00071h-45 for help-guix@gnu.org; Mon, 17 Jun 2024 15:09:31 -0400 Received: from mail-lj1-x22c.google.com ([2a00:1450:4864:20::22c]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1sJHjN-0007JH-0G for help-guix@gnu.org; Mon, 17 Jun 2024 15:09:30 -0400 Received: by mail-lj1-x22c.google.com with SMTP id 38308e7fff4ca-2ebdfe26217so44224931fa.2 for ; Mon, 17 Jun 2024 12:09:27 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1718651366; x=1719256166; darn=gnu.org; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=yOGdiMHwIrCIsWgmnk31sh0y4n24Aed30nozJr1OEuY=; b=bDA73GVEpOaOepxSx4hGNn4K7UcLJTIdPtjSK2ksd5LHhZj5/bOkdNdVwjllI8GUVi V8Wrq/N0bSNpL8bPvD//bvcJIPy57FcLBaI2tOkV0oxBsrE/jNKB0hRBn+DrqLhZ5lOQ 0SCfbcsbbUCwaGwQ18GcjLOnljvIgK87GjAsjJ8uHyNRJZqRsoGKMCiJT5OpJyLVR2cO MVe9SJPEz1ErJnMdaAsxyJHLiMGN3YWz/QfZuxGA4Swee1+LRC8bbfGeoXAWf+jrNC6R wHCqarG9M2X58o98D1mq6nKFHrNOGUP5AiCgJ9hqfJev4Owyq25fx5x3u16pv6Wt2M7T Z9wQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1718651366; x=1719256166; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=yOGdiMHwIrCIsWgmnk31sh0y4n24Aed30nozJr1OEuY=; b=w8SOLR7I3ugn5UjrGuPbvP4vQqzr8Ud84RR9TtvFoAkJSDcXxOnIAhWAxKHTHgFem7 xuCNCmJyWNdQwYRRsAoksVLfW6WghIMD7i2p5L4pzZqET+H3N8GIWxeFn9qfEAWBkz81 3VA8CmLx9fEqD7YehWL+H6k9CpoihKkMrVVuudjPkFmko11jWy2UyznnSRPujtZUKZlQ XjdnDU+lrZIUuf4IUuU0qHwhOsz5KUfWd+061H5P4dUv+JCgiNdopmCfBpDV4MvNuqv5 2ZUirTcF0murN3JtdIOZUS65sHLmTVIPpe7Y2HHSNreoRsnujMpZNeOkVPuRuzGSacTB knbA== X-Gm-Message-State: AOJu0YwVacd2pLRnrG8UBNuYZgzuERNMeEmOs47AjWYOX3JMkRGar9BN 1u5F9GNrYdZGLdvP/7/z+iQxqhJW31tabPwhAZTDT2Un8pv/ZKcvCDeU3+YzxGtX13gBsUs9wuO rBTVSBICrMk0BtoglLzmZZi/YxrA= X-Google-Smtp-Source: AGHT+IH3eecpSf6KpmNSsOzF/QTAt3r14g576Rh80WdVlhGUzh+h1aSpZG62R40ioIhLZyi0pZWABSq2W/yFy5I4e0g= X-Received: by 2002:a2e:95cf:0:b0:2eb:850d:a53d with SMTP id 38308e7fff4ca-2ec0e46e67fmr67805131fa.16.1718651365800; Mon, 17 Jun 2024 12:09:25 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: From: Daniel Littlewood Date: Mon, 17 Jun 2024 20:09:13 +0100 Message-ID: Subject: Re: Ruby without RVM - what to do if the version I want is missing? To: Andreas Enge Cc: help-guix , Christopher Baines , 71559-done@debbugs.gnu.org Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Received-SPF: pass client-ip=2a00:1450:4864:20::22c; envelope-from=danielittlewood@gmail.com; helo=mail-lj1-x22c.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-bounces+larch=yhetil.org@gnu.org X-Migadu-Country: US X-Migadu-Flow: FLOW_IN X-Migadu-Queue-Id: 13EB857428 X-Migadu-Scanner: mx13.migadu.com X-Migadu-Spam-Score: -8.70 X-Spam-Score: -8.70 X-TUID: vc9k7yin2UWU Hi, thank you all very much for the help, Thank you Andreas for your patch. I wasn't sure quite how to use it at first, but after some looking I found out I could put it into a local channel. So I made a file ~/my-channel/ruby.scm with contents (define-module (ruby) #:use-module (guix packages) #:use-module (guix licenses) #:use-module (guix download) #:use-module (guix utils) #:use-modules (gnu packages ruby)) That worked well. guix shell ruby@3.3 # fails as expected guix shell -L ~/guix-scout ruby@3.3 # works ruby --version ruby 3.3.3 (2024-06-12 revision f1c7b6f435) [x86_64-linux] However I wanted to have a more sophisticated guix shell, called from a file. Something like what Remco suggested, but this was just what I could cobble together and it isn't exactly the same. 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? Best wishes, Dan On Sun, Jun 16, 2024 at 11:27=E2=80=AFAM Andreas Enge wro= te: > > Hello, > > Am Fri, Jun 14, 2024 at 07:36:07PM +0200 schrieb Andreas Enge: > > (define-public ruby-3.3 > > (package > > (inherit ruby-3.2) > > (version "3.3.3") > > (source > > (origin > > (method url-fetch) > > (uri (string-append "http://cache.ruby-lang.org/pub/ruby/" > > (version-major+minor version) > > "/ruby-" version ".tar.xz")) > > (sha256 > > (base32 > > "07pwf3zkf7idl95agfjbv2lvamcp0spp0znqp9arb71ri19rkh43")))))) > > I have sent this patch, see > > https://issues.guix.gnu.org/71559 > > QA has given the green light, so I have pushed this new version to master= . > You should see it after a "guix pull". > > Andreas > 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 aMd/N6xncWb2RQEAqHPOHw:P1 (envelope-from ) for ; Tue, 18 Jun 2024 10:55:41 +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 aMd/N6xncWb2RQEAqHPOHw (envelope-from ) for ; Tue, 18 Jun 2024 12:55:41 +0200 X-Envelope-To: larch@yhetil.org Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20230601 header.b=Ju0iklQz; spf=pass (aspmx1.migadu.com: domain of "guix-patches-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-patches-bounces+larch=yhetil.org@gnu.org"; dmarc=fail reason="SPF not aligned (relaxed)" header.from=gmail.com (policy=none) ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1718708140; 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:resent-cc: resent-from:resent-sender:resent-message-id:in-reply-to:in-reply-to: references:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=yOGdiMHwIrCIsWgmnk31sh0y4n24Aed30nozJr1OEuY=; b=aaeJEXzoOCczHHobjEtXIcm5B8IGvun55p21+rL6lAV+gq2DbgdzjToCNJpm1t8FrPwBp2 P5z0lJXABTb4978SIJh5K3MNpELlO0y2ydbS9c+NgYWk0sF6vhd6yG2PP0yQhXAHiFBlkg 2hHjhUKgWT0cU7F9svLgssEtNFfkZjCex/exoFrJbLWcbxGGS81L0sOotzvZh2qDe9XzCC 2m9Gvc92Q3ToTfAAsGHOT7+T7NPIQ41qvWZgsw/aNUZ6kWFllzxMOfJKM7sZMIadjeJ8xF 4YDx2FgqWMg9lOgbVQg6lPm5l5fTGQOs8+5gMlg4J6wU8yFE7rpN1yFkx+WWBw== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20230601 header.b=Ju0iklQz; spf=pass (aspmx1.migadu.com: domain of "guix-patches-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-patches-bounces+larch=yhetil.org@gnu.org"; dmarc=fail reason="SPF not aligned (relaxed)" header.from=gmail.com (policy=none) ARC-Seal: i=1; s=key1; d=yhetil.org; t=1718708140; a=rsa-sha256; cv=none; b=DdP1ShOb/HY1ym3qcwI+5gm9PoQ2t2dz9cVbfAdUW+2meFqHgIqPNBGinAvHpbtMdUnRsd dQO6KiB6VzPkXnDu++2hQ4Qf83TaH49/S3lzU27ZhqM4fSLpnmUfFslwT8CQgunaDIStD6 WEVPsHknnagwmQw3HEwFowzfaA4t2bWNnLJBar+ntVnvOkB1q58FkwKcDgico59pV7MTb9 OsfdaXC/8csbzZS4xRuS858Ng4Ui/CEcTzjFCP8tu0zcar6eT8/ppTK76u5Wte2JgsC/4R J3N3XmB94TtHqnHnUfkrFqAQOmBCSwQc2vu/bCMmSxMBWrcUDjmcEFeVzvax4g== 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 E22D6F072 for ; Tue, 18 Jun 2024 12:55:39 +0200 (CEST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1sJWUb-0003iV-L6; Tue, 18 Jun 2024 06:55:13 -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 1sJThD-0003oB-Uc for guix-patches@gnu.org; Tue, 18 Jun 2024 03:56:03 -0400 Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1sJThD-00044j-Lo for guix-patches@gnu.org; Tue, 18 Jun 2024 03:56:03 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1sJThG-0008Jv-4J for guix-patches@gnu.org; Tue, 18 Jun 2024 03:56:06 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#71559] Ruby without RVM - what to do if the version I want is missing? Resent-From: Daniel Littlewood Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Tue, 18 Jun 2024 07:56:06 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 71559 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: Andreas Enge Cc: 71559-done@debbugs.gnu.org, Christopher Baines , help-guix Received: via spool by 71559-done@debbugs.gnu.org id=D71559.171869733531827 (code D ref 71559); Tue, 18 Jun 2024 07:56:06 +0000 Received: (at 71559-done) by debbugs.gnu.org; 18 Jun 2024 07:55:35 +0000 Received: from localhost ([127.0.0.1]:41384 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sJTgk-0008HE-OR for submit@debbugs.gnu.org; Tue, 18 Jun 2024 03:55:35 -0400 Received: from mail-lj1-f179.google.com ([209.85.208.179]:47400) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sJHkQ-0000zs-AL for 71559-done@debbugs.gnu.org; Mon, 17 Jun 2024 15:10:36 -0400 Received: by mail-lj1-f179.google.com with SMTP id 38308e7fff4ca-2eaafda3b5cso58592441fa.3 for <71559-done@debbugs.gnu.org>; Mon, 17 Jun 2024 12:10:32 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1718651366; x=1719256166; darn=debbugs.gnu.org; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=yOGdiMHwIrCIsWgmnk31sh0y4n24Aed30nozJr1OEuY=; b=Ju0iklQzxaWI11edYR+bvYo9WabRINNGmYSvLZ+Aj4bW+/CFH+pwiAuq908xSyzcSt f3NWu+TNtjeVHl3ybZc9C0q2l0Y9uIEdYJc3OCZVFM3ubpwoyXgvsj0liToCJZ31zvfA flCwTqlSBGy0xviMWcGowx5U5Bq9AR6ATwA7oqyXvZPwKGEGp/eJe3A+1RfkJbXVx2Jf oNCXQthCQlBv32vUKhoEVE4vcPPLh2SNdDg7ZaTKSGj24skFrcGAMeq9kSkM6TbWkMqC vBHkS3Q/w+2L3djVhzHRg03+YYRC6xA1D6uPPu3M9csuhAqHMS80hgag+ZD6fVIBxFUO Kwnw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1718651366; x=1719256166; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=yOGdiMHwIrCIsWgmnk31sh0y4n24Aed30nozJr1OEuY=; b=XAvXx5R87b7BFwoiwz5DFschVF2sPf79F3Br8vyUergkBRqY0RHoRq7qAhbI/WSiMT d/E6XAg+AP+ESEH7g9Lgo3JEG/e400Qu0GrZqQvzDUgoQACOzO5EEO38nlMp04udJ3GD 85cG/3TwTOu7bb2j5w5VWRfDf0uiMZSUWHnq4NZwLCpYJb6v6rYvOuvFLyIrEGw7xc9z qkdMcz2J7swF4SvZMtXPKSoIt3Bh4l9PviFY2DAQe8XTomiWx07Ud+K2XU8Egd2c6ROn VM7/OIwcvCM0p/j3YcUF+CZuPYmXnEOl+DM+HyAxiaOkW/HEfe6tZr0tq/uWsWb5FOSO GdHg== X-Forwarded-Encrypted: i=1; AJvYcCWrV4hQMYNi8tNOsRj72hSj88QXrCDx7Xr0ZAGQRTyuXBuF43/dV5Z9F8twYYo8RMIbvQtkWh7vxY1cAuEzuoL1OaZ7H1baUveOHg== X-Gm-Message-State: AOJu0YyCe/BwhYbICrmkAgDKYyzk2RAMAXYRMB7/6lKydjuQQBS5SaL8 pun+dhT7o4vUa4oUXCZsRZTBNGRZ0Afk63WsgCrCoOLzFPDMxgHV3EbJZqyJ2fjBPj4pnYdUpyB ZrbUi1yMFzUlqzRJlRoboCwQ4J4g= X-Google-Smtp-Source: AGHT+IH3eecpSf6KpmNSsOzF/QTAt3r14g576Rh80WdVlhGUzh+h1aSpZG62R40ioIhLZyi0pZWABSq2W/yFy5I4e0g= X-Received: by 2002:a2e:95cf:0:b0:2eb:850d:a53d with SMTP id 38308e7fff4ca-2ec0e46e67fmr67805131fa.16.1718651365800; Mon, 17 Jun 2024 12:09:25 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: From: Daniel Littlewood Date: Mon, 17 Jun 2024 20:09:13 +0100 Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Mailman-Approved-At: Tue, 18 Jun 2024 03:55:34 -0400 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-Mailman-Approved-At: Tue, 18 Jun 2024 06:55:10 -0400 X-BeenThere: guix-patches@gnu.org List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+larch=yhetil.org@gnu.org Sender: guix-patches-bounces+larch=yhetil.org@gnu.org X-Migadu-Country: US X-Migadu-Flow: FLOW_IN X-Spam-Score: 3.64 X-Migadu-Queue-Id: E22D6F072 X-Migadu-Scanner: mx10.migadu.com X-Migadu-Spam-Score: 3.64 X-TUID: ha9rRzk3nlap Message-ID: <20240617190913.Sd_trnrlvaeiK6gyC_WMjuoEv6YKpcGHjg1QLYkLY9c@z> Hi, thank you all very much for the help, Thank you Andreas for your patch. I wasn't sure quite how to use it at first, but after some looking I found out I could put it into a local channel. So I made a file ~/my-channel/ruby.scm with contents (define-module (ruby) #:use-module (guix packages) #:use-module (guix licenses) #:use-module (guix download) #:use-module (guix utils) #:use-modules (gnu packages ruby)) That worked well. guix shell ruby@3.3 # fails as expected guix shell -L ~/guix-scout ruby@3.3 # works ruby --version ruby 3.3.3 (2024-06-12 revision f1c7b6f435) [x86_64-linux] However I wanted to have a more sophisticated guix shell, called from a file. Something like what Remco suggested, but this was just what I could cobble together and it isn't exactly the same. 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? Best wishes, Dan On Sun, Jun 16, 2024 at 11:27=E2=80=AFAM Andreas Enge wro= te: > > Hello, > > Am Fri, Jun 14, 2024 at 07:36:07PM +0200 schrieb Andreas Enge: > > (define-public ruby-3.3 > > (package > > (inherit ruby-3.2) > > (version "3.3.3") > > (source > > (origin > > (method url-fetch) > > (uri (string-append "http://cache.ruby-lang.org/pub/ruby/" > > (version-major+minor version) > > "/ruby-" version ".tar.xz")) > > (sha256 > > (base32 > > "07pwf3zkf7idl95agfjbv2lvamcp0spp0znqp9arb71ri19rkh43")))))) > > I have sent this patch, see > > https://issues.guix.gnu.org/71559 > > QA has given the green light, so I have pushed this new version to master= . > You should see it after a "guix pull". > > Andreas >