From 3cd32d15ebe78b37c58c419a9552aca9b799dd32 Mon Sep 17 00:00:00 2001 From: Sam Balco Date: Mon, 16 Oct 2023 12:16:01 +0100 Subject: [PATCH] fix cabal shell --- flake.nix | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/flake.nix b/flake.nix index ad7722ba40..3bf07ac861 100644 --- a/flake.nix +++ b/flake.nix @@ -125,12 +125,12 @@ haskellPackages.fourmolu_0_12_0_0) ]; }; - cabal = with nixpkgsFor system; - haskell-backend.pkgSet.shellFor { - packages = haskell-backend.localPkgsSelector; - nativeBuildInputs = [ haskell.packages.ghc928.cabal-install z3 ]; - }; - + cabal = let pkgs = nixpkgsFor system; + in pkgs.haskell-backend.pkgSet.shellFor { + packages = pkgs.haskell-backend.localPkgsSelector; + nativeBuildInputs = + [ pkgs.haskell.packages.ghc928.cabal-install pkgs.z3 ]; + }; }); devShell =