Skip to content

Commit

Permalink
Merge pull request NixOS#314121 from dotlambda/libphonenumber
Browse files Browse the repository at this point in the history
libphonenumber: 8.12.37 -> 8.13.37
  • Loading branch information
dotlambda authored May 30, 2024
2 parents a8da5ed + 4e1ee79 commit 142a047
Showing 1 changed file with 29 additions and 17 deletions.
46 changes: 29 additions & 17 deletions pkgs/development/libraries/libphonenumber/default.nix
Original file line number Diff line number Diff line change
@@ -1,14 +1,25 @@
{ lib, stdenv, fetchFromGitHub, cmake, gtest, boost, pkg-config, protobuf, icu, Foundation, buildPackages }:

stdenv.mkDerivation rec {
{ lib
, stdenv
, fetchFromGitHub
, cmake
, gtest
, jre
, pkg-config
, boost
, icu
, protobuf
, Foundation
}:

stdenv.mkDerivation (finalAttrs: {
pname = "libphonenumber";
version = "8.12.37";
version = "8.13.37";

src = fetchFromGitHub {
owner = "googlei18n";
owner = "google";
repo = "libphonenumber";
rev = "v${version}";
sha256 = "sha256-xLxadSxVY3DjFDQrqj3BuOvdMaKdFSLjocfzovJCBB0=";
rev = "v${finalAttrs.version}";
hash = "sha256-TQ9Hz9fnKZhZkg+hkXgFqH4TDCWMe+fcEWE6ShwSBBU=";
};

patches = [
Expand All @@ -19,29 +30,30 @@ stdenv.mkDerivation rec {

nativeBuildInputs = [
cmake
gtest
jre
pkg-config
];

buildInputs = [
boost
protobuf
icu
gtest
] ++ lib.optional stdenv.isDarwin Foundation;
protobuf
] ++ lib.optionals stdenv.isDarwin [
Foundation
];

cmakeDir = "../cpp";
cmakeFlags =
lib.optionals (stdenv.hostPlatform != stdenv.buildPlatform) [
"-DBUILD_GEOCODER=OFF"
"-DPROTOC_BIN=${buildPackages.protobuf}/bin/protoc"
];

checkPhase = "./libphonenumber_test";
doCheck = true;

checkTarget = "tests";

meta = with lib; {
changelog = "https://github.com/google/libphonenumber/blob/${finalAttrs.src.rev}/release_notes.txt";
description = "Google's i18n library for parsing and using phone numbers";
homepage = "https://github.com/google/libphonenumber";
license = licenses.asl20;
maintainers = with maintainers; [ illegalprime ];
};
}
})

0 comments on commit 142a047

Please sign in to comment.