diff options
author | Michael Eden <themichaeleden@gmail.com> | 2018-08-13 16:23:19 -0400 |
---|---|---|
committer | Michael Eden <themichaeleden@gmail.com> | 2018-08-13 16:23:19 -0400 |
commit | eca17c4a7f363469562fdc1f5c903bd87cab6c7c (patch) | |
tree | ef971abe60591e9fad62f43bc1da59fc20bd57ae /pkgs/development/libraries/libphonenumber | |
parent | 59f88b478f676f4f67a1269926256c38d508a2f7 (diff) |
libphonenumber: init at 8.9.9
Diffstat (limited to 'pkgs/development/libraries/libphonenumber')
-rw-r--r-- | pkgs/development/libraries/libphonenumber/default.nix | 38 |
1 files changed, 38 insertions, 0 deletions
diff --git a/pkgs/development/libraries/libphonenumber/default.nix b/pkgs/development/libraries/libphonenumber/default.nix new file mode 100644 index 0000000000000..4cb327ff527ba --- /dev/null +++ b/pkgs/development/libraries/libphonenumber/default.nix @@ -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 ]; + }; +} |