2024-06-20 14:57:18 +00:00
|
|
|
{ lib
|
|
|
|
, stdenv
|
|
|
|
, fetchFromGitHub
|
|
|
|
, meson
|
|
|
|
, ninja
|
|
|
|
, pkg-config
|
|
|
|
, scdoc
|
|
|
|
, systemd
|
|
|
|
, pango
|
|
|
|
, cairo
|
|
|
|
, gdk-pixbuf
|
|
|
|
, jq
|
|
|
|
, bash
|
|
|
|
, wayland
|
|
|
|
, wayland-scanner
|
|
|
|
, wayland-protocols
|
|
|
|
, wrapGAppsHook3
|
|
|
|
}:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2024-05-15 15:35:15 +00:00
|
|
|
stdenv.mkDerivation (finalAttrs: {
|
2020-04-24 23:36:52 +00:00
|
|
|
pname = "mako";
|
2024-05-15 15:35:15 +00:00
|
|
|
version = "1.9.0";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "emersion";
|
2024-05-15 15:35:15 +00:00
|
|
|
repo = "mako";
|
|
|
|
rev = "refs/tags/v${finalAttrs.version}";
|
|
|
|
sha256 = "sha256-QtYtondP7E5QXLRnmcaOQlAm9fKXctfjxeUFqK6FnnE=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2024-06-20 14:57:18 +00:00
|
|
|
strictDeps = true;
|
|
|
|
depsBuildBuild = [ pkg-config ];
|
|
|
|
nativeBuildInputs = [ meson ninja pkg-config scdoc wayland-protocols wrapGAppsHook3 wayland-scanner ];
|
2020-04-24 23:36:52 +00:00
|
|
|
buildInputs = [ systemd pango cairo gdk-pixbuf wayland ];
|
|
|
|
|
2021-05-03 20:48:10 +00:00
|
|
|
mesonFlags = [
|
|
|
|
"-Dzsh-completions=true"
|
|
|
|
"-Dsd-bus-provider=libsystemd"
|
|
|
|
];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2023-04-12 12:48:02 +00:00
|
|
|
preFixup = ''
|
|
|
|
gappsWrapperArgs+=(
|
2024-02-29 20:09:43 +00:00
|
|
|
--prefix PATH : "${lib.makeBinPath [ systemd /* for busctl */ jq bash ]}"
|
2023-04-12 12:48:02 +00:00
|
|
|
)
|
|
|
|
'';
|
|
|
|
|
2024-05-15 15:35:15 +00:00
|
|
|
meta = {
|
2024-06-20 14:57:18 +00:00
|
|
|
description = "Lightweight Wayland notification daemon";
|
2020-04-24 23:36:52 +00:00
|
|
|
homepage = "https://wayland.emersion.fr/mako/";
|
2024-05-15 15:35:15 +00:00
|
|
|
license = lib.licenses.mit;
|
|
|
|
maintainers = with lib.maintainers; [ dywedir synthetica ];
|
|
|
|
platforms = lib.platforms.linux;
|
2024-01-02 11:29:13 +00:00
|
|
|
mainProgram = "mako";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
2024-05-15 15:35:15 +00:00
|
|
|
})
|