depot/third_party/nixpkgs/pkgs/by-name/ma/mako/package.nix
Default email bcb2f287e1 Project import generated by Copybara.
GitOrigin-RevId: d603719ec6e294f034936c0d0dc06f689d91b6c3
2024-06-20 20:27:18 +05:30

55 lines
1.2 KiB
Nix

{ lib
, stdenv
, fetchFromGitHub
, meson
, ninja
, pkg-config
, scdoc
, systemd
, pango
, cairo
, gdk-pixbuf
, jq
, bash
, wayland
, wayland-scanner
, wayland-protocols
, wrapGAppsHook3
}:
stdenv.mkDerivation (finalAttrs: {
pname = "mako";
version = "1.9.0";
src = fetchFromGitHub {
owner = "emersion";
repo = "mako";
rev = "refs/tags/v${finalAttrs.version}";
sha256 = "sha256-QtYtondP7E5QXLRnmcaOQlAm9fKXctfjxeUFqK6FnnE=";
};
strictDeps = true;
depsBuildBuild = [ pkg-config ];
nativeBuildInputs = [ meson ninja pkg-config scdoc wayland-protocols wrapGAppsHook3 wayland-scanner ];
buildInputs = [ systemd pango cairo gdk-pixbuf wayland ];
mesonFlags = [
"-Dzsh-completions=true"
"-Dsd-bus-provider=libsystemd"
];
preFixup = ''
gappsWrapperArgs+=(
--prefix PATH : "${lib.makeBinPath [ systemd /* for busctl */ jq bash ]}"
)
'';
meta = {
description = "Lightweight Wayland notification daemon";
homepage = "https://wayland.emersion.fr/mako/";
license = lib.licenses.mit;
maintainers = with lib.maintainers; [ dywedir synthetica ];
platforms = lib.platforms.linux;
mainProgram = "mako";
};
})