From c06ee195ac383946702afd8ca911d0d0b6b4cf03 Mon Sep 17 00:00:00 2001 From: Luc Perkins Date: Fri, 29 Jul 2022 00:58:11 +0200 Subject: [PATCH] Small fixes to Elixir env --- elixir/flake.nix | 18 +++++++++++------- 1 file changed, 11 insertions(+), 7 deletions(-) diff --git a/elixir/flake.nix b/elixir/flake.nix index fad6978..1fd681e 100644 --- a/elixir/flake.nix +++ b/elixir/flake.nix @@ -11,19 +11,23 @@ let pkgs = import nixpkgs { inherit system; }; - inherit (pkgs) darwin inotify-tools mkShell nodejs-18_x terminal-notifier; - inherit (pkgs.beam.packages.erlangR25) elixir; + inherit (pkgs) + darwin inotify-tools mkShell nodejs-18_x terminal-notifier; + inherit (pkgs.beam.packages.erlangR25) elixir elixir_ls; inherit (pkgs.lib) optionals; inherit (pkgs.stdenv) isDarwin isLinux; - linuxDeps = optionals isLinux - [ inotify-tools ]; - darwinDeps = optionals isDarwin - [ terminal-notifier ] ++ (with darwin.apple_sdk.frameworks; [ CoreFoundation CoreServices ]); + linuxDeps = optionals isLinux [ inotify-tools ]; + darwinDeps = optionals isDarwin [ terminal-notifier ] + ++ (with darwin.apple_sdk.frameworks; [ + CoreFoundation + CoreServices + ]); in { devShells = { default = mkShell { - buildInputs = [ elixir nodejs-18_x ] ++ linuxDeps ++ darwinDeps; + buildInputs = [ elixir elixir_ls nodejs-18_x ] ++ linuxDeps + ++ darwinDeps; shellHook = '' ${elixir}/bin/mix --version