nixpkgs/pkgs/applications/misc/deadd-notification-center/default.nix
S. Nordin Abouzahra 34bc14a8ec deadd-notification-center: unstable-2022-11-07 -> 2.0.3
The configuration file is now in YAML format. Users will need to update
`deadd.conf` to `deadd.yml`.
2023-05-31 03:44:58 -04:00

58 lines
1.6 KiB
Nix

{ 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 {
pname = "deadd-notification-center";
version = "2.0.3";
src = fetchFromGitHub {
owner = "phuhl";
repo = "linux_notification_center";
rev = "${version}";
hash = "sha256-OM4zzKdo0HMvzAl7BG9IuSHmTauSC5rLWoJJOAshDYg=";
};
isLibrary = false;
isExecutable = true;
libraryHaskellDepends = with haskellPackages; [
aeson 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 yaml
];
executableHaskellDepends = with haskellPackages; [ base ];
# Test suite does nothing.
doCheck = false;
# 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;
}