blob: 4cb327ff527ba9eb03f11e92ef4641e8ae89b572 (
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
36
37
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 ];
};
}
|