all messages for Guix-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: jgart via Guix-patches via <guix-patches@gnu.org>
To: 49158@debbugs.gnu.org
Cc: Raghav Gururajan <rg@raghavgururajan.name>,
	rprior@protonmail.com, mail@davie.li
Subject: [bug#49158] Add ruby-for-crystal.
Date: Mon, 21 Jun 2021 16:19:40 +0000	[thread overview]
Message-ID: <fc2ab5b3b1ea562ad3b27220fd004afc@dismail.de> (raw)

[-- Attachment #1: Type: text/plain, Size: 1268 bytes --]

Hi Guix,

We've (Ryan, David, Raghav, and others) started packaging crystal for guix: https://crystal-lang.org/

This patch adds an old version of ruby that is required by the crystal language bootstrap process. This is related to 49142.

This was an effort of the volunteers at the last guix packaging meetup hosted by LibreMiami.

Here are some notes, questions, and a list of dependencies regarding what is needed to finish a properly bootstraped crystal package:

https://github.com/ryanprior/guix-packages/blob/master/testing/crystal.org

We are trying to recreate this bootstrapping process in guix:

https://github.com/crystal-lang/bootstrap-script

There are 160 stages!

Some questions extracted from our notes follow:

Is it preferable to have 160 bootstrap packages, one for each stage, or one big bootstrap package with 160 build-* stages, or somewhere inbetween?

Each stage needs a different checkout of the git repository - can we preserve info in .git such that we can checkout again during the build, or do we want to have each checkout be an independent input to the package?

How best can we use Guile macros to clean up the large amount of code implied by executing 160 stages of bootstrap logic?

best regards,

jgart

[-- Attachment #2: 0001-gnu-Add-ruby-for-crystal.patch --]
[-- Type: application/octet-stream, Size: 1363 bytes --]

From 1602b839e464220e60de6316500a411ee312232e Mon Sep 17 00:00:00 2001
From: LibreMiami <packaging-guix@libremiami.org>
Date: Mon, 21 Jun 2021 12:00:12 -0400
Subject: [PATCH] gnu: Add ruby-for-crystal.

* gnu/packages/ruby.scm (ruby-for-crystal):
    New variable.

Co-authored-by: David Dashyan <mail@davie.li>
Co-authored-by: jgart <jgart@dismail.de>
Co-authored-by: Raghav Gururajan <rg@raghavgururajan.name>
Co-authored-by: Ryan Prior <rprior@protonmail.com>
---
 gnu/packages/ruby.scm | 14 ++++++++++++++
 1 file changed, 14 insertions(+)

diff --git a/gnu/packages/ruby.scm b/gnu/packages/ruby.scm
index 7c2cf35ac2..a5546b7228 100644
--- a/gnu/packages/ruby.scm
+++ b/gnu/packages/ruby.scm
@@ -244,6 +244,20 @@ a focus on simplicity and productivity.")
                    (delete-file-recursively "ext/fiddle/libffi-3.2.1")
                    #t))))))
 
+(define-public ruby-for-crystal
+  (package
+    (inherit ruby)
+    (version "1.9.3-p551")
+    (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
+         "1ijm9f3pj8vz861hiqdhypxiclac7hz2lds77brgsk8zhsbq48j4"))))))
+
 (define-public mruby
   (package
     (name "mruby")
-- 
2.29.3


             reply	other threads:[~2021-06-21 16:20 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-06-21 16:19 jgart via Guix-patches via [this message]
2021-06-21 18:04 ` [bug#49158] Add ruby-for-crystal Maxime Devos
2022-09-28 18:36 ` bug#49158: " Maxim Cournoyer
2022-09-28 20:36   ` [bug#49158] " jgart via Guix-patches via

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=fc2ab5b3b1ea562ad3b27220fd004afc@dismail.de \
    --to=guix-patches@gnu.org \
    --cc=49158@debbugs.gnu.org \
    --cc=jgart@dismail.de \
    --cc=mail@davie.li \
    --cc=rg@raghavgururajan.name \
    --cc=rprior@protonmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/guix.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.