Skip to content

Instantly share code, notes, and snippets.

@shadow-fox
Created February 10, 2020 16:55
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save shadow-fox/d7a126226baa9b9548ca4e986fb73948 to your computer and use it in GitHub Desktop.
Save shadow-fox/d7a126226baa9b9548ca4e986fb73948 to your computer and use it in GitHub Desktop.
warning: Nix search path entry '/nix/var/nix/profiles/per-user/root/channels/nixpkgs' does not exist, ignoring
warning: Nix search path entry '/nix/var/nix/profiles/per-user/root/channels' does not exist, ignoring
error: Package ‘stylish-haskell-0.10.0.0’ in /nix/store/h2bwswpnh56cnr99rxvvjckgm17km0ja-nixpkgs-20.03pre211462.0c960262d15/nixpkgs/pkgs/development/haskell-modules/hackage-packages.nix:234135 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)
{
packageOverrides = super: let self = super.pkgs; in
{
allowBroken = true;
haskellEnv = self.haskell.packages.ghc865.ghcWithHoogle
(haskellPackages: with haskellPackages; [
# libraries
# editor tools
stylish-haskell hlint hindent brittany prettyprinter prettyprinter-ansi-terminal
ghcid ghc-mod hpack hasktags
# tools
cabal-install
]);
};
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment