deadd-notification-center: Add default css file
The application otherwise crashes if there is no user config file.
This commit is contained in:
parent
551bcaeff5
commit
7acbfc817a
@ -43,9 +43,15 @@ in mkDerivation rec {
|
|||||||
# Test suite does nothing.
|
# Test suite does nothing.
|
||||||
doCheck = false;
|
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 = ''
|
postInstall = ''
|
||||||
mkdir -p $out/lib/systemd/user
|
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
|
echo "${systemd-service}" > $out/lib/systemd/user/deadd-notification-center.service
|
||||||
'';
|
'';
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user