2022-02-10 20:34:41 +00:00
|
|
|
{ lib
|
|
|
|
, stdenv
|
|
|
|
, fetchFromGitHub
|
2022-08-21 13:32:41 +00:00
|
|
|
, testers
|
|
|
|
, wrapGAppsHook
|
|
|
|
, bash-completion
|
|
|
|
, dbus
|
|
|
|
, dbus-glib
|
|
|
|
, fish
|
|
|
|
, gdk-pixbuf
|
|
|
|
, glib
|
|
|
|
, gobject-introspection
|
|
|
|
, gtk-layer-shell
|
|
|
|
, gtk3
|
|
|
|
, json-glib
|
|
|
|
, libhandy
|
|
|
|
, librsvg
|
2022-02-10 20:34:41 +00:00
|
|
|
, meson
|
|
|
|
, ninja
|
|
|
|
, pkg-config
|
2022-09-22 12:36:57 +00:00
|
|
|
, python3
|
2022-05-18 14:49:53 +00:00
|
|
|
, scdoc
|
2022-02-10 20:34:41 +00:00
|
|
|
, vala
|
2022-08-21 13:32:41 +00:00
|
|
|
, xvfb-run
|
2022-02-10 20:34:41 +00:00
|
|
|
}:
|
|
|
|
|
2022-08-21 13:32:41 +00:00
|
|
|
stdenv.mkDerivation (finalAttrs: rec {
|
2022-02-10 20:34:41 +00:00
|
|
|
pname = "SwayNotificationCenter";
|
2022-09-30 11:47:45 +00:00
|
|
|
version = "0.7.2";
|
2022-02-10 20:34:41 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "ErikReider";
|
|
|
|
repo = "SwayNotificationCenter";
|
|
|
|
rev = "v${version}";
|
2022-09-30 11:47:45 +00:00
|
|
|
hash = "sha256-Z8CFSaH4RsZ/Qgj+l+36p7smbiGV5RRQhZBBcA3iyK8=";
|
2022-02-10 20:34:41 +00:00
|
|
|
};
|
|
|
|
|
2022-08-21 13:32:41 +00:00
|
|
|
nativeBuildInputs = [
|
|
|
|
bash-completion
|
|
|
|
# cmake # currently conflicts with meson
|
|
|
|
fish
|
|
|
|
glib
|
|
|
|
gobject-introspection
|
|
|
|
meson
|
|
|
|
ninja
|
|
|
|
pkg-config
|
2022-09-22 12:36:57 +00:00
|
|
|
python3
|
2022-08-21 13:32:41 +00:00
|
|
|
scdoc
|
|
|
|
vala
|
|
|
|
wrapGAppsHook
|
|
|
|
];
|
|
|
|
|
|
|
|
buildInputs = [
|
|
|
|
dbus
|
|
|
|
dbus-glib
|
|
|
|
gdk-pixbuf
|
|
|
|
glib
|
|
|
|
gtk-layer-shell
|
|
|
|
gtk3
|
|
|
|
json-glib
|
|
|
|
libhandy
|
|
|
|
librsvg
|
|
|
|
# systemd # ends with broken permission
|
|
|
|
];
|
2022-02-10 20:34:41 +00:00
|
|
|
|
2022-09-22 12:36:57 +00:00
|
|
|
postPatch = ''
|
|
|
|
chmod +x build-aux/meson/postinstall.py
|
|
|
|
patchShebangs build-aux/meson/postinstall.py
|
2022-08-21 13:32:41 +00:00
|
|
|
'';
|
|
|
|
|
|
|
|
passthru.tests.version = testers.testVersion {
|
|
|
|
package = finalAttrs.finalPackage;
|
|
|
|
command = "${xvfb-run}/bin/xvfb-run swaync --version";
|
|
|
|
};
|
2022-02-10 20:34:41 +00:00
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Simple notification daemon with a GUI built for Sway";
|
|
|
|
homepage = "https://github.com/ErikReider/SwayNotificationCenter";
|
|
|
|
license = licenses.gpl3;
|
|
|
|
platforms = platforms.linux;
|
2022-08-21 13:32:41 +00:00
|
|
|
maintainers = with maintainers; [ berbiche pedrohlc ];
|
2022-02-10 20:34:41 +00:00
|
|
|
};
|
2022-08-21 13:32:41 +00:00
|
|
|
})
|