summaryrefslogtreecommitdiff
path: root/guix/ruby-nano-bots.scm
blob: 314479cc0c54fe6b9bba321eab780a30a9b3b5cb (about) (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
(define-module (ruby-nano-bots)
  #:use-module (guix build-system ruby)
  #:use-module (guix git-download)
  #:use-module (guix licenses)
  #:use-module (guix packages))

(define ruby-nano-bots-git-reference
  (let ((git-reference-url "https://github.com/icebaker/ruby-nano-bots.git")
	(git-reference-commit "v3.0.1"))
    (git-reference (url git-reference-url)
		   (commit git-reference-commit))))

(define ruby-nano-bots-origin
  (let ((origin-method git-fetch)
	(origin-hash "079qi3zqhs34pqhjy4vi38ra5fixrrbdd4kqsi9b3dh7pbz65s4h"))
    (origin (uri ruby-nano-bots-git-reference)
	    (method origin-method)
	    (hash (content-hash origin-hash)))))

(define-public ruby-nano-bots
  (let ((delete-check '(delete 'check)))
    (let ((package-name "ruby-nano-bots")
	  (package-version "3.0.1")
	  (package-source ruby-nano-bots-origin)
	  (package-build-system ruby-build-system)
	  (package-arguments `(#:phases (modify-phases %standard-phases
						       ,delete-check)))
	  (package-synopsis "Ruby Nano Bots")
	  (package-description
	   (string-append "Ruby Implementation of Nano Bots: "
			  "small, AI-powered bots that can be easily "
			  "shared as a single file, designed to support "
			  "multiple providers such as Cohere Command, "
			  "Google Gemini, Maritaca AI MariTalk, "
			  "Mistral AI, Ollama, OpenAI ChatGPT, "
			  "and others, with support for "
			  "calling tools (functions)."))
	  (package-license expat)
	  (package-home-page "https://rubygems.org/gems/nano-bots"))
      (package (name package-name)
	       (version package-version)
	       (source package-source)
	       (build-system package-build-system)
	       (arguments package-arguments)
	       (synopsis package-synopsis)
	       (description package-description)
	       (license package-license)
	       (home-page package-home-page)))))