Subject: [bug#66608] [PATCH] gnu: Add yara.

From: Bruno Victal <[email-masked]>
Date: Thu, 19 Oct 2023 16:08:10 +0100

Hi Jakob,

Jakob Kirsch <[email-masked]> writes:

> +    (arguments
> +     '(#:phases (modify-phases %standard-phases
> +                  (add-before 'check 'remove-bin-sh-in-test
> +                    (lambda* (#:key build-inputs #:allow-other-keys)
> +                      (substitute* "tests/test-rules.c"
> +                        (("/bin/sh")
> +                         (string-append (assoc-ref %build-inputs "bash")
> +                                        "/bin/sh"))))))))

This can be written with G-Expressions as:
--8<---------------cut here---------------start------------->8---
(arguments
 (list
  #:phases
  #~(modify-phases %standard-phases
      (add-before …
       (lambda _
         (substitute* …
          (string-append #$(this-package-input "bash") "/bin/sh")
          …))))))
--8<---------------cut here---------------end--------------->8---

-- 
Thanks,
Bruno.