roc-toolkit: 0.2.1 -> 0.2.3
This commit is contained in:
parent
1841f6d1b8
commit
70c40261be
3 changed files with 7 additions and 25 deletions
|
@ -13,13 +13,15 @@
|
||||||
libunwind,
|
libunwind,
|
||||||
pulseaudioSupport ? true,
|
pulseaudioSupport ? true,
|
||||||
libpulseaudio,
|
libpulseaudio,
|
||||||
|
opensslSupport ? true,
|
||||||
|
openssl,
|
||||||
soxSupport ? true,
|
soxSupport ? true,
|
||||||
sox
|
sox
|
||||||
}:
|
}:
|
||||||
|
|
||||||
stdenv.mkDerivation rec {
|
stdenv.mkDerivation rec {
|
||||||
pname = "roc-toolkit";
|
pname = "roc-toolkit";
|
||||||
version = "0.2.1";
|
version = "0.2.3";
|
||||||
|
|
||||||
outputs = [ "out" "dev" ];
|
outputs = [ "out" "dev" ];
|
||||||
|
|
||||||
|
@ -27,7 +29,7 @@ stdenv.mkDerivation rec {
|
||||||
owner = "roc-streaming";
|
owner = "roc-streaming";
|
||||||
repo = "roc-toolkit";
|
repo = "roc-toolkit";
|
||||||
rev = "v${version}";
|
rev = "v${version}";
|
||||||
sha256 = "sha256-W8PiI5W1T6pNaYzR4u6fPtkP8DKq/Z85Kq/WF5dXVxo=";
|
hash = "sha256-wwcc2r1hrM9zryMJp+DOifSh0g6T/gdZJMpVdhqhjR8=";
|
||||||
};
|
};
|
||||||
|
|
||||||
nativeBuildInputs = [
|
nativeBuildInputs = [
|
||||||
|
@ -43,12 +45,14 @@ stdenv.mkDerivation rec {
|
||||||
] ++ lib.optional openfecSupport openfec
|
] ++ lib.optional openfecSupport openfec
|
||||||
++ lib.optional libunwindSupport libunwind
|
++ lib.optional libunwindSupport libunwind
|
||||||
++ lib.optional pulseaudioSupport libpulseaudio
|
++ lib.optional pulseaudioSupport libpulseaudio
|
||||||
|
++ lib.optional opensslSupport openssl
|
||||||
++ lib.optional soxSupport sox;
|
++ lib.optional soxSupport sox;
|
||||||
|
|
||||||
sconsFlags =
|
sconsFlags =
|
||||||
[ "--build=${stdenv.buildPlatform.config}"
|
[ "--build=${stdenv.buildPlatform.config}"
|
||||||
"--host=${stdenv.hostPlatform.config}"
|
"--host=${stdenv.hostPlatform.config}"
|
||||||
"--prefix=${placeholder "out"}" ] ++
|
"--prefix=${placeholder "out"}" ] ++
|
||||||
|
lib.optional (!opensslSupport) "--disable-openssl" ++
|
||||||
lib.optional (!soxSupport) "--disable-sox" ++
|
lib.optional (!soxSupport) "--disable-sox" ++
|
||||||
lib.optional (!libunwindSupport) "--disable-libunwind" ++
|
lib.optional (!libunwindSupport) "--disable-libunwind" ++
|
||||||
lib.optional (!pulseaudioSupport) "--disable-pulseaudio" ++
|
lib.optional (!pulseaudioSupport) "--disable-pulseaudio" ++
|
||||||
|
@ -57,13 +61,6 @@ stdenv.mkDerivation rec {
|
||||||
else [ "--with-libraries=${openfec}/lib"
|
else [ "--with-libraries=${openfec}/lib"
|
||||||
"--with-openfec-includes=${openfec.dev}/include" ]);
|
"--with-openfec-includes=${openfec.dev}/include" ]);
|
||||||
|
|
||||||
prePatch = lib.optionalString stdenv.isAarch64
|
|
||||||
"sed -i 's/c++98/c++11/g' SConstruct";
|
|
||||||
|
|
||||||
patches = [
|
|
||||||
./fix-pkgconfig-installation.patch
|
|
||||||
];
|
|
||||||
|
|
||||||
meta = with lib; {
|
meta = with lib; {
|
||||||
description = "Roc is a toolkit for real-time audio streaming over the network";
|
description = "Roc is a toolkit for real-time audio streaming over the network";
|
||||||
homepage = "https://github.com/roc-streaming/roc-toolkit";
|
homepage = "https://github.com/roc-streaming/roc-toolkit";
|
||||||
|
|
|
@ -1,13 +0,0 @@
|
||||||
diff --git a/src/SConscript b/src/SConscript
|
|
||||||
index b59f67a7..9f16e0a2 100644
|
|
||||||
--- a/src/SConscript
|
|
||||||
+++ b/src/SConscript
|
|
||||||
@@ -141,7 +141,7 @@ if not GetOption('disable_shared') or GetOption('enable_static') or GetOption('e
|
|
||||||
desc='Real-time audio streaming over the network.',
|
|
||||||
url='https://roc-streaming.org',
|
|
||||||
version=env['ROC_VERSION'])
|
|
||||||
- env.AddDistFile(env['PKG_CONFIG_PATH'], pc_file)
|
|
||||||
+ env.AddDistFile(os.path.join(env['ROC_SYSTEM_LIBDIR'], 'pkgconfig'), pc_file)
|
|
||||||
|
|
||||||
if GetOption('enable_examples'):
|
|
||||||
examples_env = subenvs.examples.Clone()
|
|
|
@ -11741,9 +11741,7 @@ with pkgs;
|
||||||
|
|
||||||
rmtrash = callPackage ../tools/misc/rmtrash { };
|
rmtrash = callPackage ../tools/misc/rmtrash { };
|
||||||
|
|
||||||
roc-toolkit = callPackage ../development/libraries/audio/roc-toolkit {
|
roc-toolkit = callPackage ../development/libraries/audio/roc-toolkit { };
|
||||||
scons = sconsPackages.scons_4_1_0;
|
|
||||||
};
|
|
||||||
|
|
||||||
rockbox-utility = libsForQt5.callPackage ../tools/misc/rockbox-utility { };
|
rockbox-utility = libsForQt5.callPackage ../tools/misc/rockbox-utility { };
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue