help-guix
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Howto supply cargo-build-system dependency to guix package definition


From: Timothy Washington
Subject: Howto supply cargo-build-system dependency to guix package definition
Date: Sun, 23 Apr 2023 12:18:11 -0400

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 via email to

[Prev in Thread] Current Thread [Next in Thread]