Error in example haskell.nix

may flake

{

This is a template created by hix init

inputs.haskellNix.url = “github:input-output-hk/haskell.nix”;
inputs.nixpkgs.follows = “haskellNix/nixpkgs-unstable”;
inputs.flake-utils.url = “github:numtide/flake-utils”;
outputs = { self, nixpkgs, flake-utils, haskellNix }:
let
supportedSystems = [
“x86_64-linux”
“x86_64-darwin”
];
in
flake-utils.lib.eachSystem supportedSystems (system:
let
overlays = [ haskellNix.overlay
(final: prev: {
hixProject =
final.haskell-nix.hix.project {
src = ./.;
evalSystem = “x86_64-linux”;
shell.tools = {
stack = {};
};
shell.buildInputs = with pkgs; [
zlib # Example of a C library dependency
OpenGL
freeglut
gl
GLUT
GLUtil
libGL
libGLU
];
};
})
];
pkgs = import nixpkgs { inherit system overlays; inherit (haskellNix) config; };
flake = pkgs.hixProject.flake {};
in flake // {
legacyPackages = pkgs;

    packages = flake.packages // { default = flake.packages."Axon-space-hs:exe:Axon-space-hs-exe"; };
  });

— Flake Local Nix Configuration ----------------------------

nixConfig = {
# This sets the flake to use the IOG nix cache.
# Nix should ask for permission before using it,
# but remove it here if you do not want it to.
extra-substituters = [“https://cache.iog.io”];
extra-trusted-public-keys = [“hydra.iohk.io:f/Ea+s+dFdN+3Y/G+FDgSq+a5NEWhJGzdjvKNGv0/EQ=”];
allow-import-from-derivation = “true”;
};
}

error when i use: nix develop.

error:
       … while evaluating the attribute 'packages'
         at /nix/store/fb8b7xjzk6hpym6c6cy49p8zc96my8i3-source/flake.nix:42:9:
           41|
           42|         packages = flake.packages // { default = flake.packages."Axon-space-hs:exe:Axon-space-hs-exe"; };
             |         ^
           43|       });

       … in the left operand of the update (//) operator
         at /nix/store/fb8b7xjzk6hpym6c6cy49p8zc96my8i3-source/flake.nix:42:35:
           41|
           42|         packages = flake.packages // { default = flake.packages."Axon-space-hs:exe:Axon-space-hs-exe"; };
             |                                   ^
           43|       });

       (stack trace truncated; use '--show-trace' to show the full, detailed trace)
   `error: Cannot build '/nix/store/5xd8v728rwzpw1ad3vw7nnwa4kzya8az-stack-repos.drv'.
   Reason: builder failed with exit code 1.
   Output paths:
     /nix/store/30ns6rz21c853p80x44a62pa6068pq03-stack-repos
   Last 5 log lines:
   > substituteStream() in derivation stack-repos: WARNING: '--replace' is deprecated, use --replace-{fail,warn,quiet}. (file 'stack.yaml')
   > substituteStream() in derivation stack-repos: WARNING: pattern \#\ nix-sha256: doesn't match anything in file 'stack.yaml'
   > stack-repos: AesonException "Error in $: key \"resolver\" not found"
   > CallStack (from HasCallStack):
   >   error, called at lib/StackRepos.hs:36:15 in nix-tools-0.1.0.0-Hsb4lIKiGVOCO64PwH8LnT:StackRepos
   For full logs, run:
     nix log /nix/store/5xd8v728rwzpw1ad3vw7nnwa4kzya8az-stack-repos.drv`