chore: fix flake.nix rebuild detection
Better source change detection using find instead of single file check. Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
@@ -31,7 +31,7 @@
|
||||
|
||||
shellHook = ''
|
||||
# Build and add lux to PATH
|
||||
if [ ! -f target/release/lux ] || [ Cargo.toml -nt target/release/lux ] || [ src/main.rs -nt target/release/lux ]; then
|
||||
if [ ! -f target/release/lux ] || [ Cargo.toml -nt target/release/lux ] || [ -n "$(find src -name '*.rs' -newer target/release/lux 2>/dev/null | head -1)" ]; then
|
||||
echo "Building lux..."
|
||||
cargo build --release
|
||||
fi
|
||||
|
||||
Reference in New Issue
Block a user