Folaht’s third attempt to build a package on Guix system

Actually my second attempt, but I’m expecting to finish two packages earlier.

Since the other attempt requires the rust dependency that is this build, I thought I might want to try to build this one too.
Although it’s two packages in one? I’m not sure which one I want to install first or if both packages are installed together.
I’ll try to go for the core first although the CLI might be the easier one?

;;; 2026 Yrop <folaht@protonmail.com>

(define-module (yrop packages ant core)
  #:use-module (guix build-system cargo)
  #:use-module (guix git-download)
  #:use-module ((guix licenses)
                #:prefix license:)
  #:use-module (guix packages))

(define-public ant-client
  (package
    (name "ant-core")
    (version "0.3.0")
    (source
     (origin
       (method git-fetch)
       (uri (git-reference
             (url "https://github.com/WithAutonomi/ant-client")
             (commit (string-append name "-v" version))))
       (sha256
        (base32 "016qbrhhrbqxla1r5wcmik01kcn3r8dami7prm4pzxj3ilnynba5"))))
    (build-system cargo-build-system)
    (synopsis "Autonomi Network Client")
    (description "A unified CLI and Rust library for storing data on the Autonomi decentralized network and managing Autonomi nodes")
    (home-page "https://aunotomi.com")
    (license (list license:asl2.0 license:expat))))

ant-client

But I’m stuck with a weird error:

$ guix build -f ./client.scm
...
error: no matching package named `ant-node` found
location searched: directory source `/tmp/guix-build-ant-core-0.3.0.drv-0/source/guix-vendor` (which is replacing registry `crates-io`)
required by package `ant-core v0.3.0 (/tmp/guix-build-ant-core-0.3.0.drv-0/source/ant-core)`
As a reminder, you're using offline mode (--offline) which can sometimes cause surprising resolution failures, if this error is too confusing you may wish to retry without `--offline`.
error: in phase 'build': uncaught exception:
%exception #<&invoke-error program: "cargo" arguments: ("build" "--offline" "-j" "4" "--release") exit-status: 101 term-signal: #f stop-signal: #f> 
phase `build' failed after 0.1 seconds
command "cargo" "build" "--offline" "-j" "4" "--release" failed with status 101
build process 6 exited with status 256
builder for `/gnu/store/cd3z8v46xqssi5z4fh7hy6z09wld6jpl-ant-core-0.3.0.drv' failed with exit code 1
build of /gnu/store/cd3z8v46xqssi5z4fh7hy6z09wld6jpl-ant-core-0.3.0.drv failed
View build log at '/var/log/guix/drvs/cd/3z8v46xqssi5z4fh7hy6z09wld6jpl-ant-core-0.3.0.drv.gz'.
guix build: error: build of `/gnu/store/cd3z8v46xqssi5z4fh7hy6z09wld6jpl-ant-core-0.3.0.drv' failed

Wait… ant-node?