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

2023-05-01 Thread Timothy Washington
Thanks very much for your help. I got past that bit. Below is the config that got me through it. (define-module (guix packages rustscan) ... #:use-module (gnu packages crates-io)) (define-public rustscan (package ... (arguments `(#:cargo-inputs (("rust-ansi-term" ,rust-ansi

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

2023-05-01 Thread Timothy Washington
Beauutiful! A. Actually the "guix import crate" command set off a light bulb... Can't I just pull in those dependencies recursively. And indeed you can. The only reason I needed to pull in those crates, were as dependencies to rustscan . So I went back to the beg

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

2023-05-01 Thread Timothy Washington
On Tue, 25 Apr 2023 at 01:57, ( wrote: > Timothy Washington writes: > > You've gotten me quite a bit further. This is great. > > Now, "guix build ..." breaks if I try to include "(gnu packages > cargo-xyz)" (or "(guix packages cargo-xyz)"). > > My mistake, it's actually ``crates-xyz'' :P > Oh n

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

2023-05-01 Thread Timothy Washington
Ok nice. I got much further with the rust-anyhow definition here (in crates-io). With these arguments.. (arguments `(#:cargo-inputs (("rust-ansi-term" ,rust-ansi-term-0.12) ("rust-anyhow" ,rust-

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

2023-04-28 Thread (
Timothy Washington writes: > ..the build fails on missing "cidr-utils". Now "cidr-utils" is in Rust's > crates.io. > But is that what Guix' cargo-build-system is referencing? > Otherwise, do we need to create a Guix .scm (scheme definition)? Guix can't grab things from the internet during the

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

2023-04-27 Thread (
Timothy Washington writes: > starting phase `build' > error: no matching package named `anyhow` found > location searched: registry `crates-io` > required by package `rustscan v2.1.1 > (/tmp/guix-build-rustscan-2.1.1.drv-0/source)` Just add the input to the #:CARGO-INPUTS: ``` `(... (("ru

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

2023-04-25 Thread (
Timothy Washington writes: > What is "crates-xyz" meant to do? And where is its definition? Okay, apparently it's actually ``crates-io'' :P (this time i actually checked...)

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

2023-04-24 Thread (
Timothy Washington writes: > You've gotten me quite a bit further. This is great. > Now, "guix build ..." breaks if I try to include "(gnu packages cargo-xyz)" > (or "(guix packages cargo-xyz)"). My mistake, it's actually ``crates-xyz'' :P

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

2023-04-24 Thread Timothy Washington
You've gotten me quite a bit further. This is great. Now, "guix build ..." breaks if I try to include "(gnu packages cargo-xyz)" (*or "(guix packages cargo-xyz)"*). A. guix build -L ~/dotfiles/ rustscan ... no code for module (gnu packages cargo-xyz) B. And I don't see cargo-xyz in these locatio

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

2023-04-23 Thread (
"(" writes: > Timothy Washington writes: >> (native-inputs >> `(("rustc" ,rustc) >>("cargo" ,cargo))) >> (inputs >> `(("ansi_term" ,ansi-term))) > You don't need these. > >> (arguments >> `(#:cargo-inputs >>(("ansi-term" ,ansi-term > > Try this: > >

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

2023-04-23 Thread (
Timothy Washington writes: > (native-inputs > `(("rustc" ,rustc) >("cargo" ,cargo))) > (inputs > `(("ansi_term" ,ansi-term))) You don't need these. > (arguments > `(#:cargo-inputs >(("ansi-term" ,ansi-term Try this: ``` (arguments (list #:

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

2023-04-23 Thread Timothy Washington
Heyyo, I'm new to Guix packaging here. And am trying to build 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) #