Use flycheck-guile package.
[software/guile-studio.git] / guix / rekado / guile-studio.scm
1 (define-module (rekado guile-studio))
2 (use-modules (guix packages)
3 (guix download)
4 (guix gexp)
5 (guix build-system gnu)
6 ((guix licenses) #:prefix license:)
7 (gnu packages guile)
8 (gnu packages guile-xyz)
9 (gnu packages emacs)
10 (gnu packages emacs-xyz)
11 (gnu packages gnome)
12 (gnu packages texinfo))
13
14 (define-public guile-studio
15 (package
16 (name "guile-studio-devel")
17 (version "0.0.3")
18 (source (local-file (string-append "guile-studio-" version ".tar.gz")))
19 (build-system gnu-build-system)
20 (arguments
21 `(#:modules
22 ((ice-9 match)
23 (srfi srfi-1)
24 ,@%gnu-build-system-modules)
25 #:tests? #f ; there are none
26 #:make-flags
27 (list (string-append "ICONS_DIR="
28 (assoc-ref %build-inputs "adwaita-icon-theme")
29 "/share/icons/Adwaita/")
30 (string-append "PICT_DIR="
31 (assoc-ref %build-inputs "guile-picture-language"))
32 (string-append "EMACS_DIR="
33 (assoc-ref %build-inputs "emacs"))
34 (string-append "GUILE_DIR="
35 (assoc-ref %build-inputs "guile"))
36 (string-join (cons "INPUTS="
37 (filter-map
38 (lambda (input)
39 (match input
40 ((label . pkg)
41 (and (string-prefix? "emacs" label) pkg))))
42 %build-inputs)))
43 (string-append "PREFIX=" (assoc-ref %outputs "out")))
44 #:phases
45 (modify-phases %standard-phases
46 (delete 'configure)
47 (delete 'install))))
48 (inputs
49 `(("guile" ,guile-3.0)
50 ("guile-picture-language" ,guile-picture-language)
51 ("emacs" ,emacs)
52 ("emacs-geiser" ,emacs-geiser)
53 ("emacs-company" ,emacs-company)
54 ("emacs-flycheck" ,emacs-flycheck)
55 ("emacs-flycheck-guile" ,emacs-flycheck-guile)
56 ("emacs-smart-mode-line" ,emacs-smart-mode-line)
57 ("emacs-paren-face" ,emacs-paren-face)
58 ("adwaita-icon-theme" ,adwaita-icon-theme)))
59 (native-inputs
60 `(("texinfo" ,texinfo)))
61 (home-page "https://gnu.org/software/guile")
62 (synopsis "Totally not a cheap copy of Dr Racket for Guile")
63 (description
64 "Racket has Dr Racket. Guile has ... Emacs? This is Emacs with a few
65 settings that make working with Guile easier for people new to Emacs.
66 Features include: CUA mode, Geiser, tool bar icons to evaluate Guile buffers,
67 support for Guile's very own picture language, code completion, a simple mode
68 line, etc.")
69 (license license:gpl3+)))