summaryrefslogtreecommitdiff
path: root/private
diff options
context:
space:
mode:
authorMarek Paśnikowski <marek@marekpasnikowski.pl>2024-03-13 19:26:57 +0100
committerMarek Paśnikowski <marek@marekpasnikowski.pl>2024-03-17 12:59:53 +0100
commit004c05b6b180aa7cfe5ea215faccbe0425177356 (patch)
tree91c7ca0fcd377cd34b353185cddee9a7bbd90013 /private
parentfb730854e6607a769012c931c70aa24217673475 (diff)
Implement initial definition of cppdap for cmake update
Diffstat (limited to 'private')
-rw-r--r--private/komodo/cmake.scm3
-rw-r--r--private/komodo/cppdap.scm33
2 files changed, 35 insertions, 1 deletions
diff --git a/private/komodo/cmake.scm b/private/komodo/cmake.scm
index 74b3a02e41..bdaca09c35 100644
--- a/private/komodo/cmake.scm
+++ b/private/komodo/cmake.scm
@@ -29,6 +29,7 @@
;;; along with GNU Guix. If not, see <http://www.gnu.org/licenses/>.
(define-module (cmake)
+ #:use-module (cppdap)
#:use-module ((guix licenses) #:prefix license:)
#:use-module (guix packages)
#:use-module (guix gexp)
@@ -236,7 +237,7 @@ using the CMake build system.")
"!defined(__GNU__)")))))
#~()))))
(inputs
- (list libuv bzip2 curl expat file jsoncpp libarchive rhash zlib))
+ (list libuv bzip2 cppdap curl expat file jsoncpp libarchive rhash zlib))
(native-search-paths
(list (search-path-specification
(variable "CMAKE_PREFIX_PATH")
diff --git a/private/komodo/cppdap.scm b/private/komodo/cppdap.scm
new file mode 100644
index 0000000000..87f97eaecb
--- /dev/null
+++ b/private/komodo/cppdap.scm
@@ -0,0 +1,33 @@
+(define-module (cppdap)
+ #: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)
+ (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))))