123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566 |
- (use-modules (guix packages)
- (guix build-system gnu)
- (guix build utils)
- (guix gexp)
- (guix git-download)
- ((guix licenses) #:prefix license:)
- (gnu packages autotools)
- (gnu packages guile)
- (gnu packages guile-xyz)
- (gnu packages imagemagick)
- (gnu packages pkg-config)
- (gnu packages tls)
- (ice-9 popen)
- (ice-9 textual-ports))
- (define %source-dir
- (dirname (current-filename)))
- (define %git-commit
- (with-directory-excursion %source-dir
- (get-line (open-input-pipe "git rev-parse HEAD"))))
- (define guile-openai
- (package
- (name "guile-openai")
- (version (git-version "0.2" "HEAD" %git-commit))
- (source (local-file %source-dir
- #:recursive? #t
- #:select? (git-predicate %source-dir)))
- (build-system gnu-build-system)
- (arguments (list #:strip-binaries? #f))
- (native-inputs (list automake autoconf pkg-config))
- (inputs (list guile-3.0-latest imagemagick))
- (propagated-inputs (list guile-colorized
- guile-gnutls
- guile-json-4
- guile-picture-language))
- (home-page "https://notabug.org/flatwhatson/guile-openai")
- (synopsis "Guile implementation of the OpenAI API")
- (description
- "Guile OpenAI is an implementation of the OpenAI API in Guile Scheme,
- providing a convenient interface for interactive programming with their
- AI models.")
- (license license:agpl3+)))
- guile-openai
|