2021-02-05 17:12:51 +00:00
|
|
|
{ lib, stdenv, fetchFromGitHub, meson, ninja, pkg-config, scdoc
|
2024-02-29 20:09:43 +00:00
|
|
|
, systemd, pango, cairo, gdk-pixbuf, jq, bash
|
2020-04-24 23:36:52 +00:00
|
|
|
, wayland, wayland-protocols
|
|
|
|
, wrapGAppsHook }:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "mako";
|
2023-07-15 17:15:38 +00:00
|
|
|
version = "1.8.0";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "emersion";
|
|
|
|
repo = pname;
|
|
|
|
rev = "v${version}";
|
2023-07-15 17:15:38 +00:00
|
|
|
sha256 = "sha256-sUFMcCrc5iNPeAmRbqDaT/n8OIlFJEwJTzY1HMx94RU=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2023-04-29 16:46:19 +00:00
|
|
|
depsBuildBuild = [ pkg-config ];
|
2021-02-05 17:12:51 +00:00
|
|
|
nativeBuildInputs = [ meson ninja pkg-config scdoc wayland-protocols wrapGAppsHook ];
|
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
|
|
|
)
|
|
|
|
'';
|
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
meta = with lib; {
|
2020-04-24 23:36:52 +00:00
|
|
|
description = "A lightweight Wayland notification daemon";
|
|
|
|
homepage = "https://wayland.emersion.fr/mako/";
|
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = with maintainers; [ dywedir synthetica ];
|
|
|
|
platforms = platforms.linux;
|
2024-01-02 11:29:13 +00:00
|
|
|
mainProgram = "mako";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
}
|