Can do something similar for makefile dependencies. I wrote a little about it in https://t-ravis.com/post/nix/nix-make/ (using nix-shell) but basically:
The giant amount of magic going on behind the scenes of even a simple Actions workflow is one of the main reasons I prefer GitLab and the like. You control the container and the commands, and can easily run things locally. Even easier if you’re just using Nix, where you don’t even need the container. Example.
Even better would be to have a step that “activates” the nix environment.
PATH
isn’t the only environment variablenix develop
sets, especially when compilers and things like pkg-config are involvedCan do something similar for makefile dependencies. I wrote a little about it in https://t-ravis.com/post/nix/nix-make/ (using nix-shell) but basically:
Oh that’s a nice trick
Some links are broken, for example the one to action.yml
Came to mention this as well. The
flakes
link actually directs to a Notion page containing the same post…The giant amount of magic going on behind the scenes of even a simple Actions workflow is one of the main reasons I prefer GitLab and the like. You control the container and the commands, and can easily run things locally. Even easier if you’re just using Nix, where you don’t even need the container. Example.