{ description = "Development environments for this project"; inputs = { nixpkgs.url = "github:nixos/nixpkgs?ref=nixos-unstable"; cspell-dict-fr-fr = { url = "https://registry.npmjs.org/@cspell/dict-fr-fr/-/dict-fr-fr-2.3.2.tgz"; flake = false; }; }; outputs = { nixpkgs, cspell-dict-fr-fr, ... }: let systems = [ "x86_64-linux" "aarch64-darwin" ]; in { devShells = builtins.listToAttrs ( builtins.map ( system: let pkgs = import nixpkgs { inherit system; }; shell = pkgs.mkShell { packages = [ pkgs.go pkgs.deno # Required for netlify-cli but takes forever to build pkgs.netlify-cli pkgs.go-task pkgs.hugo # Linters pkgs.markdownlint-cli pkgs.lychee pkgs.cspell pkgs.lychee ]; shellHook = '' printf '{ "import": [ "%s/cspell-ext.json" ] }\n' \ "${cspell-dict-fr-fr}" > .cspell-dict-paths.json ''; }; in { name = system; value = { default = shell; }; } ) systems ); }; }