mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-07-13 21:50:33 +03:00
wireplumber: init at 0.4.6
This commit is contained in:
parent
7377d7276b
commit
9972c89fd0
2 changed files with 83 additions and 0 deletions
82
pkgs/development/libraries/pipewire/wireplumber.nix
Normal file
82
pkgs/development/libraries/pipewire/wireplumber.nix
Normal file
|
@ -0,0 +1,82 @@
|
|||
{ 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 ? stdenv.hostPlatform == stdenv.buildPlatform
|
||||
}:
|
||||
let
|
||||
mesonEnableFeature = b: if b then "enabled" else "disabled";
|
||||
in
|
||||
stdenv.mkDerivation rec {
|
||||
pname = "wireplumber";
|
||||
version = "0.4.6";
|
||||
|
||||
outputs = [ "out" "dev" ] ++ lib.optional enableDocs "doc";
|
||||
|
||||
src = fetchFromGitLab {
|
||||
domain = "gitlab.freedesktop.org";
|
||||
owner = "pipewire";
|
||||
repo = "wireplumber";
|
||||
rev = version;
|
||||
sha256 = "sha256-y+Gj9EZn67W3U81zXgp+6JAFxZSZTwwT0TB3Kueb/Tw=";
|
||||
};
|
||||
|
||||
nativeBuildInputs = [
|
||||
meson
|
||||
pkg-config
|
||||
ninja
|
||||
] ++ lib.optionals enableDocs [
|
||||
graphviz
|
||||
] ++ lib.optionals enableGI [
|
||||
gobject-introspection
|
||||
] ++ lib.optionals (enableDocs || enableGI) [
|
||||
doxygen
|
||||
(python3.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}"
|
||||
];
|
||||
|
||||
passthru.updateScript = nix-update-script {
|
||||
attrPath = pname;
|
||||
};
|
||||
|
||||
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 ];
|
||||
};
|
||||
}
|
|
@ -13777,6 +13777,7 @@ with pkgs;
|
|||
pipewire = callPackage ../development/libraries/pipewire {};
|
||||
pipewire-media-session = callPackage ../development/libraries/pipewire/media-session.nix {};
|
||||
pipewire_0_2 = callPackage ../development/libraries/pipewire/0.2.nix {};
|
||||
wireplumber = callPackage ../development/libraries/pipewire/wireplumber.nix {};
|
||||
|
||||
pyradio = callPackage ../applications/audio/pyradio {};
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue