# What is the best way to change just one line of \`cmakeFlags\` with overlay?

**URL:** https://discourse.nixos.org/t/what-is-the-best-way-to-change-just-one-line-of-cmakeflags-with-overlay/65572
**Category:** Help
**Created:** [June 12, 2025, 3:52pm UTC](https://discourse.nixos.org/t/what-is-the-best-way-to-change-just-one-line-of-cmakeflags-with-overlay/65572 "2025-06-12T15:52:24Z")
**Posts on this page:** 1
**Showing post:** 6

<div class="post-metadata">

### Author: ![phaeseeKe5Ee](https://discourse.nixos.org/letter_avatar_proxy/v4/letter/p/f0a364/32.png) [@phaeseeKe5Ee](https://discourse.nixos.org/u/phaeseeKe5Ee)
#### Post date: [June 12, 2025, 5:31pm UTC](https://discourse.nixos.org/t/what-is-the-best-way-to-change-just-one-line-of-cmakeflags-with-overlay/65572/6 "2025-06-12T17:31:38Z")

</div>

Really good to know `applyPatches` exist, it really blow my mind.  
I also tested my proposed overlay method as xokdvium, both compile ok!  
but the overlay method make my GPU not found, do not know why  
Thank you so much for your help!

---

_[View the full topic](https://discourse.nixos.org/t/what-is-the-best-way-to-change-just-one-line-of-cmakeflags-with-overlay/65572)._
