diff options
author | Pacman99 <pachum99@gmail.com> | 2021-03-13 10:36:14 -0800 |
---|---|---|
committer | Pacman99 <pachum99@gmail.com> | 2021-03-13 11:50:57 -0800 |
commit | 02fa7b8edfed004aaf9f03b9071e00142ddf3b59 (patch) | |
tree | 35af43375dddd51094711f493dbc8f9c0a4d1cce | |
parent | e27a6e16cf4bc3e2573ce1521193413539f4bea4 (diff) |
deadd-notification-center: use make to install and fix issues with service files
-rw-r--r-- | pkgs/applications/misc/deadd-notification-center/default.nix | 26 |
1 files changed, 18 insertions, 8 deletions
diff --git a/pkgs/applications/misc/deadd-notification-center/default.nix b/pkgs/applications/misc/deadd-notification-center/default.nix index 0f87fe82d56e..5d77f301c821 100644 --- a/pkgs/applications/misc/deadd-notification-center/default.nix +++ b/pkgs/applications/misc/deadd-notification-center/default.nix @@ -7,6 +7,7 @@ , gtk3 , gobject-introspection , libxml2 +, fetchpatch }: stdenv.mkDerivation rec { pname = "deadd-notification-center"; @@ -19,6 +20,12 @@ stdenv.mkDerivation rec { sha256 = "12ldr8vppylr90849g3mpjphmnr4lp0vsdkj01a5f4bv4ksx35fm"; }; + patches = [ + (fetchpatch { + url = "https://github.com/phuhl/linux_notification_center/commit/5244e1498574983322be97925e1ff7ebe456d974.patch"; + sha256 = "sha256-hbqbgBmuewOhtx0na2tmFa5W128ZrBvDcyPme/mRzlI="; + }) + ]; nativeBuildInputs = [ autoPatchelfHook @@ -32,15 +39,18 @@ stdenv.mkDerivation rec { hicolor-icon-theme ]; - installPhase = '' - mkdir -p $out/bin $out/share/dbus-1/services - - cp $src/.out/${pname} $out/bin/ - chmod +x $out/bin/${pname} + buildFlags = [ + # Exclude stack from `make all` to use the prebuilt binary from .out/ + "service" + ]; - sed "s|##PREFIX##|$out|g" $src/${pname}.service.in > \ - $out/share/dbus-1/services/com.ph-uhl.deadd.notification.service - ''; + makeFlags = [ + "PREFIX=${placeholder "out"}" + "SERVICEDIR_SYSTEMD=${placeholder "out"}/etc/systemd/user" + "SERVICEDIR_DBUS=${placeholder "out"}/share/dbus-1/services" + # Override systemd auto-detection. + "SYSTEMD=1" + ]; meta = with lib; { description = "A haskell-written notification center for users that like a desktop with style"; |