Lobsters
Read post

Nix Overrides That Expire Themselves

A practical Nix pattern for writing package overrides that warn you when they've become obsolete. Using `lib.warnIf` and `lib.versionAtLeast`, an override compares the pinned nixpkgs version against the required version and prints a warning during evaluation when nixpkgs has caught up. The same technique applies to overrides that mark packages as broken — `lib.warnIfNot` fires when the broken flag is eventually removed upstream, prompting cleanup of the workaround.

    #haskell
Yesterday•2m read time•From jezenthomas.com
Post cover image
13 Impressions
Lobsters's image
Lobsters

Lobsters is a community-driven platform for sharing and discussing links to articles, tutorials, and...

1.9K Followers

•

36.1K Upvotes

Would you recommend this post?

Copy link
WhatsApp
Facebook
X
New Squad
  • © 2026 Daily Dev Ltd.
  • Guidelines
  • Explore
  • Tags
  • Sources
  • Squads
  • Leaderboard