mirror of
https://github.com/ryan4yin/nixos-and-flakes-book.git
synced 2025-06-21 04:07:41 +02:00
Update overriding.md (#217)
This commit is contained in:
parent
839c1de3d8
commit
0fc0924a8c
@ -81,7 +81,7 @@ helloWithDebug = pkgs.hello.overrideAttrs (finalAttrs: previousAttrs: {
|
||||
});
|
||||
```
|
||||
|
||||
上面这个例子中,`doCheck` 就是一个新的 Derivation,它的 `doCheck` 参数被改写为 `false`,而
|
||||
上面这个例子中,`helloWithDebug` 就是一个新的 Derivation,它的 `doCheck` 参数被改写为 `false`,而
|
||||
其他参数则沿用原来的值。
|
||||
|
||||
除了包源码中自定义的参数值外,我们也可以通过 `overrideAttrs` 直接改写
|
||||
|
Loading…
x
Reference in New Issue
Block a user