Skip to content

Commit

Permalink
Add gstat wrapper script
Browse files Browse the repository at this point in the history
Running nix develop produces a valid environment, but trying to build a
firmware results in this error:

  ** (Mix) gstat (coreutils) is required by the Nerves tooling.

Nerves uses a preflight check on MacOS and looks for gstat.

The problem is that on Nix the coreutils package doesn't prefix utils
with g as there's no risk of clashing with system built-ins.

This commit works around the issue by creating a gstat wrapper script
and adding it to the PATH, so that everything can work as expected.
  • Loading branch information
Claudio Ortolina committed May 4, 2023
1 parent 1ff9cd4 commit 09e4481
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions bin/gstat
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
#!/usr/bin/env bash

stat "$@"

0 comments on commit 09e4481

Please sign in to comment.