2021-02-05 17:12:51 +00:00
|
|
|
{ lib
|
|
|
|
, stdenv
|
|
|
|
, fetchFromGitHub
|
2020-12-25 13:55:36 +00:00
|
|
|
, autoPatchelfHook
|
2021-02-05 17:12:51 +00:00
|
|
|
, wrapGAppsHook
|
|
|
|
, hicolor-icon-theme
|
2020-12-25 13:55:36 +00:00
|
|
|
, gtk3
|
|
|
|
, gobject-introspection
|
|
|
|
, libxml2
|
|
|
|
}:
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "deadd-notification-center";
|
2021-02-05 17:12:51 +00:00
|
|
|
version = "1.7.3";
|
2020-12-25 13:55:36 +00:00
|
|
|
|
2021-02-05 17:12:51 +00:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "phuhl";
|
|
|
|
repo = "linux_notification_center";
|
|
|
|
rev = version;
|
|
|
|
sha256 = "QaOLrtlhQyhMOirk6JO1yMGRrgycHmF9FAdKNbN2TRk=";
|
2020-12-25 13:55:36 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
dontUnpack = true;
|
|
|
|
|
2021-02-05 17:12:51 +00:00
|
|
|
nativeBuildInputs = [
|
|
|
|
autoPatchelfHook
|
|
|
|
wrapGAppsHook
|
|
|
|
];
|
2020-12-25 13:55:36 +00:00
|
|
|
|
|
|
|
buildInputs = [
|
|
|
|
gtk3
|
|
|
|
gobject-introspection
|
|
|
|
libxml2
|
2021-02-05 17:12:51 +00:00
|
|
|
hicolor-icon-theme
|
2020-12-25 13:55:36 +00:00
|
|
|
];
|
|
|
|
|
|
|
|
installPhase = ''
|
|
|
|
mkdir -p $out/bin $out/share/dbus-1/services
|
|
|
|
|
2021-02-05 17:12:51 +00:00
|
|
|
cp $src/.out/${pname} $out/bin/
|
|
|
|
chmod +x $out/bin/${pname}
|
|
|
|
|
|
|
|
sed "s|##PREFIX##|$out|g" $src/${pname}.service.in > \
|
|
|
|
$out/share/dbus-1/services/com.ph-uhl.deadd.notification.service
|
2020-12-25 13:55:36 +00:00
|
|
|
'';
|
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
meta = with lib; {
|
2020-12-25 13:55:36 +00:00
|
|
|
description = "A haskell-written notification center for users that like a desktop with style";
|
|
|
|
homepage = "https://github.com/phuhl/linux_notification_center";
|
|
|
|
license = licenses.bsd3;
|
|
|
|
maintainers = [ maintainers.pacman99 ];
|
|
|
|
platforms = platforms.linux;
|
|
|
|
};
|
|
|
|
}
|