all messages for Guix-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Timothy Washington <twashing@gmail.com>
To: help-guix@gnu.org
Subject: Howto supply cargo-build-system dependency to guix package definition
Date: Sun, 23 Apr 2023 12:18:11 -0400	[thread overview]
Message-ID: <CAADtM-YidnjJA4qkUF0qnxHrpEdKv5FkV_Vo=r1rG5PcwjLx6A@mail.gmail.com> (raw)

Heyyo, I'm new to Guix packaging here. And am trying to build RustScan
<https://github.com/RustScan/RustScan> as a Guix package.
This is my definition, which uses the "cargo-build-system".

(define-module (guix packages tmp rustscan)
  #:use-module (guix packages)
  #:use-module (guix download)
  #:use-module (guix git-download)
  #:use-module (guix build-system cargo)
  #:use-module (guix licenses))


(define-public rustscan
  (package
    (name "rustscan")
    (version "2.1.1")
    (source (origin
              (method git-fetch)
              (uri (git-reference
                    (url "https://github.com/RustScan/RustScan.git")
                    (commit version)))
              (file-name (git-file-name name version))
              (sha256
               (base32
"042jb4psvs6fj0abxsamza8rnbmc6r7yxygg42q6qjyl8cp2k6rk"))))
    (build-system cargo-build-system)
    (native-inputs
     `(("rustc" ,rustc)
       ("cargo" ,cargo)))
    (inputs
     `(("ansi_term" ,ansi-term)))
    (arguments
     `(#:cargo-inputs
       (("ansi-term" ,ansi-term))))
    (home-page "https://github.com/RustScan/RustScan")
    (synopsis "A fast port scanner written in Rust")
    (description "RustScan is a fast port scanner that utilizes the Rust
programming language to scan for open ports on IP addresses.")
    (license gpl3+)))


However, I'm getting this failure when I try to build. Basically it can't
find a reference to the ansi-term dependency
<https://github.com/RustScan/RustScan/blob/master/Cargo.toml#L32>.

guix build -L ~/dotfiles/ rustscan
ice-9/eval.scm:223:20: In procedure proc:
error: ansi-term: unbound variable
hint: Did you forget a `use-modules' form?


How do you supply the "ansi-term" Cargo dependency
<https://docs.rs/ansi_term/0.12.1/ansi_term/>, to this guix package
definition?


Tim Washington
Interruptsoftware.com <http://interruptsoftware.com>
(647) 283-2856

             reply	other threads:[~2023-04-24  5:10 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-04-23 16:18 Timothy Washington [this message]
2023-04-24  6:19 ` Howto supply cargo-build-system dependency to guix package definition (
2023-04-24  6:23   ` (
2023-04-25  3:48     ` Timothy Washington
2023-04-25  5:56       ` (
2023-04-25 20:44         ` Timothy Washington
2023-04-26  5:43           ` (
2023-04-27  4:53             ` Timothy Washington
2023-04-27 16:36               ` (
2023-04-28  3:06                 ` Timothy Washington
2023-04-28 14:23                   ` (
2023-04-28 20:08                     ` Timothy Washington

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='CAADtM-YidnjJA4qkUF0qnxHrpEdKv5FkV_Vo=r1rG5PcwjLx6A@mail.gmail.com' \
    --to=twashing@gmail.com \
    --cc=help-guix@gnu.org \
    /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.