Commit | Line | Data |
---|---|---|
b0ded08f | 1 | ;;; GNU Guix --- Functional package management for GNU |
1f849cba | 2 | ;;; Copyright © 2015, 2017, 2018 Alex Kost <alezost@gmail.com> |
8e0c5d44 | 3 | ;;; Copyright © 2018 Tobias Geerinckx-Rice <me@tobias.gr> |
4fed08b7 | 4 | ;;; Copyright © 2019 Efraim Flashner <efraim@flashner.co.il> |
81565d23 | 5 | ;;; Copyright © 2020 Brice Waegeneire <brice@waegenei.re> |
b0ded08f AK |
6 | ;;; |
7 | ;;; This file is part of GNU Guix. | |
8 | ;;; | |
9 | ;;; GNU Guix is free software; you can redistribute it and/or modify it | |
10 | ;;; under the terms of the GNU General Public License as published by | |
11 | ;;; the Free Software Foundation; either version 3 of the License, or (at | |
12 | ;;; your option) any later version. | |
13 | ;;; | |
14 | ;;; GNU Guix is distributed in the hope that it will be useful, but | |
15 | ;;; WITHOUT ANY WARRANTY; without even the implied warranty of | |
16 | ;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
17 | ;;; GNU General Public License for more details. | |
18 | ;;; | |
19 | ;;; You should have received a copy of the GNU General Public License | |
20 | ;;; along with GNU Guix. If not, see <http://www.gnu.org/licenses/>. | |
21 | ||
22 | (define-module (gnu packages dunst) | |
23 | #:use-module (guix packages) | |
4fed08b7 | 24 | #:use-module (guix git-download) |
b0ded08f AK |
25 | #:use-module (guix build-system gnu) |
26 | #:use-module ((guix licenses) #:prefix license:) | |
27 | #:use-module (gnu packages base) | |
28 | #:use-module (gnu packages freedesktop) | |
29 | #:use-module (gnu packages glib) | |
81565d23 | 30 | #:use-module (gnu packages gnome) |
b0ded08f AK |
31 | #:use-module (gnu packages gtk) |
32 | #:use-module (gnu packages perl) | |
33 | #:use-module (gnu packages pkg-config) | |
34 | #:use-module (gnu packages xorg)) | |
35 | ||
36 | (define-public dunst | |
37 | (package | |
38 | (name "dunst") | |
b8477cab | 39 | (version "1.5.0") |
b0ded08f | 40 | (source (origin |
4fed08b7 EF |
41 | (method git-fetch) |
42 | (uri (git-reference | |
43 | (url "https://github.com/dunst-project/dunst") | |
44 | (commit (string-append "v" version)))) | |
45 | (file-name (git-file-name name version)) | |
b0ded08f AK |
46 | (sha256 |
47 | (base32 | |
b8477cab | 48 | "0irwkqcgwkqaylcpvqgh25gn2ysbdm2kydipxfzcq1ddj9ns6f9c")))) |
b0ded08f AK |
49 | (build-system gnu-build-system) |
50 | (arguments | |
51 | '(#:tests? #f ; no check target | |
52 | #:make-flags (list "CC=gcc" | |
1f849cba AK |
53 | (string-append "PREFIX=" %output) |
54 | ;; Otherwise it tries to install service file | |
55 | ;; to "dbus" store directory. | |
56 | (string-append "SERVICEDIR_DBUS=" %output | |
81565d23 BW |
57 | "/share/dbus-1/services") |
58 | "dunstify") | |
b0ded08f | 59 | #:phases (modify-phases %standard-phases |
81565d23 BW |
60 | (delete 'configure) |
61 | (add-after 'install 'install-dunstify | |
62 | (lambda* (#:key outputs #:allow-other-keys) | |
63 | (let ((out (assoc-ref outputs "out"))) | |
64 | (install-file "dunstify" | |
65 | (string-append out "/bin"))) | |
66 | #t))))) | |
b0ded08f AK |
67 | (native-inputs |
68 | `(("pkg-config" ,pkg-config) | |
69 | ("perl" ,perl) ; for pod2man | |
70 | ("which" ,which))) | |
71 | (inputs | |
72 | `(("dbus" ,dbus) | |
e311ef4f | 73 | ("gdk-pixbuf" ,gdk-pixbuf+svg) ; for svg support |
b0ded08f AK |
74 | ("glib" ,glib) |
75 | ("cairo" ,cairo) | |
76 | ("pango" ,pango) | |
81565d23 | 77 | ("libnotify" ,libnotify) ; for dunstify |
b0ded08f | 78 | ("libx11" ,libx11) |
b0ded08f AK |
79 | ("libxscrnsaver" ,libxscrnsaver) |
80 | ("libxinerama" ,libxinerama) | |
9c074e89 | 81 | ("libxrandr" ,libxrandr) |
b0ded08f | 82 | ("libxdg-basedir" ,libxdg-basedir))) |
9c074e89 | 83 | (home-page "https://dunst-project.org/") |
b0ded08f AK |
84 | (synopsis "Customizable and lightweight notification daemon") |
85 | (description | |
86 | "Dunst is a highly configurable and minimalistic notification daemon. | |
36a4366d | 87 | It provides @code{org.freedesktop.Notifications} D-Bus service, so it is |
b0ded08f AK |
88 | started automatically on the first call via D-Bus.") |
89 | (license license:bsd-3))) |