guix-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Search path for patches


From: Nicolas Graves
Subject: Re: Search path for patches
Date: Sat, 14 Sep 2024 00:05:03 +0200

On 2024-09-13 19:33, Konrad Hinsen wrote:

> Hi everyone,
>
> I have been searching for a while, without much success, so I am trying
> to tap into your collective wisdom: What's the search path used by
> search-patches?
>
> More precisely, where do I have to put patches
>  1. In a channel?
>  2. In a directory added to GUIX_PACKAGE_PATH/GUILE_LOAD_PATH?
>
> The main Guix channel has a "patches" directory inside "packages".  The
> channel guix-science has it at the root. For my own channel that I am
> trying to set up, neither seems to work so far.

Not a direct answer, but I use the approach I've found in guixrus:

      (patches
        (parameterize
            ((%patch-path
              (map
               (lambda (directory)
                 (string-append directory "/guixrus/packages/patches"))
               %load-path)))
        (search-patches
         ;;patches created from github issues
         "lxappearence-gtk3-01-only-do-x11-on-x11.patch"
         "lxappearence-gtk3-02-set-some-settings-gsettings.patch")))

This is allows you to put patches quite conveniently in a channel.

-- 
Best regards,
Nicolas Graves



reply via email to

[Prev in Thread] Current Thread [Next in Thread]