depot/third_party/nixpkgs/pkgs/development/libraries/pipewire/default.nix
Default email 0eaa97ffad Project import generated by Copybara.
GitOrigin-RevId: c59ea8b8a0e7f927e7291c14ea6cd1bd3a16ff38
2020-08-20 19:08:02 +02:00

94 lines
1.5 KiB
Nix

{ stdenv
, fetchFromGitLab
, fetchpatch
, meson
, ninja
, pkgconfig
, doxygen
, graphviz
, valgrind
, glib
, dbus
, gst_all_1
, alsaLib
, ffmpeg_3
, libjack2
, udev
, libva
, xorg
, sbc
, SDL2
, libsndfile
, bluez
, vulkan-headers
, vulkan-loader
, libpulseaudio
, makeFontsConf
}:
let
fontsConf = makeFontsConf {
fontDirectories = [];
};
in
stdenv.mkDerivation rec {
pname = "pipewire";
version = "0.3.7";
outputs = [ "out" "lib" "dev" "doc" ];
src = fetchFromGitLab {
domain = "gitlab.freedesktop.org";
owner = "pipewire";
repo = "pipewire";
rev = version;
sha256 = "04l66p0wj553gp2zf3vwwh6jbr1vkf6wrq4za9zlm9dn144am4j2";
};
nativeBuildInputs = [
doxygen
graphviz
meson
ninja
pkgconfig
valgrind
];
buildInputs = [
SDL2
alsaLib
bluez
dbus
ffmpeg_3
glib
gst_all_1.gst-plugins-base
gst_all_1.gstreamer
libjack2
libpulseaudio
libsndfile
libva
sbc
udev
vulkan-headers
vulkan-loader
xorg.libX11
];
mesonFlags = [
"-Ddocs=true"
"-Dman=false" # we don't have xmltoman
"-Dgstreamer=true"
];
FONTCONFIG_FILE = fontsConf; # Fontconfig error: Cannot load default config file
doCheck = true;
meta = with stdenv.lib; {
description = "Server and user space API to deal with multimedia pipelines";
homepage = "https://pipewire.org/";
license = licenses.mit;
platforms = platforms.linux;
maintainers = with maintainers; [ jtojnar ];
};
}