2021-01-18 19:11:22 +00:00
|
|
|
{ lib
|
|
|
|
, stdenv
|
|
|
|
, fetchFromGitHub
|
2020-05-28 08:19:01 +01:00
|
|
|
, autoPatchelfHook
|
2021-01-18 19:11:22 +00:00
|
|
|
, wrapGAppsHook
|
|
|
|
, hicolor-icon-theme
|
2020-05-28 08:19:01 +01:00
|
|
|
, gtk3
|
|
|
|
, gobject-introspection
|
|
|
|
, libxml2
|
|
|
|
}:
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "deadd-notification-center";
|
2021-01-18 19:11:22 +00:00
|
|
|
version = "1.7.3";
|
2020-05-28 08:19:01 +01:00
|
|
|
|
2021-01-18 19:11:22 +00:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "phuhl";
|
|
|
|
repo = "linux_notification_center";
|
|
|
|
rev = version;
|
|
|
|
sha256 = "QaOLrtlhQyhMOirk6JO1yMGRrgycHmF9FAdKNbN2TRk=";
|
2020-05-28 08:19:01 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
dontUnpack = true;
|
|
|
|
|
2021-01-18 19:11:22 +00:00
|
|
|
nativeBuildInputs = [
|
|
|
|
autoPatchelfHook
|
|
|
|
wrapGAppsHook
|
|
|
|
];
|
2020-05-28 08:19:01 +01:00
|
|
|
|
|
|
|
buildInputs = [
|
|
|
|
gtk3
|
|
|
|
gobject-introspection
|
|
|
|
libxml2
|
2021-01-18 19:11:22 +00:00
|
|
|
hicolor-icon-theme
|
2020-05-28 08:19:01 +01:00
|
|
|
];
|
|
|
|
|
|
|
|
installPhase = ''
|
|
|
|
mkdir -p $out/bin $out/share/dbus-1/services
|
|
|
|
|
2021-01-18 19:11:22 +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-05-28 08:19:01 +01:00
|
|
|
'';
|
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2020-05-28 08:19:01 +01: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;
|
|
|
|
};
|
|
|
|
}
|