···
···
stdenv.mkDerivation (finalAttrs: {
pname = "persistent-cache-cpp";
repo = "development/core/lib-cpp/persistent-cache-cpp";
rev = finalAttrs.version;
27
-
hash = "sha256-bOABrRSy5Mzeaqoc5ujcGXyBAaCJLv/488M7fkr0npE=";
26
+
hash = "sha256-1ETr4b0HEJIM6a4ObtKWtxn0y4gQy9fzBjE4QhMPGqU=";
···
37
-
# PersistentStringCacheImpl.exceptions test fails on LLVM's libcxx, it depends on std::system_error producing a very specific exception text
38
-
# Expects "Unknown error 666", gets "unspecified generic_category error"
39
-
# Remove when https://gitlab.com/ubports/development/core/lib-cpp/persistent-cache-cpp/-/merge_requests/14 merged & in release
41
-
name = "0001-persistent-cache-cpp-persistent_string_cache_impl_test-libcxx-fix.patch";
42
-
url = "https://gitlab.com/ubports/development/core/lib-cpp/persistent-cache-cpp/-/commit/a696dbd3093b8333f9ee1f0cad846b2256c729c5.patch";
43
-
hash = "sha256-SJxdXeM7W+WKEmiLTwnQYAM7YmPayEk6vPb46y4thv4=";
46
-
# Enable usage of BUILD_TESTING to opting out of tests
47
-
# Remove when https://gitlab.com/ubports/development/core/lib-cpp/persistent-cache-cpp/-/merge_requests/15 merged & in release
49
-
name = "0002-persistent-cache-cpp-Enable-opting-out-of-tests.patch";
50
-
url = "https://gitlab.com/ubports/development/core/lib-cpp/persistent-cache-cpp/-/commit/1fb06d28c16325e90046e93662c0f5fd16c29b4a.patch";
51
-
hash = "sha256-2/6EYBh71S4dzqWEde+3dLOGp015fN6IifAj1bI1XAI=";
57
-
# Remove when https://gitlab.com/ubports/development/core/lib-cpp/persistent-cache-cpp/-/merge_requests/19 merged & in release
58
-
substituteInPlace CMakeLists.txt \
59
-
--replace-fail 'std=c++14' 'std=c++17'
substituteInPlace data/libpersistent-cache-cpp.pc.in \
--replace "\''${prefix}/@CMAKE_INSTALL_LIBDIR@" "\''${prefix}/lib"
···
# Runs in parallel to other tests, limit to 1 thread
substituteInPlace tests/headers/compile_headers.py \
--replace 'multiprocessing.cpu_count()' '1'
69
-
sed '1i#include <iomanip>' \
70
-
-i tests/core/persistent_string_cache/speed_test.cpp
+ lib.optionalString finalAttrs.finalPackage.doCheck ''
patchShebangs tests/{headers,whitespace}/*.py
···
updateScript = gitUpdater { };
description = "Cache of key-value pairs with persistent storage for C++ 11";
A persistent cache for arbitrary (possibly large amount of data, such as
···
homepage = "https://gitlab.com/ubports/development/core/lib-cpp/persistent-cache-cpp";
changelog = "https://gitlab.com/ubports/development/core/lib-cpp/persistent-cache-cpp/-/blob/${finalAttrs.version}/ChangeLog";
119
-
license = licenses.lgpl3Only;
120
-
teams = [ teams.lomiri ];
121
-
platforms = platforms.unix;
91
+
license = lib.licenses.lgpl3Only;
92
+
teams = [ lib.teams.lomiri ];
93
+
platforms = lib.platforms.unix;
"libpersistent-cache-cpp"