# Ideas for caching nix in CI

**URL:** https://discourse.nixos.org/t/ideas-for-caching-nix-in-ci/72867
**Category:** Uncategorized
**Created:** [December 3, 2025, 10:34am UTC](https://discourse.nixos.org/t/ideas-for-caching-nix-in-ci/72867 "2025-12-03T10:34:01Z")
**Posts on this page:** 1
**Showing post:** 5

<div class="post-metadata">

### Author: ![waffle8946](https://discourse.nixos.org/user_avatar/discourse.nixos.org/waffle8946/32/27221_2.png) [@waffle8946](https://discourse.nixos.org/u/waffle8946)
#### Post date: [December 4, 2025, 12:52am UTC](https://discourse.nixos.org/t/ideas-for-caching-nix-in-ci/72867/5 "2025-12-04T00:52:29Z")

</div>

> [@Per file derivations with C++](https://discourse.nixos.org/t/per-file-derivations-with-c/19409/2):
>
> You may be interested in [GitHub - edolstra/nix-ccache: A flake to remotely build and/or cache C/C++ compilation, using recursive Nix](https://github.com/edolstra/nix-ccache), which provides a gcc wrapper that runs the input through the preprocessor and then uses a Nix derivation to perform the actual compilation. This enables caching and distributed builds similar to ccache (hence the name - it doesn’t actually use ccache). There is also the ancient [https://github.com/edolstra/nix-make](https://github.com/edolstra/nix-make) which provides functions for building C/C++ sour…

---

_[View the full topic](https://discourse.nixos.org/t/ideas-for-caching-nix-in-ci/72867)._
