Small fixes to Elixir env
This commit is contained in:
parent
5c8654b089
commit
c06ee195ac
|
@ -11,19 +11,23 @@
|
||||||
let
|
let
|
||||||
pkgs = import nixpkgs { inherit system; };
|
pkgs = import nixpkgs { inherit system; };
|
||||||
|
|
||||||
inherit (pkgs) darwin inotify-tools mkShell nodejs-18_x terminal-notifier;
|
inherit (pkgs)
|
||||||
inherit (pkgs.beam.packages.erlangR25) elixir;
|
darwin inotify-tools mkShell nodejs-18_x terminal-notifier;
|
||||||
|
inherit (pkgs.beam.packages.erlangR25) elixir elixir_ls;
|
||||||
inherit (pkgs.lib) optionals;
|
inherit (pkgs.lib) optionals;
|
||||||
inherit (pkgs.stdenv) isDarwin isLinux;
|
inherit (pkgs.stdenv) isDarwin isLinux;
|
||||||
|
|
||||||
linuxDeps = optionals isLinux
|
linuxDeps = optionals isLinux [ inotify-tools ];
|
||||||
[ inotify-tools ];
|
darwinDeps = optionals isDarwin [ terminal-notifier ]
|
||||||
darwinDeps = optionals isDarwin
|
++ (with darwin.apple_sdk.frameworks; [
|
||||||
[ terminal-notifier ] ++ (with darwin.apple_sdk.frameworks; [ CoreFoundation CoreServices ]);
|
CoreFoundation
|
||||||
|
CoreServices
|
||||||
|
]);
|
||||||
in {
|
in {
|
||||||
devShells = {
|
devShells = {
|
||||||
default = mkShell {
|
default = mkShell {
|
||||||
buildInputs = [ elixir nodejs-18_x ] ++ linuxDeps ++ darwinDeps;
|
buildInputs = [ elixir elixir_ls nodejs-18_x ] ++ linuxDeps
|
||||||
|
++ darwinDeps;
|
||||||
|
|
||||||
shellHook = ''
|
shellHook = ''
|
||||||
${elixir}/bin/mix --version
|
${elixir}/bin/mix --version
|
||||||
|
|
Loading…
Reference in a new issue