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

nix-shell is broken #299

Open
pete-murphy opened this issue Sep 26, 2022 · 0 comments · May be fixed by #300
Open

nix-shell is broken #299

pete-murphy opened this issue Sep 26, 2022 · 0 comments · May be fixed by #300
Labels
bug Something isn't working

Comments

@pete-murphy
Copy link
Collaborator

Describe the bug

Running nix-shell fails with

❯ nix-shell
error: Package ‘nodejs-10.24.1’ in /nix/store/5za5gvhd0yadn08mawndbkhdbh2ky2vn-nixpkgs-22.05pre363272.4d600814942/nixpkgs/pkgs/development/web/nodejs/v10.nix:11 is marked as insecure, refusing to evaluate.


Known issues:
 - This NodeJS release has reached its end of life. See https://nodejs.org/en/about/releases/.

You can install it anyway by allowing this package, using the
following methods:

a) To temporarily allow all insecure packages, you can use an environment
   variable for a single invocation of the nix tools:

     $ export NIXPKGS_ALLOW_INSECURE=1

 Note: For `nix shell`, `nix build`, `nix develop` or any other Nix 2.4+
 (Flake) command, `--impure` must be passed in order to read this
 environment variable.

b) for `nixos-rebuild` you can add ‘nodejs-10.24.1’ to
   `nixpkgs.config.permittedInsecurePackages` in the configuration.nix,
   like so:

     {
       nixpkgs.config.permittedInsecurePackages = [
         "nodejs-10.24.1"
       ];
     }

c) For `nix-env`, `nix-build`, `nix-shell` or any other Nix command you can add
   ‘nodejs-10.24.1’ to `permittedInsecurePackages` in
   ~/.config/nixpkgs/config.nix, like so:

     {
       permittedInsecurePackages = [
         "nodejs-10.24.1"
       ];
     }


(use '--show-trace' to show detailed location information)

I think even if NIXPKGS_ALLOW_INSECURE were enabled, this shell.nix references a version of the compiler that is out of date with the rest of the repo (hasn't been maintained since 0.14.2 release of the compiler 9b59c3e).

To Reproduce

Steps to reproduce the behavior:

  1. Run nix-shell from root directory of this repo

Expected behavior

Would expect to have a nix shell with a version of PureScript that is capable of compiling the cookbook recipes.

Screenshots

If applicable, add screenshots to help explain your problem.

Environment:

  • OS: [e.g. iOS]
  • Browser (if applicable):
  • Node Version:
  • Spago Version:
  • PureScript Version:

Additional context

Add any other context about the problem here.

@pete-murphy pete-murphy added the bug Something isn't working label Sep 26, 2022
@pete-murphy pete-murphy linked a pull request Sep 26, 2022 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant