@@ -1,44 +1,46 @@
1−{ lib, stdenv
2−, fetchurl
1+{ lib
2+, stdenv
3+, fetchFromGitHub
34, autoPatchelfHook
5+, wrapGAppsHook
6+, hicolor-icon-theme
47, gtk3
58, gobject-introspection
69, libxml2
710}:
8−
9−let
10− version = "1.7.2";
11−
12− dbusService = fetchurl {
13− url = "https://github.com/phuhl/linux_notification_center/raw/${version}/com.ph-uhl.deadd.notification.service.in";
14− sha256 = "0jvmi1c98hm8x1x7kw9ws0nbf4y56yy44c3bqm6rjj4lrm89l83s";
15− };
16−in
1711stdenv.mkDerivation rec {
18− inherit version;
1912 pname = "deadd-notification-center";
13+ version = "1.7.3";
2014
21− src = fetchurl {
22− url = "https://github.com/phuhl/linux_notification_center/releases/download/${version}/${pname}";
23− sha256 = "13f15slkjiw2n5dnqj13dprhqm3nf1k11jqaqda379yhgygyp9zm";
15+ src = fetchFromGitHub {
16+ owner = "phuhl";
17+ repo = "linux_notification_center";
18+ rev = version;
19+ sha256 = "QaOLrtlhQyhMOirk6JO1yMGRrgycHmF9FAdKNbN2TRk=";
2420 };
2521
2622 dontUnpack = true;
2723
28− nativeBuildInputs = [ autoPatchelfHook ];
24+ nativeBuildInputs = [
25+ autoPatchelfHook
26+ wrapGAppsHook
27+ ];
2928
3029 buildInputs = [
3130 gtk3
3231 gobject-introspection
3332 libxml2
33+ hicolor-icon-theme
3434 ];
3535
3636 installPhase = ''
3737 mkdir -p $out/bin $out/share/dbus-1/services
38− cp $src $out/bin/deadd-notification-center
39− chmod +x $out/bin/deadd-notification-center
4038
41− sed "s|##PREFIX##|$out|g" ${dbusService} > $out/share/dbus-1/services/com.ph-uhl.deadd.notification.service
39+ cp $src/.out/${pname} $out/bin/
40+ chmod +x $out/bin/${pname}
41+
42+ sed "s|##PREFIX##|$out|g" $src/${pname}.service.in > \
43+ $out/share/dbus-1/services/com.ph-uhl.deadd.notification.service
4244 '';
4345
4446 meta = with lib; {