about summary refs log tree commit diff
path: root/home/profiles/development
diff options
context:
space:
mode:
authorsefidel <contact@sefidel.net>2022-09-09 17:49:03 +0900
committersefidel <contact@sefidel.net>2022-09-09 21:32:31 +0900
commit9e6145c031b47fc37398b80dec1b4dfc0cfb5183 (patch)
treef27e3c50a0c25223931e7057616e456432007de9 /home/profiles/development
parent9e311725d4f6c68284e3999c01735ebe3665a14d (diff)
downloadnixrc-9e6145c031b47fc37398b80dec1b4dfc0cfb5183.tar.gz
nixrc-9e6145c031b47fc37398b80dec1b4dfc0cfb5183.zip
milestone: darwin!
feat(darwin/kompakt)!: support darwin

chore: reformat

feat(home/o32): manage neovim

feat(home/development): fix haskell lsp version mismatch

feat(darwin/*): stabilise
Diffstat (limited to 'home/profiles/development')
-rw-r--r--home/profiles/development/default.nix28
1 files changed, 16 insertions, 12 deletions
diff --git a/home/profiles/development/default.nix b/home/profiles/development/default.nix
index 21ff03d..4bc761c 100644
--- a/home/profiles/development/default.nix
+++ b/home/profiles/development/default.nix
@@ -2,8 +2,6 @@
 
 let
   cfg = config.profiles.development;
-
-  inherit (self.packages.x86_64-linux) codelldb;
 in
 {
   options.profiles.development = {
@@ -74,22 +72,22 @@ in
       ];
     };
 
+    programs.vscode = {
+      enable = if pkgs.stdenv.isDarwin then true else false;
+      extensions = with pkgs.vscode-extensions; [
+      ];
+    };
+
     home.packages = [
-      pkgs.bandwhich
       pkgs.bfg-repo-cleaner
       pkgs.diffoscopeMinimal
-      # clangd
-      pkgs.clang-tools
       pkgs.du-dust
-      pkgs.dnsutils
+      # pkgs.dnsutils # Err on darwin
       # TODO: https://github.com/cli/cli/issues/4955
       pkgs.gh
-      pkgs.ghc
-      pkgs.haskell-language-server
       pkgs.hyperfine
       pkgs.jq
       pkgs.lsof
-      pkgs.lldb
       pkgs.ouch
       pkgs.tcpdump
       pkgs.tokei
@@ -101,17 +99,23 @@ in
       pkgs.rust-analyzer
       pkgs.sd
       pkgs.tig
-      pkgs.valgrind
       pkgs.xh
-
       pkgs.cargo-play
       pkgs.cargo-edit
       pkgs.cargo-sort
       pkgs.cargo-diet
       pkgs.cargo-deny
+      pkgs.clang-tools
+      pkgs.lldb
+      pkgs.ghc
+      pkgs.stack
+      (pkgs.haskell-language-server.override { supportedGhcVersions = [ (builtins.replaceStrings [ "." ] [ "" ] pkgs.ghc.version) ]; })
+    ] ++ pkgs.lib.optionals (pkgs.stdenv.isLinux) [
+      # TODO: currently broken/doesn't support Darwin
+      pkgs.valgrind
     ];
 
-    # home.file.".codelldb".source = pkgs.vscode-extensions.vadimcn.vscode-lldb;
+    nixpkgs.allowedUnfree = [ "vscode" ];
   };
 }