1
0
Fork 0
mirror of https://github.com/LnL7/nix-darwin.git synced 2025-03-31 04:04:45 +00:00
nix-darwin/modules
Marwan Aljubeh e62b83a934
Fix system.patches
Currently, `system.patches` doesn't work because it will attempt to first detect if the patch has already been applied by checking if it can be applied in reverse.

However, when that happens, `patch` detects that the supplied patch is incorrectly reversed and attempts to ask the user if they want to "Ignore -R":

```
Unreversed (or previously applied) patch detected!  Ignore -R? [y]
```

Because the output is piped to `/dev/null` the user will basically see nothing and `darwin-rebuild switch` will hang until the user presses "Enter" (possibly to check if the terminal is frozen). At which point, patch will ignore the --reverse and exit successfully, preventing the patch from being applied at all.

This change fixes that bug by using `--force` which tells patch that we know what we're doing and prevents it from prompting the user if they want to ignore `--reverse`.
2023-03-07 12:53:20 +00:00
..
documentation modules/documentation/default.nix: Fix args warning 2022-01-02 12:45:39 +01:00
environment Add system terminfo to TERMINFO_DIRS by default 2022-10-19 15:09:28 -06:00
examples rename the nixFlakes reference 2022-09-25 15:43:15 -04:00
fonts fixes #559, #485: workaround for broken fontrestore on Ventura 2022-10-25 22:01:55 +01:00
launchd Merge pull request #499 from Enzime/karabiner-elements 2022-09-19 13:32:50 +01:00
lib etc: allow replacing files with known content 2020-06-17 19:23:31 +02:00
misc Move build user options to nix module to improve overlap with NixOS 2022-08-16 10:41:51 -07:00
networking Add separate options for ComputerName, HostName, and LocalHostName 2020-08-31 21:01:47 -07:00
nix nix: fix mandatoryFeatures in nix.buildMachines 2022-10-03 12:33:21 +09:00
programs add escape to shell aliases 2022-06-30 19:21:36 +02:00
security rename runCommandNoCC 2022-09-25 14:12:08 -04:00
services services.hercules-ci-agent: Explain default concurrentTasks is core count 2022-12-29 19:01:54 +01:00
system Fix system.patches 2023-03-07 12:53:20 +00:00
time time: skip activation if nothing is enabled 2018-01-12 22:24:34 +01:00
users Move build user options to nix module to improve overlap with NixOS 2022-08-16 10:41:51 -07:00
alias.nix Update def and implementation of nix.package to match NixOS module 2022-08-16 10:41:51 -07:00
homebrew.nix Improve documentation of homebrew module 2022-09-01 10:50:23 -07:00
meta.nix Add meta.maintainers option 2022-12-22 20:18:53 +01:00
module-list.nix hercules-ci-agent: init 2022-12-22 20:18:53 +01:00