Folaht's fourth attempt to build a package on Guix system

Note: This is actually my first attempt, but since this one is difficult, I’m putting it on hold and wait until I have three other packages installed that I think are easier.


This package is called fetchit and it consists of two builds, a CLI and a browser, but I want to first start with the CLI and then maybe have the browser be put in another package or merge it in this one, depending on what is most suitable for guix.

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

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

(define-public fetchit
  (package
    (name "fetchit")
    (version "0.2.8")
    (source
     (origin
       (method git-fetch)
       (uri (git-reference
             (url "https://github.com/etchit-io/fetchit")
             (commit (string-append "v" version))))
       (sha256
        (base32 "05jg3qhsqv5cadqw9hrj6fc23rz87015h157c0l7bgpiqgdr68p9"))))
    (build-system cargo-build-system)
    (synopsis "Autonomi network web downloader")
    (description
     "Core CLI for the read-only viewer for content stored on the Autonomi network.
      Paste a 64-hex address, see what is there — text, image, audio, video, PDF, archive, code with syntax highlighting, 
      JSON, CSV, full HTML SPAs — without installing a wallet, signing a message, or running a node.")
    (home-page "https://github.com/etchit-io/fetchit")
    (license license:agpl3)))

fetchit

[update #2]

  1. For my attempt to build ant-core. How do I tell my package definition to add the flag CC=gcc?

Easy answers move to here.