New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
stdenv: Allow changing the patch command #251622
Conversation
The commit message should provide a motivation and this addition needs to be documented. |
f38c079
to
b129b76
Compare
It is now fixed. |
b129b76
to
802dff2
Compare
If this was the case a lot of patches in the tree would not apply. Can you provide a source for this? |
Sure, the PR that made me realize this was #250565 , when trying to apply https://github.com/NixOS/nixpkgs/pull/250565.patch , the file |
The `patch` utility is not fully compatible with the diffs generated by `git`, one missing feature is the renaming of files. As GitHub exports diffs of a PR with renames, it means that those patches are not guaranteed to work with `patch`.
802dff2
to
70e59e4
Compare
Why should a patch for
Is it possible that the |
Oh, I found the issue, the original patch applies fine for me as well if I get it with curl, (I do have gnupatch in the path), the real problem comes from |
Ah, that is tracked in #32084. You can try to use |
Description of changes
The
patch
utility is not fully compatible with the diffs generated bygit
, one missing feature is the renaming of files. As GitHub exports diffsof a PR with renames, it means that those patches are not guaranteed to work
with
patch
.Things done
sandbox = true
set innix.conf
? (See Nix manual)nix-shell -p nixpkgs-review --run "nixpkgs-review rev HEAD"
. Note: all changes have to be committed, also see nixpkgs-review usage./result/bin/
)