Open rbmdotdev opened 3 years ago
could really use some help on this, almost three days wasted now trying to get a usable ruby environment up and running. I think it boils down to ruby inside the nix-shell not being able to see zlib but I have added it in multiple different documented ways and just cant seem to figure this out
I just ran into the same issue. No clue what caused it but I just removed the following directories (via SO):
rm -r ~/.nix-channels ~/.nix-defexpr ~/.nix-profile
sudo rm -r /nix
Then reinstalled nix with the multiuser installer, and that fixed it 🤷🏼
Thought I'd drop a comment here in case it helps anyone in the future.
Hi I have bundix installed using
nix-env -iA bundix
I have the following default.nix
and the following Gemfile
running `nix-shell -p bundler bundix --run 'bundle && bundix' generates a gemfile.lock and a gemset.nix for me no problem
when I run nix-shell I get a build error
If I remove shopify-cli from the gemfile nix-shell works fine and I can use t from within it no problem
I think the relevant error from mkmf.log is
conftest.c:16:13: error: conflicting types for 'gzdopen'
but I have included the full log below just in caseThe mkm.log file for the failure is as follows:
any ideas on how to get this working and get shopify-cli gem accessible from within a nix-shell?
edit:
I am wondering I this snippet from the nix-shell output is a clue to something being wrong because I thought pkg-config should be provided by bundix by default (as is nokogiri I guess :shrug:
full nix-shell build output: