guix-devel
[Top][All Lists]
Advanced

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

Re: Cookbook recipe from "The Repository as a Channel" section does not


From: Nigko Yerden
Subject: Re: Cookbook recipe from "The Repository as a Channel" section does not work for Guix with properly configured GUILE_LOAD_PATH
Date: Thu, 22 Aug 2024 18:22:32 +0500
User-agent: Mozilla Thunderbird

Nigko Yerden wrote:
(dirname
  (canonicalize-path
   (string-append (current-source-directory) (current-filename))))

Sorry, this expression for source directory is wrong. The correct one:

(dirname
 (canonicalize-path
  (string-append (current-source-directory) "/"
                 (basename (module-filename (current-module))))))

By the way this can also be used in the definition of 'checkout-dir', instead
of direct call to '(search-path %load-path ...)'.

Regards,
Nigko




reply via email to

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