deadd-notification-center: 2022-04-20 -> unstable-2022-11-07
Update deadd-notification-center to the latest revision. Change the expression from using the prebuilt binary provided in the repository to building from source instead as well as provide a functioning systemd service file as the one provided by upstream is broken. Remove pacman99 from and add Melkor333 to maintainers as requested.
This commit is contained in:
parent
3487ae7d0f
commit
c3853b4745
|
@ -1,62 +1,57 @@
|
||||||
{ lib
|
{ mkDerivation, haskellPackages, fetchFromGitHub, lib, writeText }:
|
||||||
, stdenv
|
|
||||||
, fetchFromGitHub
|
let
|
||||||
, autoPatchelfHook
|
# deadd-notification-center.service
|
||||||
, wrapGAppsHook
|
systemd-service = ''
|
||||||
, hicolor-icon-theme
|
[Unit]
|
||||||
, gtk3
|
Description=Deadd Notification Center
|
||||||
, gobject-introspection
|
PartOf=graphical-session.target
|
||||||
, libxml2
|
|
||||||
, fetchpatch
|
[Service]
|
||||||
}:
|
Type=dbus
|
||||||
stdenv.mkDerivation rec {
|
BusName=org.freedesktop.Notifications
|
||||||
|
ExecStart=$out/bin/deadd-notification-center
|
||||||
|
|
||||||
|
[Install]
|
||||||
|
WantedBy=graphical-session.target
|
||||||
|
'';
|
||||||
|
in mkDerivation rec {
|
||||||
pname = "deadd-notification-center";
|
pname = "deadd-notification-center";
|
||||||
version = "2022-04-20";
|
version = "unstable-2022-11-07";
|
||||||
|
|
||||||
src = fetchFromGitHub {
|
src = fetchFromGitHub {
|
||||||
owner = "phuhl";
|
owner = "phuhl";
|
||||||
repo = "linux_notification_center";
|
repo = "linux_notification_center";
|
||||||
rev = "d31867472c35a09562c832b0a589479930c52b86";
|
rev = "f4b8e2b724d86def9e7b0e12ea624f95760352d5";
|
||||||
sha256 = "sha256-Arl4niscJPYCFWd4mw42IgNs+JsHsVpaTx86zEj3KFM=";
|
hash = "sha256-ClJfWqStULvmj5YRAUDAmn2WOSA2sVtyZsa+qSY51Gk=";
|
||||||
};
|
};
|
||||||
|
|
||||||
patches = [
|
isLibrary = false;
|
||||||
(fetchpatch {
|
|
||||||
url = "https://github.com/phuhl/linux_notification_center/commit/5244e1498574983322be97925e1ff7ebe456d974.patch";
|
isExecutable = true;
|
||||||
sha256 = "sha256-hbqbgBmuewOhtx0na2tmFa5W128ZrBvDcyPme/mRzlI=";
|
|
||||||
})
|
libraryHaskellDepends = with haskellPackages; [
|
||||||
|
base bytestring ConfigFile containers dbus directory env-locale
|
||||||
|
filepath gi-cairo gi-gdk gi-gdkpixbuf gi-gio gi-glib gi-gobject
|
||||||
|
gi-gtk gi-pango haskell-gettext haskell-gi haskell-gi-base
|
||||||
|
hdaemonize here lens mtl process regex-tdfa setlocale split stm
|
||||||
|
tagsoup text time transformers tuple unix
|
||||||
];
|
];
|
||||||
|
|
||||||
nativeBuildInputs = [
|
executableHaskellDepends = with haskellPackages; [ base ];
|
||||||
autoPatchelfHook
|
|
||||||
wrapGAppsHook
|
|
||||||
];
|
|
||||||
|
|
||||||
buildInputs = [
|
# Test suite does nothing.
|
||||||
gtk3
|
doCheck = false;
|
||||||
gobject-introspection
|
|
||||||
libxml2
|
|
||||||
hicolor-icon-theme
|
|
||||||
];
|
|
||||||
|
|
||||||
buildFlags = [
|
# Add systemd user unit.
|
||||||
# Exclude stack from `make all` to use the prebuilt binary from .out/
|
postInstall = ''
|
||||||
"service"
|
mkdir -p $out/lib/systemd/user
|
||||||
];
|
echo "${systemd-service}" > $out/lib/systemd/user/deadd-notification-center.service
|
||||||
|
'';
|
||||||
|
|
||||||
makeFlags = [
|
description = "A haskell-written notification center for users that like a desktop with style";
|
||||||
"PREFIX=${placeholder "out"}"
|
homepage = "https://github.com/phuhl/linux_notification_center";
|
||||||
"SERVICEDIR_SYSTEMD=${placeholder "out"}/etc/systemd/user"
|
license = lib.licenses.bsd3;
|
||||||
"SERVICEDIR_DBUS=${placeholder "out"}/share/dbus-1/services"
|
maintainers = with lib.maintainers; [ melkor333 sna ];
|
||||||
# Override systemd auto-detection.
|
platforms = lib.platforms.linux;
|
||||||
"SYSTEMD=1"
|
|
||||||
];
|
|
||||||
|
|
||||||
meta = with lib; {
|
|
||||||
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;
|
|
||||||
};
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -30349,7 +30349,7 @@ with pkgs;
|
||||||
|
|
||||||
linvstmanager = qt5.callPackage ../applications/audio/linvstmanager { };
|
linvstmanager = qt5.callPackage ../applications/audio/linvstmanager { };
|
||||||
|
|
||||||
deadd-notification-center = callPackage ../applications/misc/deadd-notification-center { };
|
deadd-notification-center = haskell.lib.compose.justStaticExecutables (haskellPackages.callPackage ../applications/misc/deadd-notification-center { });
|
||||||
|
|
||||||
lollypop = callPackage ../applications/audio/lollypop { };
|
lollypop = callPackage ../applications/audio/lollypop { };
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue