you can always overwrite the patchPhase:
patchPhase = ''
unset patchPhase # reset this env var
patchPhase # run patchPhase function (default implementation)
patch -p1 < your.diff
'';
your solution is cleaner though.
Marc Weber
___
nix-dev mailing
to answer my own question:
patches = [ ./some.patch ] refers to some.patch in the nixpkg tree
patches = [ "./some.patch" ] refers to some.patch in the build dir
I just mistyped the patch name, that's why it didn't work before :)
On Sun, Dec 11, 2011 at 7:48 PM, Mathijs Kwik wrote:
> Hi all,
>
>
Hi all,
I'm trying to build a nixpkg for a custom version of rsync.
As you might know, rsync has a collection of patches that they
maintain next to the official source.
I'm using mkDerivation and gave it:
srcs = [mainSrc patchesSrc]
where main and patches are fetchurls.
Nix nicely unpacks both t