GNU bug report logs - #58391
[PATCH] cpprestsdk: New package

Previous Next

Package: guix-patches;

Reported by: Jacob Hrbek <kreyren <at> rixotstudio.cz>

Date: Sun, 9 Oct 2022 07:29:01 UTC

Severity: normal

Tags: patch

Full log


Message #8 received at 58391 <at> debbugs.gnu.org (full text, mbox):

From: Jacob Hrbek <kreyren <at> rixotstudio.cz>
To: 58391 <at> debbugs.gnu.org
Cc: Jacob Hrbek <kreyren <at> rixotstudio.cz>
Subject: [PATCH] cpprestsdk: New package
Date: Sun, 09 Oct 2022 07:30:14 +0000
---
 gnu/packages/cpp.scm | 31 +++++++++++++++++++++++++++++++
 1 file changed, 31 insertions(+)

diff --git a/gnu/packages/cpp.scm b/gnu/packages/cpp.scm
index d03e0bc7e1..027b1ed2af 100644
--- a/gnu/packages/cpp.scm
+++ b/gnu/packages/cpp.scm
@@ -29,6 +29,7 @@
 ;;; Copyright © 2022 muradm <mail <at> muradm.net>
 ;;; Copyright © 2022 Attila Lendvai <attila <at> lendvai.name>
 ;;; Copyright © 2022 Arun Isaac <arunisaac <at> systemreboot.net>
+;;; Copyright © 2022 Jacob 'Kreyren' Hrbek <kreyren <at> rixotstudio.cz>
 ;;;
 ;;; This file is part of GNU Guix.
 ;;;
@@ -885,6 +886,36 @@ (define-public cpplint
 and make @code{cpplint} usable in wider contexts.")
     (license license:bsd-3)))

+(define-public cpprestsdk
+  (package
+    (name "cpprestsdk")
+    (home-page "https://github.com/microsoft/cpprestsdk")
+    (version "2.10.18")
+    (source (origin
+              (method git-fetch)
+              (uri (git-reference
+                    (url home-page)
+                    (commit (string-append "v" version))
+                    (recursive? #t)))
+              (file-name (git-file-name name version))
+              (sha256
+               (base32
+                "07qyip57wyzpmlgyz1fri4ljmla7ar3isddvfkm8hzv6q35bx2rn"))))
+    (build-system cmake-build-system)
+    (arguments
+     `(#:tests? #f ;4 tests fail
+       #:phases (modify-phases %standard-phases
+                  ;; Microsoft doesn't know how to write a code without errors
+                  (add-after 'unpack 'disable-Werror
+                    (lambda _
+                      (substitute* "Release/CMakeLists.txt"
+                        (("WERROR ON CACHE")
+                         "WERROR OFF CACHE")) #t)))))
+    (native-inputs (list boost openssl zlib))
+    (synopsis "API for cloud-based client-server communication")
+    (description "C++ REST API to connect and interact with servers")
+    (license license:expat)))
+
 (define-public reproc
   (package
     (name "reproc")
--
2.37.3






This bug report was last modified 2 years and 255 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.