Skip to content

Nix Shell error: Package ‘retrie-0.1.1.1’ is marked as broken, refusing to evaluate #325

Closed
@sir4ur0n

Description

@sir4ur0n

On a fresh master, when running nix-shell, it fails because of retrie being marked as broken:

$ nix-shell
error: Package ‘retrie-0.1.1.1’ in /nix/store/p49mi5i4r35n1m6kx07lkxp07p8hh8hs-source/pkgs/development/haskell-modules/hackage-packages.nix:214783 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)

Edit: FYI changing the following in shell.nix makes it work, but I am unsure if this is a good idea...

-   nixpkgs ? import sources.nixpkgs {},
+   nixpkgs ? import sources.nixpkgs {config.allowBroken = true;},

Metadata

Metadata

Assignees

No one assigned

    Labels

    CIContinuous integrationcan-workaroundos: nixostype: bugSomething isn't right: doesn't work as intended, documentation is missing/outdated, etc..

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions