unofficial mirror of help-guix@gnu.org 
 help / color / mirror / Atom feed
* Howto supply cargo-build-system dependency to guix package definition
@ 2023-04-23 16:18 Timothy Washington
  2023-04-24  6:19 ` (
  0 siblings, 1 reply; 12+ messages in thread
From: Timothy Washington @ 2023-04-23 16:18 UTC (permalink / raw)
  To: help-guix

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

^ permalink raw reply	[flat|nested] 12+ messages in thread

end of thread, other threads:[~2023-05-01 16:32 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-04-23 16:18 Howto supply cargo-build-system dependency to guix package definition Timothy Washington
2023-04-24  6:19 ` (
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

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).