[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[bug#66870] [PATCH 3/6] gnu: Add function2.
From: |
Sughosha |
Subject: |
[bug#66870] [PATCH 3/6] gnu: Add function2. |
Date: |
Wed, 1 Nov 2023 10:09:39 +0100 |
From: Sughosha <sughosha@proton.me>
* gnu/packages/cpp.scm (function2): New variable.
Change-Id: I29eb928aa943fa6b796d699271ca523075d44d38
---
gnu/packages/cpp.scm | 33 +++++++++++++++++++++++++++++++++
1 file changed, 33 insertions(+)
diff --git a/gnu/packages/cpp.scm b/gnu/packages/cpp.scm
index 7d91c72489..6c99f39639 100644
--- a/gnu/packages/cpp.scm
+++ b/gnu/packages/cpp.scm
@@ -2302,6 +2302,39 @@ (define-public bitsery
(home-page "https://github.com/fraillt/bitsery")
(license license:expat)))
+(define-public function2
+ (package
+ (name "function2")
+ (version "4.2.3")
+ (source (origin
+ (method git-fetch)
+ (uri (git-reference
+ (url "https://github.com/Naios/function2")
+ (commit version)
+ ;; Tests require to compile googletest with custom
+ ;; features.
+ (recursive? #t)))
+ (file-name (git-file-name name version))
+ (sha256
+ (base32
+ "0zdi6jk3srjkx82kbmd9rfmj9c1rr2xlsz2hbdcjvcjp63vzzxd1"))))
+ (build-system cmake-build-system)
+ ;; The test size_match_layout fails on i586/i686. For more info:
+ ;; https://github.com/Naios/function2/issues/57
+ (arguments
+ (list #:tests? #f))
+ (synopsis "Improved implementations of std::function")
+ (description "This package provides the following implementations of
+std::function:
+@itemize
+@item copyable fu2::function
+@item move-only fu2::unique_function (capable of holding move only types)
+@item non-owning fu2::function_view (capable of referencing callables in a non
+owning way)
+@end itemize")
+ (home-page "https://naios.github.io/function2/")
+ (license license:boost1.0)))
+
(define-public cpp-mustache
(package
(name "cpp-mustache")
--
2.41.0
- [bug#66870] [PATCH 0/6] gnu: Add yabridge., Sughosha, 2023/11/01
- [bug#66870] [PATCH 1/6] gnu: asio: Update to 1.28.0., Sughosha, 2023/11/01
- [bug#66870] [PATCH 2/6] gnu: Add bitsery., Sughosha, 2023/11/01
- [bug#66870] [PATCH 3/6] gnu: Add function2.,
Sughosha <=
- [bug#66870] [PATCH 6/6] gnu: Add yabridge., Sughosha, 2023/11/01
- [bug#66870] [PATCH 4/6] gnu: Add tomlplusplus., Sughosha, 2023/11/01
- [bug#66870] [PATCH 5/6] gnu: Add clap., Sughosha, 2023/11/01
- [bug#66870] [PATCH v2 0/7] gnu: Add yabridge., Sughosha, 2023/11/30
- [bug#66870] [PATCH v2 1/7] gnu: asio: Update to 1.28.0., Sughosha, 2023/11/30
- [bug#66870] [PATCH v2 4/7] gnu: Add tomlplusplus., Sughosha, 2023/11/30
- [bug#66870] [PATCH v2 2/7] gnu: Add bitsery., Sughosha, 2023/11/30
- [bug#66870] [PATCH v2 5/7] gnu: Add clap., Sughosha, 2023/11/30
- [bug#66870] [PATCH v2 6/7] gnu: Add clap-1.1.7., Sughosha, 2023/11/30
- [bug#66870] [PATCH v2 3/7] gnu: Add function2., Sughosha, 2023/11/30