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