2021-12-14 06:26:23 +00:00
|
|
|
{ lib
|
|
|
|
, stdenv
|
|
|
|
, fetchFromGitHub
|
2022-08-16 22:40:41 +00:00
|
|
|
, testers
|
|
|
|
, wrapGAppsHook
|
|
|
|
, bash-completion
|
|
|
|
, dbus
|
|
|
|
, dbus-glib
|
|
|
|
, fish
|
|
|
|
, gdk-pixbuf
|
|
|
|
, glib
|
|
|
|
, gobject-introspection
|
|
|
|
, gtk-layer-shell
|
|
|
|
, gtk3
|
|
|
|
, json-glib
|
2023-02-26 13:37:30 +00:00
|
|
|
, libgee
|
2022-08-16 22:40:41 +00:00
|
|
|
, libhandy
|
2023-02-26 13:37:30 +00:00
|
|
|
, libpulseaudio
|
2022-08-16 22:40:41 +00:00
|
|
|
, librsvg
|
2021-12-14 06:26:23 +00:00
|
|
|
, meson
|
|
|
|
, ninja
|
|
|
|
, pkg-config
|
2022-09-15 21:52:48 +00:00
|
|
|
, python3
|
2022-05-01 14:05:24 +00:00
|
|
|
, scdoc
|
2021-12-14 06:26:23 +00:00
|
|
|
, vala
|
2022-08-16 22:40:41 +00:00
|
|
|
, xvfb-run
|
2021-12-14 06:26:23 +00:00
|
|
|
}:
|
|
|
|
|
2022-08-16 22:40:41 +00:00
|
|
|
stdenv.mkDerivation (finalAttrs: rec {
|
2021-12-14 06:26:23 +00:00
|
|
|
pname = "SwayNotificationCenter";
|
2023-02-26 13:37:30 +00:00
|
|
|
version = "0.8.0";
|
2021-12-14 06:26:23 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "ErikReider";
|
|
|
|
repo = "SwayNotificationCenter";
|
|
|
|
rev = "v${version}";
|
2023-02-26 13:37:30 +00:00
|
|
|
hash = "sha256-E9CjNx/xzkkOZ39XbfIb1nJFheZVFpj/lwmITKtpb7A=";
|
2021-12-14 06:26:23 +00:00
|
|
|
};
|
|
|
|
|
2022-08-16 22:40:41 +00:00
|
|
|
nativeBuildInputs = [
|
|
|
|
bash-completion
|
|
|
|
# cmake # currently conflicts with meson
|
|
|
|
fish
|
|
|
|
glib
|
|
|
|
gobject-introspection
|
|
|
|
meson
|
|
|
|
ninja
|
|
|
|
pkg-config
|
2022-09-15 21:52:48 +00:00
|
|
|
python3
|
2022-08-16 22:40:41 +00:00
|
|
|
scdoc
|
|
|
|
vala
|
|
|
|
wrapGAppsHook
|
|
|
|
];
|
|
|
|
|
|
|
|
buildInputs = [
|
|
|
|
dbus
|
|
|
|
dbus-glib
|
|
|
|
gdk-pixbuf
|
|
|
|
glib
|
|
|
|
gtk-layer-shell
|
|
|
|
gtk3
|
|
|
|
json-glib
|
2023-02-26 13:37:30 +00:00
|
|
|
libgee
|
2022-08-16 22:40:41 +00:00
|
|
|
libhandy
|
2023-02-26 13:37:30 +00:00
|
|
|
libpulseaudio
|
2022-08-16 22:40:41 +00:00
|
|
|
librsvg
|
|
|
|
# systemd # ends with broken permission
|
|
|
|
];
|
2021-12-14 06:26:23 +00:00
|
|
|
|
2022-09-15 21:52:48 +00:00
|
|
|
postPatch = ''
|
|
|
|
chmod +x build-aux/meson/postinstall.py
|
|
|
|
patchShebangs build-aux/meson/postinstall.py
|
2022-08-16 22:40:41 +00:00
|
|
|
'';
|
|
|
|
|
|
|
|
passthru.tests.version = testers.testVersion {
|
|
|
|
package = finalAttrs.finalPackage;
|
|
|
|
command = "${xvfb-run}/bin/xvfb-run swaync --version";
|
|
|
|
};
|
2021-12-14 06:26:23 +00:00
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Simple notification daemon with a GUI built for Sway";
|
|
|
|
homepage = "https://github.com/ErikReider/SwayNotificationCenter";
|
2023-02-26 13:37:30 +00:00
|
|
|
changelog = "https://github.com/ErikReider/SwayNotificationCenter/releases/tag/v${version}";
|
2021-12-14 06:26:23 +00:00
|
|
|
license = licenses.gpl3;
|
|
|
|
platforms = platforms.linux;
|
2022-08-16 22:40:41 +00:00
|
|
|
maintainers = with maintainers; [ berbiche pedrohlc ];
|
2021-12-14 06:26:23 +00:00
|
|
|
};
|
2022-08-16 22:40:41 +00:00
|
|
|
})
|