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

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

37 lines
828 B
Nix
Raw Normal View History

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