summaryrefslogtreecommitdiff
path: root/packages/komodo/spdlog.scm
blob: 1b1c17055339f3ef37271a0d56843498ac23ca31 (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
(define-module (spdlog)
  #:use-module (gnu packages logging)
  #:use-module (guix git-download)
  #:use-module (guix packages))

;; DATA LAYER

(define configure-flags-inherited
  (list "-DSPDLOG_BUILD_BENCH=OFF"
	"-DSPDLOG_BUILD_SHARED=ON"))

(define tests?
  #f)

(define version
  "1.8.5")

;; ABSTRACTION LAYER -1

(define configure-flags
  `',configure-flags-inherited)

;; ABSTRACTION LAYER -0

(define arguments
  (list #:configure-flags configure-flags
	#:tests? tests?))

(define source
  (origin (uri (git-reference (url "https://github.com/gabime/spdlog")
			      (commit (string-append "v"
						     version))))
	  (method git-fetch)
	  (file-name (git-file-name "spdlog" version))
	  (sha256 (base32
		   "179krvg5sad6dviqpcjwg6czzknnilqszrg1d0fgp12h6sy66vqg"))))

;; SURFACE LAYER

(define-public spdlog-1.8
  (package (inherit spdlog)
	   (version version)
	   (source source)
	   (arguments arguments)))