<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>打补丁 on PlumePHP</title><link>https://plumephp.com/tags/%E6%89%93%E8%A1%A5%E4%B8%81/</link><description>Recent content in 打补丁 on PlumePHP</description><generator>Hugo</generator><language>zh-CN</language><lastBuildDate>Wed, 30 Sep 2026 10:00:00 +0800</lastBuildDate><atom:link href="https://plumephp.com/tags/%E6%89%93%E8%A1%A5%E4%B8%81/index.xml" rel="self" type="application/rss+xml"/><item><title>Nix 包打补丁与版本定制：overrideAttrs、override 与源码补丁</title><link>https://plumephp.com/nix-package-patching/</link><pubDate>Wed, 30 Sep 2026 10:00:00 +0800</pubDate><guid>https://plumephp.com/nix-package-patching/</guid><description>&lt;h2 id="引言"&gt;引言&lt;/h2&gt;
&lt;p&gt;用 Nix 最大的自由是「&lt;strong&gt;任何包都能定制&lt;/strong&gt;」——上游版本老、想打自己的补丁、想把某个依赖换成别的版本，都不用等发行版更新。这一切靠 &lt;code&gt;override&lt;/code&gt; 与 &lt;code&gt;overrideAttrs&lt;/code&gt; 两个机制。本文讲清它们的区别、怎么给包打源码补丁、怎么替换依赖、怎么在 flake 里覆盖 nixpkgs，以及 override 的常见陷阱。&lt;/p&gt;</description></item></channel></rss>