Re: [PATCH] Add wrapper scripts to run make in a Nix shell

Alyssa Ross
2025-08-08T15:01:02Z

[-- Attachment #1: Type: text/plain, Size: 630 bytes --]

Demi Marie Obenour <demiobenour@gmail.com> writes:

> It is very easy to forget to do this, and the results are confusing at
> best and wrong at worst. Add wrapper scripts that get it right and also
> automatically change to the correct directory for you.

I think you'd probably be better setting up nix-direnv or something. It
makes it so that you can't forget to be in the shell, but also means you
can just run make, rather than having to remember to run some other
script. It also comes with caching I think, so if that works you'll
probably save quite a bit of time over doing a Nix evaluation for every
make invocation.