2023-07-15 17:15:38 +00:00
|
|
|
{ mkDerivation, haskellPackages, fetchFromGitHub, lib }:
|
2023-04-12 12:48:02 +00:00
|
|
|
|
|
|
|
let
|
|
|
|
# deadd-notification-center.service
|
|
|
|
systemd-service = ''
|
|
|
|
[Unit]
|
|
|
|
Description=Deadd Notification Center
|
|
|
|
PartOf=graphical-session.target
|
|
|
|
|
|
|
|
[Service]
|
|
|
|
Type=dbus
|
|
|
|
BusName=org.freedesktop.Notifications
|
|
|
|
ExecStart=$out/bin/deadd-notification-center
|
|
|
|
|
|
|
|
[Install]
|
|
|
|
WantedBy=graphical-session.target
|
|
|
|
'';
|
|
|
|
in mkDerivation rec {
|
2020-12-25 13:55:36 +00:00
|
|
|
pname = "deadd-notification-center";
|
2023-07-15 17:15:38 +00:00
|
|
|
version = "2.0.4";
|
2020-12-25 13:55:36 +00:00
|
|
|
|
2021-02-05 17:12:51 +00:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "phuhl";
|
|
|
|
repo = "linux_notification_center";
|
2023-07-15 17:15:38 +00:00
|
|
|
rev = version;
|
|
|
|
hash = "sha256-ascg31HsHeXKhvMNntiRLuZ4+T2+fokfDhZ3c8N/Gzg=";
|
2020-12-25 13:55:36 +00:00
|
|
|
};
|
|
|
|
|
2023-04-12 12:48:02 +00:00
|
|
|
isLibrary = false;
|
2020-12-25 13:55:36 +00:00
|
|
|
|
2023-04-12 12:48:02 +00:00
|
|
|
isExecutable = true;
|
2020-12-25 13:55:36 +00:00
|
|
|
|
2023-04-12 12:48:02 +00:00
|
|
|
libraryHaskellDepends = with haskellPackages; [
|
2023-07-15 17:15:38 +00:00
|
|
|
aeson base bytestring ConfigFile containers dbus directory env-locale
|
2023-04-12 12:48:02 +00:00
|
|
|
filepath gi-cairo gi-gdk gi-gdkpixbuf gi-gio gi-glib gi-gobject
|
|
|
|
gi-gtk gi-pango haskell-gettext haskell-gi haskell-gi-base
|
|
|
|
hdaemonize here lens mtl process regex-tdfa setlocale split stm
|
2023-07-15 17:15:38 +00:00
|
|
|
tagsoup text time transformers tuple unix yaml
|
2020-12-25 13:55:36 +00:00
|
|
|
];
|
|
|
|
|
2023-04-12 12:48:02 +00:00
|
|
|
executableHaskellDepends = with haskellPackages; [ base ];
|
2021-02-05 17:12:51 +00:00
|
|
|
|
2023-04-12 12:48:02 +00:00
|
|
|
# Test suite does nothing.
|
|
|
|
doCheck = false;
|
2020-12-25 13:55:36 +00:00
|
|
|
|
2023-04-12 12:48:02 +00:00
|
|
|
# Add systemd user unit.
|
|
|
|
postInstall = ''
|
|
|
|
mkdir -p $out/lib/systemd/user
|
|
|
|
echo "${systemd-service}" > $out/lib/systemd/user/deadd-notification-center.service
|
|
|
|
'';
|
|
|
|
|
|
|
|
description = "A haskell-written notification center for users that like a desktop with style";
|
|
|
|
homepage = "https://github.com/phuhl/linux_notification_center";
|
|
|
|
license = lib.licenses.bsd3;
|
|
|
|
maintainers = with lib.maintainers; [ melkor333 sna ];
|
|
|
|
platforms = lib.platforms.linux;
|
2020-12-25 13:55:36 +00:00
|
|
|
}
|