Skip to content

Commit

Permalink
Merge pull request #278566 from avdv/deadd-fix-crash
Browse files Browse the repository at this point in the history
deadd-notification-center: Add default css file
  • Loading branch information
domenkozar authored Jan 4, 2024
2 parents 416ab46 + 7acbfc8 commit bda4549
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion pkgs/applications/misc/deadd-notification-center/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -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
'';

Expand Down

0 comments on commit bda4549

Please sign in to comment.