mirror of
https://github.com/NixOS/nix-pills
synced 2024-09-19 04:00:13 -04:00
commit
db12ca22e2
|
@ -14,7 +14,7 @@
|
||||||
<section>
|
<section>
|
||||||
<title>Overriding a package</title>
|
<title>Overriding a package</title>
|
||||||
<para>
|
<para>
|
||||||
I recall the override design pattern from the <link linkend="override-design-pattern">nix pill 14</link>. Instad of calling a function with parameters directly, we make the call (function + parameters) overridable.
|
I recall the override design pattern from the <link linkend="override-design-pattern">nix pill 14</link>. Instead of calling a function with parameters directly, we make the call (function + parameters) overridable.
|
||||||
</para>
|
</para>
|
||||||
<para>
|
<para>
|
||||||
We put the override function in the returned attribute set of the original function call.
|
We put the override function in the returned attribute set of the original function call.
|
||||||
|
|
Loading…
Reference in a new issue