summaryrefslogtreecommitdiff
path: root/.config/guix/modules/packages/eww.scm
blob: 9deb295305c0fef60654e4318e2fd833b37821fd (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
(define-module (packages eww)
  #:use-module ((guix licenses) #:prefix license:)
  #:use-module (gnu packages)
  #:use-module (guix packages)
  #:use-module (gnu packages pkg-config)
  #:use-module (gnu packages glib)
  #:use-module (gnu packages gtk)
  #:use-module (packages bd-rust-crates)
  #:use-module (guix gexp)
  #:use-module (guix build-system cargo)
  #:use-module (guix git-download)
  #:export (eww))

;;; Commentary:
;;; provides eww, a widget system made in Rust
;;; Code:


(define eww
  (package
   (name "eww")
   (version "0.6.0")
   (source
    (origin
     (method git-fetch)
     (uri (git-reference
               (url "https://github.com/elkowar/eww")
               (commit "65b64b3c492aabae1289fff63120187b535a30ab")
	       (recursive? #f)))
     (sha256
      (base32 "0ihgcxppywpcp24zhws1if6h7cxbrq2vd53wyh36j5mxylpbi59w"))))
   (build-system cargo-build-system)
   (arguments
    `(#:install-source? #f
      #:phases
      (modify-phases %standard-phases
	(replace 'install
	  (lambda* (#:key inputs outputs #:allow-other-keys)
	    (chdir "crates/eww")
	    (invoke "cargo" "install"
		    "--path" "."
		    "--root" (assoc-ref outputs "out")))))))
   (inputs (cons* glib gdk-pixbuf gtk+ gtk-layer-shell libdbusmenu (bd-cargo-inputs 'eww)))
   (native-inputs (list pkg-config))
   (home-page "https://elkowar.github.io/eww")
   (synopsis "ElKowars wacky widgets.")
   (description
    "Elkowars Wacky Widgets is a standalone widget system made in Rust that allows you to implement your own, custom widgets in any window manager.")
   (license (list license:expat))))

;;; eww.scm ends here