Elektrine lite

← Feed

@futurile@mastodon.social

Post #1669974

2026-04-21 21:38 UTC

New post on altering the source of #guix packages using the substitute* procedure. It searches through files using a #guile regular expression and replaces it with the specified text. This is the most common change that packages make - substitute* is used 9500 times! Common uses are altering test requirements, or slackening library dependencies. https://www.futurile.net/2026/04/18/guix-package-source-alterations-using-substitute/ Post covers the procedures uses, and then a tour through different examples from the Guix archive!

Replies (1)

  • @civodul@toot.aquilenet.fr 2026-04-22 15:43

    @futurile Nice and useful series of posts! Related links: https://guix.gnu.org/manual/devel/en/html_node/Build-Utilities.html#index-substitute_002a https://guix.gnu.org/manual/devel/en/html_node/Build-Utilities.html#index-search_002dinput_002dfile

    Open ##1868523