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

Mathijs Kwik mathijs at bluescreen303.nl
Sun Dec 11 20:25:59 CET 2011


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 <mathijs at bluescreen303.nl> wrote:
> 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 tarballs into 1 dir.
> Now, I would like to use 3 patches, which are located at ./patches/ in
> the build-dir.
> How can I refer to them in a default patches = [ ... ] construct?
>
> Thanks,
> Mathijs


More information about the nix-dev mailing list