summaryrefslogtreecommitdiffstats
path: root/lxpanel-gtk2.scm
blob: 246e8e2fc1148388df1355c3fc35df1a333202bc (plain) (blame)
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
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
(define-module (lxpanel-gtk2)
               #:use-module (gnu packages)
               #:use-module (gnu packages lxde)
               #:use-module (gnu packages gtk)
               #:use-module (gnu packages gnome)
               #:use-module (gnu packages wm)
               #:use-module (gnu packages glib)
               #:use-module (gnu packages python)
               #:use-module (gnu packages autotools)
               #:use-module (gnu packages pkg-config)
               #:use-module ((guix licenses) :prefix license:)
               #:use-module (guix build-system gnu)
               #:use-module (guix git-download)
               #:use-module (guix url-download)
               #:use-module (guix packages)
               #:use-module (guix gexp)
               )

(define-public libwnck-2
  (package (inherit libwnck)
    (name "libwnck")
    (version "2.30.7")
    (source (origin
              (method url-fetch)
              (uri (string-append "mirror://gnome/sources/" name "/"
                                  (version-major+minor version) "/"
                                  name "-" version ".tar.xz"))
              (sha256
               (base32
                "15713yl0f8f3p99jzqqfmbicrdswd3vwpx7r3bkf1bgh6d9lvs4b"))))
    (build-system gnu-build-system)
    (native-inputs
     (list pkg-config intltool))
    (propagated-inputs
     (list gtk+-2 libxres startup-notification))))

(define-public keybinder-legacy
  (package
    (name "keybinder-legacy")
    (version "0.3.1")
    (source (origin
              (method git-fetch)
              (uri (git-reference
                     (url "https://github.com/kupferlauncher/keybinder.git")
                     (commit (string-append "v" version))))
       (sha256
        (base32
         "0r9l8k85mqmwns065cz4ffsblrh24gyn1691lcnh02vkkc6zllks"))))
    (build-system gnu-build-system)
    (arguments (list #:configure-flags #~(list "--disable-python")))    
    (inputs
     (list gtk+-2))
    (native-inputs
     (list gtk-doc pkg-config gnome-common automake autoconf libtool))
    (synopsis "Library for registering global keyboard shortcuts")
    (description
     "Keybinder is a library for registering global keyboard shortcuts.
Keybinder works with GTK-based applications using the X Window System.")
    (home-page "https://github.com/kupferlauncher/keybinder")
    (license license:gpl2+)))

(define-public libfm-gtk2
(package (inherit libfm)
         (name "libfm-gtk2")
         (arguments (list #:configure-flags #~(list "--with-gtk=2")))
         (inputs (modify-inputs (package-inputs libfm)
                    (prepend gtk+-2)))
))

(define-public lxpanel-gtk2
               (package (inherit lxpanel)
                        (name "lxpanel-gtk2")
                        (arguments
                          (list
                            #:phases
                            #~(modify-phases %standard-phases
                                             (add-after 'install 'wrap
                                                        (lambda* (#:key inputs outputs #:allow-other-keys)
                                                                 (wrap-program (search-input-file outputs "bin/lxpanel")
                                                                               `("XDG_DATA_DIRS" ":" prefix
                                                                                 (,(string-append #$(this-package-input "lxmenu-data")
                                                                                                  "/share")))))))))
                        (inputs (modify-inputs (package-inputs lxpanel)
                                               (prepend gtk+-2 libfm-gtk2 libwnck-2 keybinder-legacy)))
                        ))