Skip to content

grpcurl: add darwin as a supported platform #79442

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

Closed
wants to merge 1 commit into from

Conversation

knl
Copy link
Contributor

@knl knl commented Feb 7, 2020

Motivation for this change

grpcurl works on Linux, macOS, and Windows. This adds darwin to the list
of supported platforms, so nixpkgs build it there as well.

Things done
  • Tested using sandboxing (nix.useSandbox on NixOS, or option sandbox in nix.conf on non-NixOS linux)
  • Built on platform(s)
    • NixOS
    • macOS
    • other Linux distributions
  • Tested via one or more NixOS test(s) if existing and applicable for the change (look inside nixos/tests)
  • Tested compilation of all pkgs that depend on this change using nix-shell -p nixpkgs-review --run "nixpkgs-review wip"
  • Tested execution of all binary files (usually in ./result/bin/)
  • Determined the impact on package closure size (by running nix path-info -S before and after)
  • Ensured that relevant documentation is up to date
  • Fits CONTRIBUTING.md.

Sorry, something went wrong.

@knl knl requested a review from basvandijk February 7, 2020 10:47

Verified

This commit was signed with the committer’s verified signature. The key has expired.
rnhmjoj Michele Guerini Rocco
grpcurl works on Linux, macOS, and Windows. This adds darwin to the list
of supported platforms, so nixpkgs build it there as well.
@knl knl force-pushed the grpcurl-works-on-darwin-too branch from b023b87 to decc173 Compare February 7, 2020 10:50
@knl knl requested a review from zimbatm February 7, 2020 10:51
@ofborg ofborg bot added 6.topic: darwin Running or building packages on Darwin 10.rebuild-darwin: 0 This PR does not cause any packages to rebuild on Darwin 10.rebuild-linux: 0 This PR does not cause any packages to rebuild on Linux labels Feb 7, 2020
@@ -22,6 +22,7 @@ buildGoPackage rec {
description = "Like cURL, but for gRPC: Command-line tool for interacting with gRPC servers";
homepage = https://github.com/fullstorydev/grpcurl;
license = stdenv.lib.licenses.mit;
platforms = with stdenv.lib.platforms; linux ++ darwin;
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

buildGoPackage seems to set platforms = lib.platforms.all if no value is provided.
See:
https://github.com/zimbatm/nixpkgs/blob/686125dbf9e1b5e933d3e74a7843bd9b1939d272/pkgs/development/go-packages/generic/default.nix#L242

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nix-repl> grpcurl.meta.platforms
[ "aarch64-linux" "armv5tel-linux" "armv6l-linux" "armv7a-linux" "armv7l-linux" "mipsel-linux" "i686-linux" "x86_64-linux" "powerpc64le-linux" "riscv32-linux" "riscv64-linux" "x86_64-darwin" "i686-darwin" "aarch64-darwin" "armv7a-darwin" ]

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I should have checked better. Thanks! Will close the PR.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No problem :)

@knl knl closed this Feb 7, 2020
@knl knl deleted the grpcurl-works-on-darwin-too branch March 18, 2022 08:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
6.topic: darwin Running or building packages on Darwin 10.rebuild-darwin: 0 This PR does not cause any packages to rebuild on Darwin 10.rebuild-linux: 0 This PR does not cause any packages to rebuild on Linux
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants