summaryrefslogtreecommitdiff
path: root/packages/komodo/cppdap.scm
diff options
context:
space:
mode:
authorMarek Paśnikowski <marek@marekpasnikowski.pl>2024-03-20 12:37:34 +0100
committerMarek Paśnikowski <marek@marekpasnikowski.pl>2024-03-20 12:37:34 +0100
commitdfb72b837be8285612c303e056503e71ca5539ce (patch)
tree5e1b2e7ce5edddece190951a907c822e16aecd1b /packages/komodo/cppdap.scm
parentdbc3b686a994969000218d6dc1836716b88aa303 (diff)
Rename the imported private directory as package directory
Diffstat (limited to 'packages/komodo/cppdap.scm')
-rw-r--r--packages/komodo/cppdap.scm40
1 files changed, 40 insertions, 0 deletions
diff --git a/packages/komodo/cppdap.scm b/packages/komodo/cppdap.scm
new file mode 100644
index 0000000..1278e9d
--- /dev/null
+++ b/packages/komodo/cppdap.scm
@@ -0,0 +1,40 @@
+(define-module (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))))