libphonenumber: 8.11.3 -> 8.12.37

Also fix build on darwin.
This commit is contained in:
Sebastián Mancilla 2021-11-18 14:09:41 -03:00 committed by Jonathan Ringer
parent 64d482f053
commit ffad12aea1
2 changed files with 8 additions and 5 deletions

View file

@ -1,14 +1,14 @@
{ lib, stdenv, fetchFromGitHub, cmake, gtest, boost, pkg-config, protobuf, icu }: { lib, stdenv, fetchFromGitHub, cmake, gtest, boost, pkg-config, protobuf, icu, Foundation }:
stdenv.mkDerivation rec { stdenv.mkDerivation rec {
pname = "phonenumber"; pname = "phonenumber";
version = "8.11.3"; version = "8.12.37";
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "googlei18n"; owner = "googlei18n";
repo = "libphonenumber"; repo = "libphonenumber";
rev = "v${version}"; rev = "v${version}";
sha256 = "06y3mh1d1mks6d0ynxp3980g712nkf8l5nyljpybsk326b246hg9"; sha256 = "sha256-xLxadSxVY3DjFDQrqj3BuOvdMaKdFSLjocfzovJCBB0=";
}; };
nativeBuildInputs = [ nativeBuildInputs = [
@ -21,7 +21,7 @@ stdenv.mkDerivation rec {
boost boost
protobuf protobuf
icu icu
]; ] ++ lib.optional stdenv.isDarwin Foundation;
cmakeDir = "../cpp"; cmakeDir = "../cpp";
@ -29,6 +29,7 @@ stdenv.mkDerivation rec {
meta = with lib; { meta = with lib; {
description = "Google's i18n library for parsing and using phone numbers"; description = "Google's i18n library for parsing and using phone numbers";
homepage = "https://github.com/google/libphonenumber";
license = licenses.asl20; license = licenses.asl20;
maintainers = with maintainers; [ illegalprime ]; maintainers = with maintainers; [ illegalprime ];
}; };

View file

@ -18104,7 +18104,9 @@ with pkgs;
libpgf = callPackage ../development/libraries/libpgf { }; libpgf = callPackage ../development/libraries/libpgf { };
libphonenumber = callPackage ../development/libraries/libphonenumber { }; libphonenumber = callPackage ../development/libraries/libphonenumber {
inherit (darwin.apple_sdk.frameworks) Foundation;
};
libplacebo = callPackage ../development/libraries/libplacebo { }; libplacebo = callPackage ../development/libraries/libplacebo { };