2020-02-29 16:59:51 +01:00
|
|
|
{ stdenv
|
2020-02-29 17:14:42 +01:00
|
|
|
, fetchFromGitLab
|
2020-04-25 08:23:41 +02:00
|
|
|
, fetchpatch
|
2020-02-29 16:59:51 +01:00
|
|
|
, meson
|
|
|
|
, ninja
|
|
|
|
, pkgconfig
|
|
|
|
, doxygen
|
|
|
|
, graphviz
|
|
|
|
, valgrind
|
|
|
|
, glib
|
|
|
|
, dbus
|
|
|
|
, gst_all_1
|
|
|
|
, alsaLib
|
|
|
|
, ffmpeg
|
|
|
|
, libjack2
|
|
|
|
, udev
|
|
|
|
, libva
|
|
|
|
, xorg
|
|
|
|
, sbc
|
|
|
|
, SDL2
|
2020-02-29 17:14:42 +01:00
|
|
|
, libsndfile
|
|
|
|
, bluez
|
|
|
|
, vulkan-headers
|
|
|
|
, vulkan-loader
|
|
|
|
, libpulseaudio
|
2020-02-29 16:59:51 +01:00
|
|
|
, makeFontsConf
|
2017-11-14 04:41:25 +01:00
|
|
|
}:
|
|
|
|
|
|
|
|
let
|
2018-02-27 17:15:13 +01:00
|
|
|
fontsConf = makeFontsConf {
|
2020-02-29 16:59:51 +01:00
|
|
|
fontDirectories = [];
|
2018-02-27 17:15:13 +01:00
|
|
|
};
|
2020-02-29 16:59:51 +01:00
|
|
|
in
|
|
|
|
stdenv.mkDerivation rec {
|
2019-06-02 14:48:09 +02:00
|
|
|
pname = "pipewire";
|
2020-04-08 18:06:12 +02:00
|
|
|
version = "0.3.2";
|
2017-11-14 04:41:25 +01:00
|
|
|
|
2020-02-29 16:59:51 +01:00
|
|
|
outputs = [ "out" "lib" "dev" "doc" ];
|
|
|
|
|
2020-02-29 17:14:42 +01:00
|
|
|
src = fetchFromGitLab {
|
|
|
|
domain = "gitlab.freedesktop.org";
|
|
|
|
owner = "pipewire";
|
2017-11-14 04:41:25 +01:00
|
|
|
repo = "pipewire";
|
|
|
|
rev = version;
|
2020-04-08 18:06:12 +02:00
|
|
|
sha256 = "U7lqvn2vMIxARNplzNX9H3Ztlfv1IH8LozJsq7JSEKs=";
|
2017-11-14 04:41:25 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [
|
2020-02-29 16:59:51 +01:00
|
|
|
doxygen
|
|
|
|
graphviz
|
|
|
|
meson
|
|
|
|
ninja
|
|
|
|
pkgconfig
|
|
|
|
valgrind
|
2017-11-14 04:41:25 +01:00
|
|
|
];
|
2020-02-29 16:59:51 +01:00
|
|
|
|
2017-11-14 04:41:25 +01:00
|
|
|
buildInputs = [
|
2020-02-29 16:59:51 +01:00
|
|
|
SDL2
|
|
|
|
alsaLib
|
2020-02-29 17:14:42 +01:00
|
|
|
bluez
|
2020-02-29 16:59:51 +01:00
|
|
|
dbus
|
|
|
|
ffmpeg
|
|
|
|
glib
|
|
|
|
gst_all_1.gst-plugins-base
|
|
|
|
gst_all_1.gstreamer
|
|
|
|
libjack2
|
2020-02-29 17:14:42 +01:00
|
|
|
libpulseaudio
|
|
|
|
libsndfile
|
2020-02-29 16:59:51 +01:00
|
|
|
libva
|
|
|
|
sbc
|
|
|
|
udev
|
2020-02-29 17:14:42 +01:00
|
|
|
vulkan-headers
|
|
|
|
vulkan-loader
|
2020-02-29 16:59:51 +01:00
|
|
|
xorg.libX11
|
2017-11-14 04:41:25 +01:00
|
|
|
];
|
2020-04-25 08:23:41 +02:00
|
|
|
patches = [
|
|
|
|
# fix SIGILL in fmt-ops: https://gitlab.freedesktop.org/pipewire/pipewire/-/issues/227
|
|
|
|
(fetchpatch {
|
|
|
|
url = "https://gitlab.freedesktop.org/pipewire/pipewire/-/commit/1b3aaba206f48e75bb34ff0cd00321bd3d6db2b4.patch";
|
|
|
|
sha256 = "08bmr9k2r0q4r7vhhm28k558nk3mz3jfnqswvq9mcj7p0srmfb4x";
|
|
|
|
})
|
|
|
|
];
|
2017-11-14 04:41:25 +01:00
|
|
|
|
|
|
|
mesonFlags = [
|
2018-08-20 17:03:55 +02:00
|
|
|
"-Ddocs=true"
|
2020-02-29 17:14:42 +01:00
|
|
|
"-Dman=false" # we don't have xmltoman
|
|
|
|
"-Dgstreamer=true"
|
2017-11-14 04:41:25 +01:00
|
|
|
];
|
|
|
|
|
2018-02-27 17:15:13 +01:00
|
|
|
FONTCONFIG_FILE = fontsConf; # Fontconfig error: Cannot load default config file
|
|
|
|
|
2017-11-14 04:41:25 +01:00
|
|
|
doCheck = true;
|
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
|
|
|
description = "Server and user space API to deal with multimedia pipelines";
|
2020-04-01 03:11:51 +02:00
|
|
|
homepage = "https://pipewire.org/";
|
2020-02-29 17:14:42 +01:00
|
|
|
license = licenses.mit;
|
2017-11-14 04:41:25 +01:00
|
|
|
platforms = platforms.linux;
|
|
|
|
maintainers = with maintainers; [ jtojnar ];
|
|
|
|
};
|
|
|
|
}
|