Note: I’m doing a lot of reshuffling. This will be my attempt to fully create the ant package, while I’m busy with package attempt #1, building a smaller portion ant-client.
During my attempt to build the fetchit package, I was the error of not finding the ant-core package. And if it relies on ant-core, then I would likely want to install the ant-client package first. So here’s below has been my attempt so far:
ant-core.scm
;;; 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?