diff --git a/index.html b/index.html index 02b4834..fe876d9 100644 --- a/index.html +++ b/index.html @@ -4861,26 +4861,24 @@ together with the high-level workflow described in 18 19 20 -21 -22
{ +21
{ inputs = { nixpkgs.url = "github:NixOS/nixpkgs"; flake-utils.url = "github:numtide/flake-utils"; - pandoc-columns.url = "/home/amy/github/pandoc-columns"; - }; - - outputs = { self, nixpkgs, flake-utils, pandoc-columns }: - flake-utils.lib.eachDefaultSystem (system: - let + }; + + outputs = { self, nixpkgs, flake-utils, pandoc-columns }: + flake-utils.lib.eachDefaultSystem (system: + let pkgs = import nixpkgs { inherit system; }; - customGhc = pkgs.haskellPackages.ghcWithPackages (p: with p; [ pandoc-columns ]); - in - { + customGhc = pkgs.haskellPackages.ghcWithPackages (p: with p; [ extra ]); + in + { devShells = rec { default = pkgs.mkShell { - buildInputs = [ customGhc ]; - }; - }; + buildInputs = [ customGhc ]; + }; + }; } ); } @@ -4923,10 +4921,11 @@ and line 17 uses the custom GHC as a build input for this flake. <no location info>: error: [GHC-49196] Can't find Main.hs *** Exception: ExitFailure 1 $ nix develop -$ runghc Main.hs # Works in development environemnt +error: Path 'source/recipes/devshell/haskell-pkg/tempwork' in the repository "/home/amy/codeberg/nix-book" is not tracked by Git. -<no location info>: error: [GHC-49196] Can't find Main.hs -*** Exception: ExitFailure 1+ To make it visible to Nix, run: + + git -C "/home/amy/codeberg/nix-book" add "source/recipes/devshell/haskell-pkg/tempwork"