From 0286301fc27ff5ac6382d1024a09d6c606792a6e Mon Sep 17 00:00:00 2001 From: nek0 Date: Sun, 10 Dec 2023 15:12:11 +0100 Subject: [PATCH] make proper dev-shell including vim --- flake.nix | 3 ++- shell.nix | 11 ++++++++++- 2 files changed, 12 insertions(+), 2 deletions(-) diff --git a/flake.nix b/flake.nix index 9e16972..302c16a 100644 --- a/flake.nix +++ b/flake.nix @@ -27,7 +27,8 @@ devShell = haskellPackages.shellFor { packages = p: [ defaultPackage ]; withHoogle = true; - buildInputs = with haskellPackages; [ + buildInputs = with haskellPackages; with pkgs; [ + vim haskell-language-server ghcid cabal-install diff --git a/shell.nix b/shell.nix index 28e5181..1d86862 100644 --- a/shell.nix +++ b/shell.nix @@ -5,4 +5,13 @@ let pkgs.haskellPackages.callCabal2nix "chaoszone" (gitignore ./.) {}; gitignore = dir: pkgs.nix-gitignore.gitignoreSource [] dir; in - chaoszone_cz.env + pkgs.haskellPackages.shellFor { + packages = p: [ chaoszone_cz ]; + withHoogle = true; + buildInputs = with pkgs.haskellPackages; with pkgs; [ + haskell-language-server + ghcid + cabal-install + vim + ]; + }