From 4b903df160bc9378bc224653323d873c26fe6a22 Mon Sep 17 00:00:00 2001 From: Graham McIntire Date: Sat, 7 Feb 2026 12:31:50 -0600 Subject: [PATCH] fix: Use stdenv.isLinux for platform check Use stdenv.isLinux instead of lib.isLinux to properly check if inotify-tools should be included. This fixes the undefined variable error when evaluating the flake on macOS. --- nix/shell.nix | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/nix/shell.nix b/nix/shell.nix index 7d0df44b..073d297d 100644 --- a/nix/shell.nix +++ b/nix/shell.nix @@ -1,5 +1,6 @@ { lib, + stdenv, mkShell, writeShellScriptBin, # Elixir/Erlang @@ -15,6 +16,7 @@ pkg-config, # Development tools git-lfs, + inotify-tools, # LSPs and formatters elixir-ls, nixfmt, @@ -221,7 +223,7 @@ mkShell { # Service management scripts startServices stopServices - ] ++ lib.optionals lib.isLinux [ + ] ++ lib.optionals stdenv.isLinux [ # Linux-only tools inotify-tools # For Mix file watching ];