Skip to content

Commit

Permalink
feat(flake): add linux/darwin filesystem handling libs
Browse files Browse the repository at this point in the history
  • Loading branch information
ProducerMatt committed Aug 25, 2024
1 parent a8f9ecf commit 46f3f1b
Showing 1 changed file with 21 additions and 1 deletion.
22 changes: 21 additions & 1 deletion flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down Expand Up @@ -125,7 +144,8 @@

pkgs.nixd
]
++ pc-hooks.enabledPackages;
++ pc-hooks.enabledPackages
++ systemPackages;

# define shell startup command
sh-hook = ''
Expand Down

0 comments on commit 46f3f1b

Please sign in to comment.