Files
Dark Steveneq 646b892680
Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
push sheeet
2025-10-09 14:15:47 +02:00

96 lines
1.8 KiB
Nix

{
lib,
stdenv,
fetchFromGitLab,
nix-update-script,
# base build deps
meson,
pkg-config,
ninja,
# docs build deps
python3,
doxygen,
graphviz,
# GI build deps
gobject-introspection,
# runtime deps
glib,
systemd,
lua5_4,
pipewire,
# options
enableDocs ? true,
enableGI ? true,
}:
stdenv.mkDerivation rec {
pname = "wireplumber";
version = "0.5.11";
outputs = [
"out"
"dev"
]
++ lib.optional enableDocs "doc";
src = fetchFromGitLab {
domain = "gitlab.freedesktop.org";
owner = "pipewire";
repo = "wireplumber";
rev = version;
hash = "sha256-ZTduzHeEBqcranJxHhNnfZE5PV/by5ZUaale9W6AJrE=";
};
nativeBuildInputs = [
meson
pkg-config
ninja
]
++ lib.optionals enableDocs [
graphviz
]
++ lib.optionals enableGI [
gobject-introspection
]
++ lib.optionals (enableDocs || enableGI) [
doxygen
(python3.pythonOnBuildForHost.withPackages (
ps:
with ps;
lib.optionals enableDocs [
sphinx
sphinx-rtd-theme
breathe
]
++ lib.optionals enableGI [ lxml ]
))
];
buildInputs = [
glib
systemd
lua5_4
pipewire
];
mesonFlags = [
(lib.mesonBool "system-lua" true)
(lib.mesonEnable "elogind" false)
(lib.mesonEnable "doc" enableDocs)
(lib.mesonEnable "introspection" enableGI)
(lib.mesonBool "systemd-system-service" true)
(lib.mesonOption "systemd-system-unit-dir" "${placeholder "out"}/lib/systemd/system")
(lib.mesonOption "sysconfdir" "/etc")
];
passthru.updateScript = nix-update-script { };
meta = with lib; {
description = "Modular session / policy manager for PipeWire";
homepage = "https://pipewire.org";
license = licenses.mit;
platforms = platforms.linux;
maintainers = with maintainers; [ k900 ];
};
}