cached-nix-shell icon indicating copy to clipboard operation
cached-nix-shell copied to clipboard

macOS support

Open xzfc opened this issue 5 years ago • 7 comments

It can be done by adapting trace-nix.c to use DYLD_INSERT_LIBRARIES instead of LD_PRELOAD.

Alternative solutions: adding tracing support to nix itself or adopting logged-evaluation.nix from lorri.

xzfc avatar Jan 08 '20 14:01 xzfc

https://github.com/jacereda/fsatrace has a similar implementation and supports macOS (more or less)

zimbatm avatar Jan 17 '20 10:01 zimbatm

Bump. I would need this for darwin but I am not familiar with rust at all.

SuperSandro2000 avatar Jan 03 '21 02:01 SuperSandro2000

Bump on this one

olebedev avatar May 24 '22 04:05 olebedev

I think this project could be combined with https://github.com/numtide/nix-eval-cache which is a bit more generic

zimbatm avatar May 24 '22 12:05 zimbatm

It sounds a bit fragile to be based on timestamps of nix files only, no?

olebedev avatar May 27 '22 07:05 olebedev

It's a trade-off. It's quite rare for files to change and not their metadata. A more precise model would be to hash the content of the files, but that makes the check even more expensive.

zimbatm avatar May 27 '22 14:05 zimbatm

Took a shot at it: https://github.com/xzfc/cached-nix-shell/pull/25

uri-canva avatar Aug 05 '22 00:08 uri-canva