2021-01-17 02:09:27 +00:00
|
|
|
{ lib, stdenv, fetchFromGitHub, meson, ninja, pkg-config, scdoc
|
2023-02-23 11:09:47 +00:00
|
|
|
, systemd, pango, cairo, gdk-pixbuf, jq
|
2020-04-11 03:00:18 +00:00
|
|
|
, wayland, wayland-protocols
|
|
|
|
, wrapGAppsHook }:
|
2018-10-23 20:12:44 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2019-04-19 14:49:29 +00:00
|
|
|
pname = "mako";
|
2022-07-06 18:53:36 +00:00
|
|
|
version = "1.7.1";
|
2018-10-23 20:12:44 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "emersion";
|
2019-04-19 14:49:29 +00:00
|
|
|
repo = pname;
|
2018-10-23 20:12:44 +00:00
|
|
|
rev = "v${version}";
|
2022-07-06 18:53:36 +00:00
|
|
|
sha256 = "sha256-/+XYf8FiH4lk7f7/pMt43hm13mRK+UqvaNOpf1TI6m4=";
|
2018-10-23 20:12:44 +00:00
|
|
|
};
|
|
|
|
|
2023-04-22 15:17:39 +00:00
|
|
|
depsBuildBuild = [ pkg-config ];
|
2021-01-17 02:09:27 +00:00
|
|
|
nativeBuildInputs = [ meson ninja pkg-config scdoc wayland-protocols wrapGAppsHook ];
|
2019-05-22 11:03:39 +00:00
|
|
|
buildInputs = [ systemd pango cairo gdk-pixbuf wayland ];
|
2019-04-19 14:49:29 +00:00
|
|
|
|
2021-05-03 18:29:22 +00:00
|
|
|
mesonFlags = [
|
|
|
|
"-Dzsh-completions=true"
|
|
|
|
"-Dsd-bus-provider=libsystemd"
|
|
|
|
];
|
2018-10-23 20:12:44 +00:00
|
|
|
|
2023-02-23 11:09:47 +00:00
|
|
|
preFixup = ''
|
|
|
|
gappsWrapperArgs+=(
|
|
|
|
--prefix PATH : "${lib.makeBinPath [ systemd /* for busctl */ jq ]}"
|
|
|
|
)
|
|
|
|
'';
|
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2018-10-23 20:12:44 +00:00
|
|
|
description = "A lightweight Wayland notification daemon";
|
2020-04-01 01:11:51 +00:00
|
|
|
homepage = "https://wayland.emersion.fr/mako/";
|
2018-10-23 20:12:44 +00:00
|
|
|
license = licenses.mit;
|
2020-01-12 14:51:24 +00:00
|
|
|
maintainers = with maintainers; [ dywedir synthetica ];
|
2018-10-23 20:12:44 +00:00
|
|
|
platforms = platforms.linux;
|
|
|
|
};
|
|
|
|
}
|