From 523265b2dcbf2a9800cf21f8235147cb908d85af Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Amedeo=20Moln=C3=A1r?= Date: Thu, 20 Apr 2023 10:33:18 +0200 Subject: [PATCH] rework flake to include haskell build inputs --- flake.nix | 15 ++++----------- 1 file changed, 4 insertions(+), 11 deletions(-) diff --git a/flake.nix b/flake.nix index 607ed9b..1eef367 100644 --- a/flake.nix +++ b/flake.nix @@ -40,21 +40,14 @@ }; }; - #devShell = packages.${packageName}.env; - devShell = pkgs.mkShell { + devShell = haskellPackages.shellFor { + packages = p: [ defaultPackage ]; + withHoogle = true; buildInputs = with haskellPackages; [ haskell-language-server ghcid cabal-install - ]; - nativeBuildInputs = with pkgs; [ - pkg-config - glib - SDL2 - freetype - glew - ]; - inputsFrom = builtins.attrValues self.packages.${system}; + ] ++ (builtins.attrValues self.packages.${system}); }; }); }