From cc81a3e25b357a9e25740067e2bf7e8a6b9ca477 Mon Sep 17 00:00:00 2001 From: Florian RICHER Date: Fri, 8 Mar 2024 20:00:46 +0100 Subject: [PATCH] Update flake --- flake.nix | 18 ++++++++++-------- 1 file changed, 10 insertions(+), 8 deletions(-) diff --git a/flake.nix b/flake.nix index d727289..5e55472 100644 --- a/flake.nix +++ b/flake.nix @@ -14,18 +14,20 @@ customElixir = pkgs.elixir_1_16.override { erlang = pkgs.erlang_26; }; + + basePackages = [ + customElixir + pkgs.git + ]; + + buildInputs = basePackages + ++ pkgs.lib.optionals pkgs.stdenv.isLinux [ pkgs.inotify-tools ] + ++ pkgs.lib.optionals pkgs.stdenv.isDarwin (with pkgs.darwin.apple_sdk.frameworks; [ pkgs.CoreFoundation pkgs.CoreServices ]); in { devShells = rec { default = pkgs.mkShell { - nativeBuildInputs = with pkgs; [ - customElixir - ]; - - buildInputs = with pkgs; [ - git - inotify-tools - ]; + buildInputs = buildInputs; }; }; });