# -rw-r--r-- 1.1 KiB View raw
                                                                                
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
(arguments
     (list #:import-path "git.sr.ht/~rjarry/aerc"
           #:build-flags
           #~(list "-tags=notmuch"
                   ;; These flags are set as GO_LDFLAGS in the makefile.
                   "-X" (string-append "main.Version="
                                       #$(go-version->git-ref version))
                   "-X" (string-append "git.sr.ht/~rjarry/aerc/config.shareDir="
                                       #$output "/share/aerc"))
           #:phases
           #~(modify-phases %standard-phases
              (add-after 'build 'doc
                (lambda* (#:key import-path #:allow-other-keys)
                  (with-directory-excursion (string-append "src/" import-path)
                    (invoke "make" "doc"))))
              (replace 'install
                (lambda* (#:key outputs import-path #:allow-other-keys)
                  (let ((out (assoc-ref outputs "out")))
                    (with-directory-excursion (string-append "src/" import-path)
                      (invoke "make" "install"
                              (string-append "PREFIX=" out)))))))))