25 mesonEnableFeature = b: if b then "enabled" else "disabled";
27 stdenv.mkDerivation rec {
28 pname = "wireplumber";
31 outputs = [ "out" "dev" ] ++ lib.optional enableDocs "doc";
33 src = fetchFromGitLab {
34 domain = "gitlab.freedesktop.org";
38 sha256 = "sha256-2qM6sX807v/3DZXTuBvUSGV8+cPB87rWYb+HTDCm3kw=";
45 ] ++ lib.optionals enableDocs [
47 ] ++ lib.optionals enableGI [
49 ] ++ lib.optionals (enableDocs || enableGI) [
51 (python3.pythonForBuild.withPackages (ps: with ps;
52 lib.optionals enableDocs [ sphinx sphinx-rtd-theme breathe ] ++
53 lib.optionals enableGI [ lxml ]
67 "-Ddoc=${mesonEnableFeature enableDocs}"
68 "-Dintrospection=${mesonEnableFeature enableGI}"
69 "-Dsystemd-system-service=true"
70 "-Dsystemd-system-unit-dir=${placeholder "out"}/lib/systemd/system"
74 passthru.updateScript = nix-update-script {
79 description = "A modular session / policy manager for PipeWire";
80 homepage = "https://pipewire.org";
81 license = licenses.mit;
82 platforms = platforms.linux;
83 maintainers = with maintainers; [ k900 ];