From 7acbfc817ae79270cac9446c918bcc0e3f84dcd0 Mon Sep 17 00:00:00 2001 From: Claudio Bley Date: Tue, 2 Jan 2024 23:51:18 +0100 Subject: [PATCH] deadd-notification-center: Add default css file The application otherwise crashes if there is no user config file. --- .../misc/deadd-notification-center/default.nix | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/pkgs/applications/misc/deadd-notification-center/default.nix b/pkgs/applications/misc/deadd-notification-center/default.nix index 44c36281fadd..edc1f8ba9e1c 100644 --- a/pkgs/applications/misc/deadd-notification-center/default.nix +++ b/pkgs/applications/misc/deadd-notification-center/default.nix @@ -43,9 +43,15 @@ in mkDerivation rec { # Test suite does nothing. doCheck = false; - # Add systemd user unit. + postPatch = '' + substituteInPlace src/NotificationCenter.hs \ + --replace '/etc/xdg/deadd/deadd.css' "$out/etc/deadd.css" + ''; + + # Add systemd user unit and install default style. postInstall = '' mkdir -p $out/lib/systemd/user + install -Dm644 style.css $out/etc/deadd.css echo "${systemd-service}" > $out/lib/systemd/user/deadd-notification-center.service '';