mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-23 22:23:15 +00:00
2a251817f4
Bumps to new version, including thsese changes: - Includes new deps: libgee and libpulseaudio; - Adds meta.changelog; - Release changelog: https://github.com/ErikReider/SwayNotificationCenter/releases/tag/v0.8.0 - Full changelog: https://github.com/ErikReider/SwayNotificationCenter/compare/v0.7.3...v0.8.0
89 lines
1.6 KiB
Nix
89 lines
1.6 KiB
Nix
{ lib
|
|
, stdenv
|
|
, fetchFromGitHub
|
|
, testers
|
|
, wrapGAppsHook
|
|
, bash-completion
|
|
, dbus
|
|
, dbus-glib
|
|
, fish
|
|
, gdk-pixbuf
|
|
, glib
|
|
, gobject-introspection
|
|
, gtk-layer-shell
|
|
, gtk3
|
|
, json-glib
|
|
, libgee
|
|
, libhandy
|
|
, libpulseaudio
|
|
, librsvg
|
|
, meson
|
|
, ninja
|
|
, pkg-config
|
|
, python3
|
|
, scdoc
|
|
, vala
|
|
, xvfb-run
|
|
}:
|
|
|
|
stdenv.mkDerivation (finalAttrs: rec {
|
|
pname = "SwayNotificationCenter";
|
|
version = "0.8.0";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "ErikReider";
|
|
repo = "SwayNotificationCenter";
|
|
rev = "v${version}";
|
|
hash = "sha256-E9CjNx/xzkkOZ39XbfIb1nJFheZVFpj/lwmITKtpb7A=";
|
|
};
|
|
|
|
nativeBuildInputs = [
|
|
bash-completion
|
|
# cmake # currently conflicts with meson
|
|
fish
|
|
glib
|
|
gobject-introspection
|
|
meson
|
|
ninja
|
|
pkg-config
|
|
python3
|
|
scdoc
|
|
vala
|
|
wrapGAppsHook
|
|
];
|
|
|
|
buildInputs = [
|
|
dbus
|
|
dbus-glib
|
|
gdk-pixbuf
|
|
glib
|
|
gtk-layer-shell
|
|
gtk3
|
|
json-glib
|
|
libgee
|
|
libhandy
|
|
libpulseaudio
|
|
librsvg
|
|
# systemd # ends with broken permission
|
|
];
|
|
|
|
postPatch = ''
|
|
chmod +x build-aux/meson/postinstall.py
|
|
patchShebangs build-aux/meson/postinstall.py
|
|
'';
|
|
|
|
passthru.tests.version = testers.testVersion {
|
|
package = finalAttrs.finalPackage;
|
|
command = "${xvfb-run}/bin/xvfb-run swaync --version";
|
|
};
|
|
|
|
meta = with lib; {
|
|
description = "Simple notification daemon with a GUI built for Sway";
|
|
homepage = "https://github.com/ErikReider/SwayNotificationCenter";
|
|
changelog = "https://github.com/ErikReider/SwayNotificationCenter/releases/tag/v${version}";
|
|
license = licenses.gpl3;
|
|
platforms = platforms.linux;
|
|
maintainers = with maintainers; [ berbiche pedrohlc ];
|
|
};
|
|
})
|