GNU bug report logs -
#55903
[PATCHSET] Adding aerc
Previous Next
Reported by: "(" <paren <at> disroot.org>
Date: Sat, 11 Jun 2022 09:07:01 UTC
Severity: normal
Tags: patch
Done: Raghav Gururajan <rg <at> raghavgururajan.name>
Bug is archived. No further changes may be made.
Full log
View this message in rfc822 format
This patchset makes two changes to the go.notmuch package.
On Thu Aug 4, 2022 at 6:10 PM BST, ( wrote:
> + (modules '((guix build utils)))
> + ;; XXX: We need to use a snippet, because if we don't modify
> + ;; the source directly, the modifications will have to be
> + ;; reapplied for every single package that depends on this
> + ;; one.
> + (snippet
> + #~(substitute* (find-files (getcwd) "\\.go$")
> + (("// #cgo LDFLAGS:.*$")
> + (let ((notmuch #$notmuch))
> + (string-append "// #cgo LDFLAGS:"
> + " -lnotmuch"
> + " -L" notmuch "/lib\n"
> + "// #cgo CFLAGS:"
> + " -I" notmuch "/include\n")))))
(1) Patch the source directly to refer to our notmuch. This way, we don't have
to propagate it.
> + #~(modify-phases %standard-phases
> + (add-before 'check 'unpack-test-fixtures
> + (lambda* (#:key inputs import-path #:allow-other-keys)
> + (let ((fixtures (assoc-ref inputs "notmuch-fixtures")))
> + (invoke "tar" "xf" fixtures "-C"
> + (string-append "src/" import-path
> + "/fixtures"))))))))
> + (native-inputs
> + `(("notmuch-fixtures"
> + ,(origin
> + (method url-fetch)
> + (uri "http://notmuchmail.org/releases/test-databases/database-v1.tar.xz")
> + (sha256
> + (base32
> + "1lk91s00y4qy4pjh8638b5lfkgwyl282g1m27srsf7qfn58y16a2"))))))
(2) Download and unpack the notmuch test fixtures. This means we can reenable
the tests :)
-- (
This bug report was last modified 2 years and 175 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.