Skip to content
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

Problem starting the GHC Nix Shell #770

Closed
tristangodfrey opened this issue Jan 30, 2022 · 5 comments
Closed

Problem starting the GHC Nix Shell #770

tristangodfrey opened this issue Jan 30, 2022 · 5 comments

Comments

@tristangodfrey
Copy link

Apologies if this is a common issue covered somewhere but I was unable to find any relevant info in the docs/issues;

I get the following error when running nix-shell -A shells.ghc in the boilerplate project;

error: cannot coerce null to a string

       at /nix/store/76an527flbmhshw2mv8f9dh7gi38cz3b-source/pkgs/stdenv/generic/make-derivation.nix:192:34:

          191|         // (lib.optionalAttrs (!(attrs ? name) && attrs ? pname && attrs ? version)) {
          192|           name = "${attrs.pname}-${attrs.version}";
             |                                  ^
          193|         } // (lib.optionalAttrs (stdenv.hostPlatform != stdenv.buildPlatform && !dontAddHostSuffix && (attrs ? name || (attrs ? pname && attrs ? version)))) {

I'm assuming this is because a parameter is missing in a call to mkDerivation, does the shell depend on some external config that I should be injecting/defining in the host environment?

Thanks in advance (P.S., awesome project!)

@Ericson2314
Copy link
Member

While I don't know why it would matter in this case, note that we haven't tried testing with Nix >= 2.4 yet.

@anfelor
Copy link

anfelor commented Feb 15, 2022

I get the same error, when installing reflex-platform using ./reflex-platform/try-reflex following this document: https://github.com/reflex-frp/reflex-platform/blob/develop/docs/project-development.rst

I am on macOS Monterey 12.1 using Nix v2.6.0

@anfelor
Copy link

anfelor commented Feb 15, 2022

I managed to work around it by using Nix 2.3.16 using curl -L https://releases.nixos.org/nix/nix-2.3.16/install | arch -x86_64 /bin/bash

EDIT: This seems to cause a linker error ld: file not found: /usr/lib/system/libcache.dylib for architecture x86_64 when using nix-build though :(

@NickSeagull
Copy link

EDIT: This seems to cause a linker error ld: file not found: /usr/lib/system/libcache.dylib for architecture x86_64 when using nix-build though :(

Same over here, any progress on this?

@ali-abrar
Copy link
Member

Fixed in 1.2.0.0

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants