summaryrefslogtreecommitdiffstats
path: root/stablediffusion.scm
blob: ffc00473a468f5cc848884f1307f9e411fb29ec2 (plain) (blame)
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
(define-module (stablediffusion)
               #:use-module (guix build-system cmake)
               #:use-module (guix git-download)
               #:use-module (guix packages)
               #:use-module (guix gexp)
               #:use-module (guix download)
               #:use-module ((guix licenses) :prefix license:)
               #:use-module (gnu packages maths)
               )
(define-public stable-diffusion-cpp
               (package
                 (name "stable-diffusion-cpp")
                 (version "48bcce493f45a11d9d5a4c69943d03ff919d748f")
                 (source
                   (origin
                     (method git-fetch)
                     (uri (git-reference
                            (url "https://github.com/leejet/stable-diffusion.cpp.git")
                            (recursive? #t)
                            (commit version)))
                     (file-name (git-file-name name version))
                     (sha256
                       (base32
                         "1sx0y3b2bz9b5nqmav4g0hrsxinih3scyywy3zam8ywamcfpvww1"))))
                 (build-system cmake-build-system)
                 (inputs (list openblas))
                 (arguments
                   '(
                   #:tests? #f
                   ;#:cmake "--config Release"
                   ;#:configure-flags (list "-DSD_CUBLAS=ON -DGGML_OPENBLAS=ON --config Release")
                   #:configure-flags (list "-DGGML_OPENBLAS=ON --config Release")
                                  )
                   )
                 (home-page "https://github.com/leejet/stable-diffusion.cpp")
                 (synopsis "Inference of Stable Diffusion in pure C/C++")
                 (description "Inference of Stable Diffusion in pure C/C++")
                 (license license:expat)))