xzfc / cached-nix-shell

Instant startup time for nix-shell
https://xzfc.github.io/cached-nix-shell/cached-nix-shell.1
The Unlicense
195 stars 16 forks source link

Nixpkgs config is ignored #13

Closed expipiplus1 closed 4 years ago

expipiplus1 commented 4 years ago

To reproduce:

$ cached-nix-shell -p haskellPackages.alga
cached-nix-shell: updating cache
error: Package ‘alga-0.2.2’ in /home/j/src/nixpkgs/pkgs/development/haskell-modules/hackage-packages.nix:25062 is marked as broken, refusing to evaluate.

a) For `nixos-rebuild` you can set
  { nixpkgs.config.allowBroken = true; }
in configuration.nix to override this.

b) For `nix-env`, `nix-build`, `nix-shell` or any other Nix command you can add
  { allowBroken = true; }
to ~/.config/nixpkgs/config.nix.

(use '--show-trace' to show detailed location information)
cached-nix-shell: nix-shell: exit code: 1

This happens for allowUnfree too

xzfc commented 4 years ago

Fixed in 422036e95e30b25f8c67e44a45f779044ce0407e.

expipiplus1 commented 4 years ago

Thanks again!