nixpkgs/pkgs/development/libraries/libphonenumber/default.nix

36 lines
714 B
Nix
Raw Normal View History

2021-03-14 18:03:18 +00:00
{ lib, stdenv, fetchFromGitHub, cmake, gtest, boost, pkg-config, protobuf, icu }:
2018-08-13 20:23:19 +00:00
2019-10-05 21:50:15 +00:00
stdenv.mkDerivation rec {
pname = "phonenumber";
2020-02-09 19:07:09 +00:00
version = "8.11.3";
2018-08-13 20:23:19 +00:00
src = fetchFromGitHub {
owner = "googlei18n";
repo = "libphonenumber";
rev = "v${version}";
2020-02-09 19:07:09 +00:00
sha256 = "06y3mh1d1mks6d0ynxp3980g712nkf8l5nyljpybsk326b246hg9";
2018-08-13 20:23:19 +00:00
};
nativeBuildInputs = [
cmake
2021-03-14 18:03:18 +00:00
gtest
pkg-config
2018-08-13 20:23:19 +00:00
];
buildInputs = [
boost
protobuf
icu
];
cmakeDir = "../cpp";
checkPhase = "./libphonenumber_test";
meta = with lib; {
2018-08-13 20:23:19 +00:00
description = "Google's i18n library for parsing and using phone numbers";
license = licenses.asl20;
maintainers = with maintainers; [ illegalprime ];
};
}