Merge pull request #43397 from illegalprime/libphonenumber

libphonenumber: init at 8.9.9
This commit is contained in:
Silvan Mosberger 2018-08-14 01:04:57 +02:00 committed by GitHub
commit 78b4d9ac80
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 45 additions and 0 deletions

View File

@ -1679,6 +1679,11 @@
github = "ikervagyok";
name = "Balázs Lengyel";
};
illegalprime = {
email = "themichaeleden@gmail.com";
github = "illegalprime";
name = "Michael Eden";
};
ilya-kolpakov = {
email = "ilya.kolpakov@gmail.com";
github = "ilya-kolpakov";

View File

@ -0,0 +1,38 @@
{ stdenv, fetchFromGitHub, cmake, gmock, boost, pkgconfig, protobuf, icu }:
let
version = "8.9.9";
in
stdenv.mkDerivation {
name = "phonenumber-${version}";
inherit version;
src = fetchFromGitHub {
owner = "googlei18n";
repo = "libphonenumber";
rev = "v${version}";
sha256 = "005visnfnr84blgdi0yp4hrzskwbsnawrzv6lqfi9f073l6w5j6w";
};
nativeBuildInputs = [
cmake
gmock
pkgconfig
];
buildInputs = [
boost
protobuf
icu
];
cmakeDir = "../cpp";
checkPhase = "./libphonenumber_test";
meta = with stdenv.lib; {
description = "Google's i18n library for parsing and using phone numbers";
license = licenses.asl20;
maintainers = with maintainers; [ illegalprime ];
};
}

View File

@ -10674,6 +10674,8 @@ with pkgs;
libpgf = callPackage ../development/libraries/libpgf { };
libphonenumber = callPackage ../development/libraries/libphonenumber { };
libpng = callPackage ../development/libraries/libpng { };
libpng_apng = libpng.override { apngSupport = true; };
libpng12 = callPackage ../development/libraries/libpng/12.nix { };