this my flake.nix
inputs = {
nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
flake-utils.url = "github:numtide/flake-utils";
};
outputs = {
self,
nixpkgs,
flake-utils,
}:
flake-utils.lib.eachDefaultSystem
(
system: let
pkgs = import nixpkgs {
inherit system;
config.allowBroken = true;
};
in {
# flake contents here
devShells = {
default = pkgs.mkShell {
buildInputs = with pkgs; [
pkg-config
cabal-install
ghc
haskellPackages.clash-ghc
haskellPackages.ghc-typelits-knownnat
];
};
};
}
);
}
when i run clash --interactive FIR.hs
it error, the FIR.hs is from https://raw.github.com/clash-lang/clash-compiler/master/examples/FIR.hs
❯ clash --interactive FIR.hs
when making flags consistent: warning:
Optimization flags are incompatible with the byte-code interpreter; optimization flags ignored.
Clashi, version 1.8.1 (using clash-lib, version 1.8.1):
https://clash-lang.org/ :? for help
<command line>: Could not find module ‘GHC.TypeLits.KnownNat.Solver’
Use -v (or `:set -v` in ghci) to see a list of the files searched for.