2022-02-10 20:34:41 +00:00
|
|
|
{ lib
|
|
|
|
, stdenv
|
|
|
|
, fetchFromGitHub
|
2022-08-21 13:32:41 +00:00
|
|
|
, testers
|
2024-05-15 15:35:15 +00:00
|
|
|
, wrapGAppsHook3
|
2022-08-21 13:32:41 +00:00
|
|
|
, bash-completion
|
|
|
|
, dbus
|
|
|
|
, dbus-glib
|
|
|
|
, fish
|
|
|
|
, gdk-pixbuf
|
|
|
|
, glib
|
|
|
|
, gobject-introspection
|
|
|
|
, gtk-layer-shell
|
|
|
|
, gtk3
|
2024-05-15 15:35:15 +00:00
|
|
|
, gvfs
|
2022-08-21 13:32:41 +00:00
|
|
|
, json-glib
|
2023-03-04 12:14:45 +00:00
|
|
|
, libgee
|
2022-08-21 13:32:41 +00:00
|
|
|
, libhandy
|
2024-05-15 15:35:15 +00:00
|
|
|
, libnotify
|
2023-03-04 12:14:45 +00:00
|
|
|
, libpulseaudio
|
2022-08-21 13:32:41 +00:00
|
|
|
, 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
|
2024-02-29 20:09:43 +00:00
|
|
|
, sassc
|
|
|
|
, pantheon
|
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";
|
2024-04-21 15:54:59 +00:00
|
|
|
version = "0.10.1";
|
2022-02-10 20:34:41 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "ErikReider";
|
2023-07-15 17:15:38 +00:00
|
|
|
repo = pname;
|
2022-02-10 20:34:41 +00:00
|
|
|
rev = "v${version}";
|
2024-04-21 15:54:59 +00:00
|
|
|
hash = "sha256-SR3FfEit50y4XSCLh3raUoigRNXpxh0mk4qLhQ/FozM=";
|
2022-02-10 20:34:41 +00:00
|
|
|
};
|
|
|
|
|
2024-02-29 20:09:43 +00:00
|
|
|
# build pkg-config is required to locate the native `scdoc` input
|
|
|
|
depsBuildBuild = [ pkg-config ];
|
2023-10-09 19:29:22 +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
|
2024-02-29 20:09:43 +00:00
|
|
|
sassc
|
2022-08-21 13:32:41 +00:00
|
|
|
scdoc
|
|
|
|
vala
|
2024-05-15 15:35:15 +00:00
|
|
|
wrapGAppsHook3
|
2022-08-21 13:32:41 +00:00
|
|
|
];
|
|
|
|
|
|
|
|
buildInputs = [
|
|
|
|
dbus
|
|
|
|
dbus-glib
|
|
|
|
gdk-pixbuf
|
|
|
|
glib
|
|
|
|
gtk-layer-shell
|
|
|
|
gtk3
|
2024-05-15 15:35:15 +00:00
|
|
|
gvfs
|
2022-08-21 13:32:41 +00:00
|
|
|
json-glib
|
2023-03-04 12:14:45 +00:00
|
|
|
libgee
|
2022-08-21 13:32:41 +00:00
|
|
|
libhandy
|
2024-05-15 15:35:15 +00:00
|
|
|
libnotify
|
2023-03-04 12:14:45 +00:00
|
|
|
libpulseaudio
|
2022-08-21 13:32:41 +00:00
|
|
|
librsvg
|
2024-02-29 20:09:43 +00:00
|
|
|
pantheon.granite
|
2022-08-21 13:32:41 +00:00
|
|
|
# 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
|
2024-04-21 15:54:59 +00:00
|
|
|
substituteInPlace src/functions.vala --replace "/usr/local/etc/xdg/swaync" "$out/etc/xdg/swaync"
|
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";
|
2023-03-04 12:14:45 +00:00
|
|
|
changelog = "https://github.com/ErikReider/SwayNotificationCenter/releases/tag/v${version}";
|
2022-02-10 20:34:41 +00:00
|
|
|
license = licenses.gpl3;
|
|
|
|
platforms = platforms.linux;
|
2023-05-24 13:37:59 +00:00
|
|
|
mainProgram = "swaync";
|
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
|
|
|
})
|