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

Error: cannot coerce a set to a string #192

Open
the-dr-lazy opened this issue Mar 24, 2020 · 3 comments
Open

Error: cannot coerce a set to a string #192

the-dr-lazy opened this issue Mar 24, 2020 · 3 comments

Comments

@the-dr-lazy
Copy link

the-dr-lazy commented Mar 24, 2020

IDK that this is related to #188 or not!
BTW, I'm using Nix 2.3.3 and snack build inside nix-shell exits with the following error:

error: cannot coerce a set to a string, at /nix/store/43mrc82ajh3nxdjb7k9z6vslpjb2fjdx-source/lib/strings.nix:369:26
@nmattia
Copy link
Owner

nmattia commented Mar 24, 2020

Thanks for reporting! Can you share your config files?

@the-dr-lazy
Copy link
Author

snack.nix

rec {
  ghc-version = "ghc865";
  ghcWithPackages = pkgs.haskellPackages.ghcWithPackages;
  pkgs = import ./nix {};
}

nix/default.nix

{ sources ? import ./sources.nix }:
let
  pkgs = import sources.nixpkgs { inherit config; overlays = [ overlay ]; };

  overlay = _: pkgs: {
    niv = (import sources.niv {}).niv;
    snack = (import sources.snack).snack-exe;
  };

  config = {
    packageOverrides = pkgs: {
      haskellPackages = pkgs.haskell.packages.ghc865.override {
        overrides = self: super: {
          xxx = super.callCabal2nix "xxx" ../. {};
          hasql-pool = pkgs.haskell.lib.dontCheck pkgs.haskellPackages.hasql-pool;
          record-dot-preprocessor = super.callCabal2nix "record-dot-preprocessor" sources.record-dot-preprocessor {};
        };
      };
    };
  };
in pkgs

@codygman
Copy link

codygman commented Apr 2, 2020

I shared my config if this is related.

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

3 participants