persistent-cache-cpp: 1.0.7 -> 1.0.9

OPNA2608 6d24d9f8 166c8af5

+6 -34
+6 -34
pkgs/by-name/pe/persistent-cache-cpp/package.nix
··· 2 2 stdenv, 3 3 lib, 4 4 fetchFromGitLab, 5 - fetchpatch, 6 5 gitUpdater, 7 6 testers, 8 7 boost, ··· 18 17 19 18 stdenv.mkDerivation (finalAttrs: { 20 19 pname = "persistent-cache-cpp"; 21 - version = "1.0.7"; 20 + version = "1.0.9"; 22 21 23 22 src = fetchFromGitLab { 24 23 owner = "ubports"; 25 24 repo = "development/core/lib-cpp/persistent-cache-cpp"; 26 25 rev = finalAttrs.version; 27 - hash = "sha256-bOABrRSy5Mzeaqoc5ujcGXyBAaCJLv/488M7fkr0npE="; 26 + hash = "sha256-1ETr4b0HEJIM6a4ObtKWtxn0y4gQy9fzBjE4QhMPGqU="; 28 27 }; 29 28 30 29 outputs = [ ··· 33 32 "doc" 34 33 ]; 35 34 36 - patches = [ 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 40 - (fetchpatch { 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="; 44 - }) 45 - 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 48 - (fetchpatch { 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="; 52 - }) 53 - ]; 54 - 55 35 postPatch = '' 56 - # GTest needs C++17 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' 60 - 61 36 # Wrong concatenation 62 37 substituteInPlace data/libpersistent-cache-cpp.pc.in \ 63 38 --replace "\''${prefix}/@CMAKE_INSTALL_LIBDIR@" "\''${prefix}/lib" ··· 65 40 # Runs in parallel to other tests, limit to 1 thread 66 41 substituteInPlace tests/headers/compile_headers.py \ 67 42 --replace 'multiprocessing.cpu_count()' '1' 68 - 69 - sed '1i#include <iomanip>' \ 70 - -i tests/core/persistent_string_cache/speed_test.cpp 71 43 '' 72 44 + lib.optionalString finalAttrs.finalPackage.doCheck '' 73 45 patchShebangs tests/{headers,whitespace}/*.py ··· 108 80 updateScript = gitUpdater { }; 109 81 }; 110 82 111 - meta = with lib; { 83 + meta = { 112 84 description = "Cache of key-value pairs with persistent storage for C++ 11"; 113 85 longDescription = '' 114 86 A persistent cache for arbitrary (possibly large amount of data, such as ··· 116 88 ''; 117 89 homepage = "https://gitlab.com/ubports/development/core/lib-cpp/persistent-cache-cpp"; 118 90 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; 122 94 pkgConfigModules = [ 123 95 "libpersistent-cache-cpp" 124 96 ];