summaryrefslogtreecommitdiff
path: root/packages/komodo/cppdap.scm
blob: 8e778d4edfc06131d0a90af98788bc0df378fdfa (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
(define-module (packages komodo cppdap)
  #:use-module (gnu packages cpp)
  #:use-module (guix build-system cmake)
  #:use-module (guix git-download)
  #:use-module
  ((guix licenses)
   #:prefix license:)
  #:use-module (guix packages))

(define-public cppdap
  (let ((cppdap-commit "5857b55c151c2efc1aea1ee0501e8d09f740d41b")
	(cppdap-github "https://github.com/google/cppdap"))
    (package
     (name "cppdap")
     (version cppdap-commit)
     (source
      (origin
       (uri
	(git-reference
	 (url (string-append cppdap-github ".git"))
	 (commit cppdap-commit)))
       (method git-fetch)
       (hash
	(content-hash "08bdsn0568hidq51fzw63ph0wkri8siid74fxp7sqvxjv04164pr"))))
     (build-system cmake-build-system)
     (arguments
      (list
       #:phases '(modify-phases %standard-phases (delete 'check))
       #:configure-flags
       '(list "-DCPPDAP_USE_EXTERNAL_NLOHMANN_JSON_PACKAGE=ON")))
     (native-inputs (list nlohmann-json))
     (synopsis "C++ library for the Debug Adapter Protocol")
     (description
      (string-append
       "cppdap is a C++11 library (\"SDK\") implementation of the Debug Adapter "
       "Protocol, providing an API for implementing a DAP client or server. "
       "cppdap provides C++ type-safe structures for the full DAP specification, "
       "and provides a simple way to add custom protocol messages."))
     (license license:asl2.0)
     (home-page cppdap-github))))