2020-04-24 23:36:52 +00:00
|
|
|
{ stdenv, lib, fetchFromGitHub, makeWrapper
|
2021-02-05 17:12:51 +00:00
|
|
|
, pkg-config, which, perl, libXrandr
|
2020-04-24 23:36:52 +00:00
|
|
|
, cairo, dbus, systemd, gdk-pixbuf, glib, libX11, libXScrnSaver
|
2021-03-09 03:18:52 +00:00
|
|
|
, gtk3, wayland, wayland-protocols
|
2021-03-12 07:09:13 +00:00
|
|
|
, libXinerama, libnotify, pango, xorgproto, librsvg
|
2020-04-24 23:36:52 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "dunst";
|
2021-03-09 03:18:52 +00:00
|
|
|
version = "1.6.1";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "dunst-project";
|
|
|
|
repo = "dunst";
|
|
|
|
rev = "v${version}";
|
2021-03-12 07:09:13 +00:00
|
|
|
sha256 = "0lga1kj2vjbj9g9rl93nivngjmk5fkxdxwal8w96x9whwk9jvdga";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2021-02-05 17:12:51 +00:00
|
|
|
nativeBuildInputs = [ perl pkg-config which systemd makeWrapper ];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
buildInputs = [
|
|
|
|
cairo dbus gdk-pixbuf glib libX11 libXScrnSaver
|
|
|
|
libXinerama libnotify pango xorgproto librsvg libXrandr
|
2021-03-09 03:18:52 +00:00
|
|
|
gtk3 wayland wayland-protocols
|
2020-04-24 23:36:52 +00:00
|
|
|
];
|
|
|
|
|
|
|
|
outputs = [ "out" "man" ];
|
|
|
|
|
|
|
|
makeFlags = [
|
|
|
|
"PREFIX=$(out)"
|
|
|
|
"VERSION=$(version)"
|
2021-03-12 07:09:13 +00:00
|
|
|
"SYSCONFDIR=$(out)/etc"
|
2020-04-24 23:36:52 +00:00
|
|
|
"SERVICEDIR_DBUS=$(out)/share/dbus-1/services"
|
|
|
|
"SERVICEDIR_SYSTEMD=$(out)/lib/systemd/user"
|
|
|
|
];
|
|
|
|
|
2021-03-12 07:09:13 +00:00
|
|
|
postInstall = ''
|
2020-04-24 23:36:52 +00:00
|
|
|
wrapProgram $out/bin/dunst \
|
|
|
|
--set GDK_PIXBUF_MODULE_FILE "$GDK_PIXBUF_MODULE_FILE"
|
|
|
|
'';
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Lightweight and customizable notification daemon";
|
|
|
|
homepage = "https://dunst-project.org/";
|
|
|
|
license = licenses.bsd3;
|
|
|
|
# NOTE: 'unix' or even 'all' COULD work too, I'm not sure
|
|
|
|
platforms = platforms.linux;
|
|
|
|
maintainers = with maintainers; [ domenkozar ];
|
|
|
|
};
|
|
|
|
}
|