diff --git a/README.md b/README.md index 0611e13..c7b0978 100644 --- a/README.md +++ b/README.md @@ -65,7 +65,7 @@ With the patch file, you can then apply it on the target package like this: ```nix with import {}; libnvidia-container.overrideAttrs (oldAttrs: { - patches = (lib.attrsets.attrByPath ["patches"] [] oldAttrs) ++ [./bugfix.patch]; + patches = oldAttrs.patches or [] ++ [./bugfix.patch]; }) ```