-
Notifications
You must be signed in to change notification settings - Fork 77
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
Cannot build gRPC in a pure nix environment #58
Comments
Are you able to successfully do |
fwiw, i've seen this error when working with nix on non-NixOS platforms. |
I've been testing on OS X (albeit without the |
i'm on Ubuntu, where I haven't installed many packages via the system
package manager, and also deleted some files in `/usr/...`. so the GMP
either didn't come with the installation or was removed afterwards.
GMP is used by the compiler and standard library itself (it's technically a
dependency), so I think it's good to depend on it explicitly (i.e. it
doesn't feel like a hack), which I assume `haskellPackages.callPackage`
does anyways. which I don't think ``haskellPackages. buildStackProject` or
a raw `buildEnv` do (again, I haven't looked at the `.nix` here).
…On Mon, Sep 17, 2018, 21:14 Gabriel Gonzalez ***@***.***> wrote:
I've been testing on OS X (albeit without the --pure flag), so I think it
should work without explicitly listing gmp
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#58 (comment)>,
or mute the thread
</~https://github.com/notifications/unsubscribe-auth/ACNoMS0BYCkXhFtjbHodjtLHuLe742sSks5ucHMpgaJpZM4UO5tg>
.
|
…y#58) Fixes awakesecurity#53 The motivation for this change is so that generated code does not need to depend on the `grpc-haskell-core` package This removes the unnecessary `Network.GRPC.HighLevel.Server.Unregistered` import from the generated code since everything provided by the low-level library is already re-exported by the high-level library
Without the pragma one could accidentally leave both 'ifNat' and 'boolNat' undefined, leading to an infinite loop because each has a default implementation in terms of the other.
Hello,
I was trying to compile gRPC on my computer (a recent version of Ubuntu). It looks like the current nix instructions do not express all the proper dependencies (or I am not using the proper nix channels).
Here is my setup:
nix (Nix) 2.0.2
nixpkgs https://nixos.org/channels/nixpkgs-unstable
55f51eaa24e8a4dfeb1b477b2fe46a2d79652ca8
(latest master)When launching the nix shell with
nix-shell release.nix --pure -A grpc-haskell.env
, here is what I get:I tried to also download and run the latest release of stack, but
ghc
andgcc
do not seem to find GMP in that case:It is probably a simple fix in the nix derivations, but my understanding of these is pretty limited...
Thank you in advance.
The text was updated successfully, but these errors were encountered: