sander

Results 201 comments of sander

PR: https://github.com/haskell-nix/hnix-store/pull/286

xcode looks for the `DEVELOPER_DIR` environment variable. You can try adding `unset DEVELOPER_DIR` to `enterShell`. Not sure if there's a more elegant way of removing the `apple-sdk` from the `stdenv`...

Another way: devenv.nix: ```nix { pkgs, lib, config, inputs, ... }: { stdenv = pkgs.stdenv.override { extraBuildInputs = [ ]; }; } ```

> I switched to using devenv with flakes and it seems to be working, idk why it works differently with this. Functionally the same thing. The only difference would be...

@kourtni, the issue isn't the `echo`, it's the `&&`. We set the shell to exit early on errors with `set -e`, but this flag does not apply in a few...

@LorenzBischof, this is fine as it is. I don't particularly like coupling ourselves to the flake API, but this feels like a useful feature for some and we can re-implement...

> I do sometimes run pre-commit run --all-files directly from my cmd, could that be an issue? That's completely fine. We don't patch pre-commit, despite what the maintainers of pre-commit...

If anyone encounters this, please save a copy of `.git/hooks` before trying to fix the error. The files in there would really help debug this issue.

@jhh, thank you! First, a bit of background on what I've figured out about this. If a hook exists, pre-commit will check whether it contains one of its hardcoded hashes/ids....