Re: [Nix-dev] referring to a patch that's packed inside the source tarball

2011-12-11 Thread Marc Weber
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

Re: [Nix-dev] referring to a patch that's packed inside the source tarball

2011-12-11 Thread Mathijs Kwik
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, > >

[Nix-dev] referring to a patch that's packed inside the source tarball

2011-12-11 Thread Mathijs Kwik
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