Repository: eza-community/eza (language: rust)

Issue:
MacOS flake support
On latest main:

```text
error: linking with `cc` failed: exit status: 1
  |
  = note: LC_ALL="C" PATH="<removed for privacy>" "-Wl,-dead_strip" "-nodefaultlibs"
  = note: ld: framework not found Security
          clang-11: error: linker command failed with exit code 1 (use -v to see invocation)
          

error: could not compile `eza` (bin "eza") due to previous error
```

Someone on an apple computer would need to bisect this.


Discussion / hints:
I have a theory that this was related to the Nix flake on MacOS being weird, seeing how MacOS tests pass.

Fix patch:
diff --git a/flake.nix b/flake.nix
index f61664d4e..e725ffb50 100644
--- a/flake.nix
+++ b/flake.nix
@@ -32,6 +32,7 @@
         };
 
         treefmtEval = treefmt-nix.lib.evalModule pkgs ./treefmt.nix;
+        buildInputs = with pkgs; lib.optionals stdenv.isDarwin [libiconv darwin.apple_sdk.frameworks.Security];
       in rec {
         # For `nix fmt`
         formatter = treefmtEval.config.build.wrapper;
@@ -41,24 +42,28 @@
           default = naersk'.buildPackage {
             src = ./.;
             doCheck = true; # run `cargo test` on build
+            inherit buildInputs;
           };
 
           # Run `nix build .#check` to check code
           check = naersk'.buildPackage {
             src = ./.;
             mode = "check";
+            inherit buildInputs;
           };
 
           # Run `nix build .#test` to run tests
           test = naersk'.buildPackage {
             src = ./.;
             mode = "test";
+            inherit buildInputs;
           };
 
           # Run `nix build .#clippy` to lint code
           clippy = naersk'.buildPackage {
             src = ./.;
             mode = "clippy";
+            inherit buildInputs;
           };
         };
 


Test patch: