I’m trying to build fetchit so I can put it on my guix channel.
However, I get the following error:
$ guix build -L ~/Nwaȥ/Êsaj/Giks/yrop/ fetchit
...
starting phase `build'
error: failed to get `ant-core` as a dependency of package `fetchit-net v0.2.0 (/tmp/guix-build-fetchit-0.2.8.drv-0/source/crates/fetchit-net)`
Caused by:
failed to load source for dependency `ant-core`
Caused by:
Unable to update https://github.com/WithAutonomi/ant-client?rev=3df6764
Caused by:
can't checkout from 'https://github.com/WithAutonomi/ant-client': you are in the offline mode (--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.4 seconds
command "cargo" "build" "--offline" "-j" "4" "--release" failed with status 101
build process 6 exited with status 256
builder for `/gnu/store/n6ljiwd9fa3xngpckn5pmq0640w4908h-fetchit-0.2.8.drv' failed with exit code 1
fetchit.scm
...
#:use-module (yrop packages ant core))
(define %fetchit-cargo-lock
(or (search-path %load-path "yrop/files/fetchit-Cargo.lock")
(error "could not find fetchit-Cargo.lock in load path")))
(define %cargo-inputs
(cargo-inputs-from-lockfile %fetchit-cargo-lock))
...
(define-public fetchit
(package
...
(build-system cargo-build-system)
...
(inputs (cons* (ant-core %cargo-inputs))
...))
...
core.scm
...
#:export (ant-core))
(define %ant-client-cargo-lock
(or (search-path %load-path "yrop/files/ant-client-3df6764-Cargo.lock")
(error "could not find ant-client-3df6764-Cargo.lock in load path")))
(define %cargo-inputs
(cargo-inputs-from-lockfile %ant-client-cargo-lock))
...
(define-public ant-core
(package
...
(build-system cargo-build-system)
...
(inputs (cons* mimalloc
`(,zstd "lib") %cargo-inputs))
...))
...