diff --git a/flake.nix b/flake.nix index 4ddf406..9f3818b 100644 --- a/flake.nix +++ b/flake.nix @@ -17,29 +17,30 @@ pkgs.haskell.lib.doJailbreak (pkg.overrideAttrs (_: { meta = { }; })); packageName = "affection"; - in { + in rec { packages.${packageName} = # (ref:haskell-package-def) - haskellPackages.callCabal2nix packageName self rec { + haskellPackages.callCabal2nixWithOptions packageName self "--flag examples" rec { # Dependency overrides go here }; defaultPackage = self.packages.${system}.${packageName}; - devShell = pkgs.mkShell { - buildInputs = with haskellPackages; [ - haskell-language-server - ghcid - cabal-install - ]; - nativeBuildInputs = with pkgs; [ - pkg-config - glib - SDL2 - freetype - glew - ]; - inputsFrom = builtins.attrValues self.packages.${system}; - }; + devShell = defaultPackage.env; + #devShell = pkgs.mkShell { + # buildInputs = with haskellPackages; [ + # haskell-language-server + # ghcid + # cabal-install + # ]; + # nativeBuildInputs = with pkgs; [ + # pkg-config + # glib + # SDL2 + # freetype + # glew + # ]; + # inputsFrom = builtins.attrValues self.packages.${system}; + #}; }); }