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