From dfb72b837be8285612c303e056503e71ca5539ce Mon Sep 17 00:00:00 2001 From: Marek Paśnikowski Date: Wed, 20 Mar 2024 12:37:34 +0100 Subject: Rename the imported private directory as package directory --- packages/komodo/cppdap.scm | 40 ++++++++++++++++++++++++++++++++++++++++ 1 file changed, 40 insertions(+) create mode 100644 packages/komodo/cppdap.scm (limited to 'packages/komodo/cppdap.scm') 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)))) -- cgit v1.2.3