libphonenumber: 9.0.10 -> 9.0.12 (#430854)

authored by Weijia Wang and committed by GitHub 280accc6 bdb6b607

+19 -9
+19 -9
pkgs/by-name/li/libphonenumber/package.nix
··· 4 fetchFromGitHub, 5 buildPackages, 6 cmake, 7 gtest, 8 jre, 9 pkg-config, ··· 14 15 stdenv.mkDerivation (finalAttrs: { 16 pname = "libphonenumber"; 17 - version = "9.0.10"; 18 19 src = fetchFromGitHub { 20 owner = "google"; 21 repo = "libphonenumber"; 22 tag = "v${finalAttrs.version}"; 23 - hash = "sha256-b/TQhHG7qPzXcFtiFNXOu1hkFfT9KnZNPa+AB/Fmk0E="; 24 }; 25 26 patches = [ ··· 31 32 nativeBuildInputs = [ 33 cmake 34 gtest 35 jre 36 - pkg-config 37 ]; 38 39 buildInputs = [ 40 - boost 41 icu 42 protobuf 43 ]; 44 45 cmakeDir = "../cpp"; 46 47 - doCheck = true; 48 49 checkTarget = "tests"; 50 51 - cmakeFlags = lib.optionals (!stdenv.buildPlatform.canExecute stdenv.hostPlatform) [ 52 - (lib.cmakeFeature "CMAKE_CROSSCOMPILING_EMULATOR" (stdenv.hostPlatform.emulator buildPackages)) 53 - (lib.cmakeFeature "PROTOC_BIN" (lib.getExe buildPackages.protobuf)) 54 - ]; 55 56 meta = with lib; { 57 changelog = "https://github.com/google/libphonenumber/blob/${finalAttrs.src.rev}/release_notes.txt";
··· 4 fetchFromGitHub, 5 buildPackages, 6 cmake, 7 + enableTests ? true, 8 gtest, 9 jre, 10 pkg-config, ··· 15 16 stdenv.mkDerivation (finalAttrs: { 17 pname = "libphonenumber"; 18 + version = "9.0.12"; 19 20 src = fetchFromGitHub { 21 owner = "google"; 22 repo = "libphonenumber"; 23 tag = "v${finalAttrs.version}"; 24 + hash = "sha256-ylEv1YtnzXGHLKVY1INEq2GXrxgfy6R0cL199ec8CyQ="; 25 }; 26 27 patches = [ ··· 32 33 nativeBuildInputs = [ 34 cmake 35 + pkg-config 36 + ] 37 + ++ lib.optionals enableTests [ 38 gtest 39 jre 40 ]; 41 42 buildInputs = [ 43 icu 44 protobuf 45 + ] 46 + ++ lib.optionals enableTests [ 47 + boost 48 ]; 49 50 cmakeDir = "../cpp"; 51 52 + doCheck = enableTests; 53 54 checkTarget = "tests"; 55 56 + cmakeFlags = 57 + lib.optionals (!enableTests) [ 58 + (lib.cmakeBool "REGENERATE_METADATA" false) 59 + (lib.cmakeBool "USE_BOOST" false) 60 + ] 61 + ++ lib.optionals (!stdenv.buildPlatform.canExecute stdenv.hostPlatform) [ 62 + (lib.cmakeFeature "CMAKE_CROSSCOMPILING_EMULATOR" (stdenv.hostPlatform.emulator buildPackages)) 63 + (lib.cmakeFeature "PROTOC_BIN" (lib.getExe buildPackages.protobuf)) 64 + ]; 65 66 meta = with lib; { 67 changelog = "https://github.com/google/libphonenumber/blob/${finalAttrs.src.rev}/release_notes.txt";