2023-04-12 12:48:02 +00:00
|
|
|
{ mkDerivation, haskellPackages, fetchFromGitHub, lib, writeText }:
|
|
|
|
|
|
|
|
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-04-12 12:48:02 +00:00
|
|
|
version = "unstable-2022-11-07";
|
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-04-12 12:48:02 +00:00
|
|
|
rev = "f4b8e2b724d86def9e7b0e12ea624f95760352d5";
|
|
|
|
hash = "sha256-ClJfWqStULvmj5YRAUDAmn2WOSA2sVtyZsa+qSY51Gk=";
|
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; [
|
|
|
|
base bytestring ConfigFile containers dbus directory env-locale
|
|
|
|
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
|
|
|
|
tagsoup text time transformers tuple unix
|
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
|
|
|
}
|