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

36 lines
715 B
Nix
Raw Normal View History

2018-08-13 23:23:19 +03:00
{ stdenv, fetchFromGitHub, cmake, gmock, boost, pkgconfig, protobuf, icu }:
2019-10-06 00:50:15 +03:00
stdenv.mkDerivation rec {
pname = "phonenumber";
version = "8.10.20";
2018-08-13 23:23:19 +03:00
src = fetchFromGitHub {
owner = "googlei18n";
repo = "libphonenumber";
rev = "v${version}";
2019-10-06 00:50:15 +03:00
sha256 = "12xszrd4mrjabhzsp0xvy2qx2rxl36y5a00xfsh0w7bc299rq13v";
2018-08-13 23:23:19 +03:00
};
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 ];
};
}