blob: ea9dd091eb57d05699f1b5efca652106f4748c9a (
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
39
40
41
42
43
44
45
46
|
(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 python)
#:use-module (gnu packages golang)
#:use-module (gnu packages maths)
#:use-module (gnu packages golang)
#:use-module (gnu packages golang-xyz)
#:use-module (gnu packages machine-learning)
#:use-module (gnu packages version-control)
#:use-module (golang)
)
(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 "-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)))
|