I have code to remove all patches, but I need to specifically filter out foo.patch in…
- User
I have code to remove all patches, but I need to specifically filter out foo.patch in this code:
myEmacsBase = my-emacs-git.overrideAttrs(old: { buildInputs = old.buildInputs ++ [ pkgs.xorg.libXrandr.dev # this was for emacs being able to detect external monitors ]; patches = []; });
Assistant
To filter out
foo.patchfrom your code, you can modify thepatchesattribute in your override by checking if the patch being added is notfoo.patch. Here's an example of how you could modify your code:myEmacsBase = my-emacs-git.overrideAttrs(old: { buildInputs = old.buildInputs ++ [ pkgs.xorg.libXrandr.dev # this was for emacs being able to detect external monitors ]; patches = old.patches.filter(patch => !patch.endsWith("foo.patch")); });
Other models, same or similar prompt
Responses were produced in different, uncontrolled contexts (system prompts, settings, prior turns). This is not a benchmark.