all messages for Guix-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Ivan Petkov <ivanppetkov@gmail.com>
To: mikadoZero <mikadozero@yandex.com>
Cc: help-guix <help-guix@gnu.org>
Subject: Re: Rust development tools
Date: Thu, 18 Apr 2019 19:40:05 -0700	[thread overview]
Message-ID: <9F318D2E-8B1E-4BAD-B93D-F5121C12F8CA@gmail.com> (raw)
In-Reply-To: <cuc8sw72hce.fsf@yandex.com>

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


> On Apr 18, 2019, at 1:23 PM, mikadoZero <mikadozero@yandex.com> wrote:
> 
> I think I would consider attempting clippy.  Would exposing it be
> similar to cargo?  Searching through `rust.scm` cargo is all over the
> place.  Would exposing clippy be as far reaching and extensive?
> 
> I am new to packaging for Guix.  I just had my first patch for a package
> committed just the other day.  I have not yet learned Guile.  Would
> adding clippy as an output be overly ambitious?  Should I learn Guile
> first?

Knowing Guile isn’t a must if you’re just hacking on some existing package
definitions, though a quick primer wouldn’t hurt!

Exposing clippy or rls via the existing rust package definition shouldn’t be
too hard (the definitions look pretty messy due to bootstrapping and inheriting
from each other).

Here are the general steps you’d need to take:

* Add a new output to the package definition for clippy
* Add a new build-clippy phase which would invoke the rust build system to build
the tool (e.g. invoking `./x.py build src/tools/clippy`)
* Add a new check-clippy phase which invokes the tests for the tool
* Add a new install-clippy phase which will copy the tool artifacts to the specific
output directory

I would recommend making changes on the latest version of rust. If you
touch any of the earlier versions, you may be stuck building for a looooong time.

Happy hacking, and feel free to reach out if you get stuck!

—Ivan

[-- Attachment #2: Type: text/html, Size: 8053 bytes --]

  reply	other threads:[~2019-04-19  2:40 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-04-18  2:26 Rust development tools mikadoZero
2019-04-18 15:47 ` Ivan Petkov
2019-04-18 19:45   ` John Soo
2019-04-18 20:23   ` mikadoZero
2019-04-19  2:40     ` Ivan Petkov [this message]
2019-04-24 16:52       ` mikadoZero

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=9F318D2E-8B1E-4BAD-B93D-F5121C12F8CA@gmail.com \
    --to=ivanppetkov@gmail.com \
    --cc=help-guix@gnu.org \
    --cc=mikadozero@yandex.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.