Hi,

Alexis Simon <alexis.si...@runbox.com> writes:

> Would anyone know reasons for a patch to not be found in a package
> definition?
>
> I have this source:
> -------
> (source
>      (origin
>        (method git-fetch)
>        (uri (git-reference
>               (url "https://github.com/PalamaraLab/arg-needle-lib.git";)
>               (commit (string-append "v" version))))
>        (file-name (git-file-name name version))
>        (sha256
>         (base32 "0zzgbmbn4r8iaihvb2bha7ppz6568bzlzngdzp3cpry38j49z10j"))
>        (patches (search-patches
>        "patches/python-arg-needle-lib-pybind11.patch"))))

In your own channel, this looks for
‘patches/python-arg-needle-lib-pybind11.patch’ relative to the root of
the channel, not relative to the source file where this appears.  So you
would need to move the patches upwards.

Alternatively, I think you can write this:

  (patches (list (local-file "patches/python-arg-needle-lib-pybind11.patch")))

which would search the file relative to the location of the module’s
source file.

HTH!

Ludo’.

Reply via email to