diff options
author | Jörg Thalheim <Mic92@users.noreply.github.com> | 2022-01-04 07:40:45 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-01-04 07:40:45 +0000 |
commit | ff764c3b0f53a20b617c13d5c2f9f6429d4c4502 (patch) | |
tree | 00bd6bc154f5232de347c402876fd71e22501c09 /pkgs/development/libraries/audio | |
parent | a96c4d1474e011e746c203cf5697ee86a8f0d6d0 (diff) | |
parent | 105af2d840820e2d8b0999efde2308f433932a27 (diff) | |
download | nixpkgs-ff764c3b0f53a20b617c13d5c2f9f6429d4c4502.tar nixpkgs-ff764c3b0f53a20b617c13d5c2f9f6429d4c4502.tar.gz nixpkgs-ff764c3b0f53a20b617c13d5c2f9f6429d4c4502.tar.bz2 nixpkgs-ff764c3b0f53a20b617c13d5c2f9f6429d4c4502.tar.lz nixpkgs-ff764c3b0f53a20b617c13d5c2f9f6429d4c4502.tar.xz nixpkgs-ff764c3b0f53a20b617c13d5c2f9f6429d4c4502.tar.zst nixpkgs-ff764c3b0f53a20b617c13d5c2f9f6429d4c4502.zip |
Merge pull request #153087 from bgamari/wip/roc-toolkit
pipewire: introduce roc-toolkit support
Diffstat (limited to 'pkgs/development/libraries/audio')
-rw-r--r-- | pkgs/development/libraries/audio/roc-toolkit/default.nix | 63 |
1 files changed, 63 insertions, 0 deletions
diff --git a/pkgs/development/libraries/audio/roc-toolkit/default.nix b/pkgs/development/libraries/audio/roc-toolkit/default.nix new file mode 100644 index 00000000000..b8790298e71 --- /dev/null +++ b/pkgs/development/libraries/audio/roc-toolkit/default.nix @@ -0,0 +1,63 @@ +{ stdenv, + lib, + fetchFromGitHub, + sconsPackages, + ragel, + gengetopt, + pkg-config, + libuv, + openfecSupport ? true, + openfec, + libunwindSupport ? true, + libunwind, + pulseaudioSupport ? true, + libpulseaudio +}: + +stdenv.mkDerivation rec { + pname = "roc-toolkit"; + version = "0.1.5"; + + src = fetchFromGitHub { + owner = "roc-streaming"; + repo = "roc-toolkit"; + rev = "v${version}"; + sha256 = "sha256:1pld340zfch4p3qaf5anrspq7vmxrgf9ddsdsq92pk49axaaz19w"; + }; + + nativeBuildInputs = [ + sconsPackages.scons_3_0_1 + ragel + gengetopt + pkg-config + ]; + + buildInputs = [ + libuv + libunwind + openfec + libpulseaudio + ]; + + sconsFlags = + [ "--disable-sox" + "--disable-tests" ] ++ + lib.optional (!libunwindSupport) "--disable-libunwind" ++ + lib.optional (!pulseaudioSupport) "--disable-pulseaudio" ++ + (if (!openfecSupport) + then ["--disable-openfec"] + else [ "--with-libraries=${openfec}/lib" + "--with-openfec-includes=${openfec.dev}/include" ]); + + preConfigure = '' + sconsFlags+=" --prefix=$out" + ''; + + meta = with lib; { + description = "Roc is a toolkit for real-time audio streaming over the network"; + homepage = "https://github.com/roc-streaming/roc-toolkit"; + license = licenses.mpl20; + maintainers = with maintainers; [ bgamari ]; + platforms = platforms.unix; + }; +} |