blob: f36b5436d69ca1b86631876dce07879af40bb80f (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
|
{ lib, stdenv, fetchFromGitHub, cmake, gtest, boost, pkg-config, protobuf, icu }:
stdenv.mkDerivation rec {
pname = "phonenumber";
version = "8.11.3";
src = fetchFromGitHub {
owner = "googlei18n";
repo = "libphonenumber";
rev = "v${version}";
sha256 = "06y3mh1d1mks6d0ynxp3980g712nkf8l5nyljpybsk326b246hg9";
};
nativeBuildInputs = [
cmake
gtest
pkg-config
];
buildInputs = [
boost
protobuf
icu
];
cmakeDir = "../cpp";
checkPhase = "./libphonenumber_test";
meta = with lib; {
description = "Google's i18n library for parsing and using phone numbers";
license = licenses.asl20;
maintainers = with maintainers; [ illegalprime ];
};
}
|