mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-26 23:54:01 +00:00
a211d94291
after https://github.com/Mic92/nix-update/pull/120 and https://github.com/NixOS/nixpkgs/pull/207703, `attrPath` can now be omitted when using `nix-update-script`
84 lines
1.7 KiB
Nix
84 lines
1.7 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
|
|
}:
|
|
let
|
|
mesonEnableFeature = b: if b then "enabled" else "disabled";
|
|
in
|
|
stdenv.mkDerivation rec {
|
|
pname = "wireplumber";
|
|
version = "0.4.13";
|
|
|
|
outputs = [ "out" "dev" ] ++ lib.optional enableDocs "doc";
|
|
|
|
src = fetchFromGitLab {
|
|
domain = "gitlab.freedesktop.org";
|
|
owner = "pipewire";
|
|
repo = "wireplumber";
|
|
rev = version;
|
|
sha256 = "sha256-Zz8N6OPwZ4Dwaygiy46C3sN9zPGC12+55S/qns+S+h4=";
|
|
};
|
|
|
|
nativeBuildInputs = [
|
|
meson
|
|
pkg-config
|
|
ninja
|
|
] ++ lib.optionals enableDocs [
|
|
graphviz
|
|
] ++ lib.optionals enableGI [
|
|
gobject-introspection
|
|
] ++ lib.optionals (enableDocs || enableGI) [
|
|
doxygen
|
|
(python3.pythonForBuild.withPackages (ps: with ps;
|
|
lib.optionals enableDocs [ sphinx sphinx-rtd-theme breathe ] ++
|
|
lib.optionals enableGI [ lxml ]
|
|
))
|
|
];
|
|
|
|
buildInputs = [
|
|
glib
|
|
systemd
|
|
lua5_4
|
|
pipewire
|
|
];
|
|
|
|
mesonFlags = [
|
|
"-Dsystem-lua=true"
|
|
"-Delogind=disabled"
|
|
"-Ddoc=${mesonEnableFeature enableDocs}"
|
|
"-Dintrospection=${mesonEnableFeature enableGI}"
|
|
"-Dsystemd-system-service=true"
|
|
"-Dsystemd-system-unit-dir=${placeholder "out"}/lib/systemd/system"
|
|
"-Dsysconfdir=/etc"
|
|
];
|
|
|
|
passthru.updateScript = nix-update-script { };
|
|
|
|
meta = with lib; {
|
|
description = "A modular session / policy manager for PipeWire";
|
|
homepage = "https://pipewire.org";
|
|
license = licenses.mit;
|
|
platforms = platforms.linux;
|
|
maintainers = with maintainers; [ k900 ];
|
|
};
|
|
}
|