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