New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
libphonenumber: init at 8.9.9 #43397
Conversation
46b13e3
to
ff4ed30
Compare
Thanks. Please do check https://github.com/NixOS/nixpkgs/blob/master/.github/CONTRIBUTING.md#submitting-changes. |
@GrahamcOfBorg build libphonenumber |
No attempt on x86_64-linux (full log) The following builds were skipped because they don't evaluate on x86_64-linux: libphonenumber Partial log (click to expand)
|
No attempt on x86_64-darwin (full log) The following builds were skipped because they don't evaluate on x86_64-darwin: libphonenumber Partial log (click to expand)
|
No attempt on aarch64-linux (full log) The following builds were skipped because they don't evaluate on aarch64-linux: libphonenumber Partial log (click to expand)
|
@GrahamcOfBorg build phonenumber |
Failure on x86_64-darwin (full log) Attempted: phonenumber Partial log (click to expand)
|
Success on x86_64-linux (full log) Attempted: phonenumber Partial log (click to expand)
|
Success on aarch64-linux (full log) Attempted: phonenumber Partial log (click to expand)
|
ff4ed30
to
0512ec4
Compare
Thanks! Who should I put as the maintainer? |
If you like you can add yourself to |
license = stdenv.lib.licenses.asl20; | ||
}; | ||
|
||
configurePhase = "cmake -DCMAKE_INSTALL_PREFIX=$out cpp"; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think you should be able to leave this out & move it to cmakeFlags.
@matthewbauer how would I specify that the directory with the |
5b87016
to
1246529
Compare
You should just be able to put it in cmakeFlags I believe. It’s not that important though sice i think what you have is equivalent. You should mark the package as linux only here though because it looks like there is some issues on macOS. |
src = fetchurl { | ||
url = "https://github.com/googlei18n/libphonenumber/archive/v${version}.tar.gz"; | ||
sha256 = "1m2z5hk2yg99sqi70wf26biprhppklwxwyk0g717c1x6yybch13g"; | ||
}; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Use fetchFromGitHub
instead.
|
||
nativeBuildInputs = [ | ||
cmake | ||
]; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
pkgconfig
and gmock
should probably be in nativeBuildInputs
.
description = "Google's i18n library for parsing and using phone numbers"; | ||
license = licenses.asl20; | ||
maintainers = with maintainers; [ illegalprime ]; | ||
}; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nitpick: Can you move this meta section to the very bottom? It's somewhat of a convention
|
||
checkPhase = "./libphonenumber_test"; | ||
|
||
doCheck = true; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think doCheck
is true by default if I'm not mistaken.
pkgs/top-level/all-packages.nix
Outdated
@@ -4470,6 +4470,8 @@ with pkgs; | |||
|
|||
phodav = callPackage ../tools/networking/phodav { }; | |||
|
|||
phonenumber = callPackage ../development/libraries/libphonenumber { }; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Use libphonenumber
instead, and put it in the section of all-packages.nix
where other libraries are.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I thought this was alphabetical? Never mind my brain messed up
maintainers = with maintainers; [ illegalprime ]; | ||
}; | ||
|
||
configurePhase = "cmake -DCMAKE_INSTALL_PREFIX=$out cpp"; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Remove this and use cmakeDir = "../cpp";
instead.
1246529
to
9eb1662
Compare
Is it better to have |
Nah, Nix doesn't generally handle versions like that. And overriding it like that wouldn't change anything in fact, because the source will still point to the old version. This PR looks good to me like this, thanks :) |
Oh wait one more thing: Can you make a first commit for adding you as a maintainer and a second one for adding the package? |
Ping |
Moving across cities now, I'll try to get to this tonight. Thanks for the
reminder!
…On Mon, Aug 13, 2018, 12:57 PM Silvan Mosberger ***@***.***> wrote:
Ping
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#43397 (comment)>, or mute
the thread
<https://github.com/notifications/unsubscribe-auth/AEMoRKGgDpPIuG1Ak4xtYehE9tBMrfglks5uQb4GgaJpZM4VMFvJ>
.
|
9eb1662
to
eca17c4
Compare
Motivation for this change
Adds
libphonenumber
a handy library to parse and work with phone number of different formats.Things done
sandbox
innix.conf
on non-NixOS)nix-shell -p nox --run "nox-review wip"
./result/bin/
)nix path-info -S
before and after)This is my first package contribution here, so I'm sorry in advance if I don't have everything formatted.