From 46f3f1ba80a98cdb9a6a204ad9fcb32849de7bef Mon Sep 17 00:00:00 2001 From: Producer Matt <58014742+ProducerMatt@users.noreply.github.com> Date: Sun, 25 Aug 2024 11:59:34 -0500 Subject: [PATCH] feat(flake): add linux/darwin filesystem handling libs --- flake.nix | 22 +++++++++++++++++++++- 1 file changed, 21 insertions(+), 1 deletion(-) diff --git a/flake.nix b/flake.nix index 43136af..6644df7 100644 --- a/flake.nix +++ b/flake.nix @@ -25,6 +25,25 @@ system: let pkgs = nixpkgs.legacyPackages.${system}; + inherit (pkgs) lib; + + systemPackages = + lib.optionals pkgs.stdenv.isLinux [ + # For ExUnit Notifier on Linux. + pkgs.libnotify + + # For file_system on Linux. + pkgs.inotify-tools + ] + ++ lib.optionals pkgs.stdenv.isDarwin [ + # For ExUnit Notifier on macOS. + pkgs.terminal-notifier + + # For file_system on macOS. + pkgs.darwin.apple_sdk.frameworks.CoreFoundation + pkgs.darwin.apple_sdk.frameworks.CoreServices + ]; + ######################## # Erlang/Elixir versions @@ -125,7 +144,8 @@ pkgs.nixd ] - ++ pc-hooks.enabledPackages; + ++ pc-hooks.enabledPackages + ++ systemPackages; # define shell startup command sh-hook = ''