From a80b52daf9415f8522ea85152bf8053cae88f9b2 Mon Sep 17 00:00:00 2001 From: Marek Paśnikowski Date: Wed, 13 Mar 2024 19:26:57 +0100 Subject: Implement initial definition of cppdap for cmake update --- private/komodo/cmake.scm | 3 ++- private/komodo/cppdap.scm | 33 +++++++++++++++++++++++++++++++++ 2 files changed, 35 insertions(+), 1 deletion(-) create mode 100644 private/komodo/cppdap.scm (limited to 'private/komodo') diff --git a/private/komodo/cmake.scm b/private/komodo/cmake.scm index 74b3a02..bdaca09 100644 --- a/private/komodo/cmake.scm +++ b/private/komodo/cmake.scm @@ -29,6 +29,7 @@ ;;; along with GNU Guix. If not, see . (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 0000000..87f97ea --- /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)))) -- cgit v1.2.3