mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-11-14 15:36:47 +03:00
cubeb: init at unstable-2022-10-18
This commit is contained in:
parent
9cfee5c3bd
commit
5fb8428618
56
pkgs/development/libraries/audio/cubeb/default.nix
Normal file
56
pkgs/development/libraries/audio/cubeb/default.nix
Normal file
@ -0,0 +1,56 @@
|
||||
{ lib, stdenv, fetchFromGitHub
|
||||
, cmake
|
||||
, pkg-config
|
||||
, jack2
|
||||
, pulseaudio
|
||||
, sndio
|
||||
, speexdsp
|
||||
, lazyLoad ? true
|
||||
}:
|
||||
|
||||
stdenv.mkDerivation {
|
||||
pname = "cubeb";
|
||||
version = "unstable-2022-10-18";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "mozilla";
|
||||
repo = "cubeb";
|
||||
rev = "27d2a102b0b75d9e49d43bc1ea516233fb87d778";
|
||||
hash = "sha256-q+uz1dGU4LdlPogL1nwCR/KuOX4Oy3HhMdA6aJylBRk=";
|
||||
};
|
||||
|
||||
nativeBuildInputs = [
|
||||
cmake
|
||||
pkg-config
|
||||
];
|
||||
|
||||
buildInputs = [
|
||||
jack2
|
||||
pulseaudio
|
||||
sndio
|
||||
speexdsp
|
||||
];
|
||||
|
||||
cmakeFlags = [
|
||||
"-DBUILD_SHARED_LIBS=ON"
|
||||
"-DBUILD_TESTS=OFF" # tests require an audio server
|
||||
"-DBUNDLE_SPEEX=OFF"
|
||||
"-DUSE_SANITIZERS=OFF"
|
||||
|
||||
# Whether to lazily load libraries with dlopen()
|
||||
"-DLAZY_LOAD_LIBS=${if lazyLoad then "ON" else "OFF"}"
|
||||
];
|
||||
|
||||
passthru = {
|
||||
# For downstream users when lazyLoad is true
|
||||
backendLibs = [ jack2 pulseaudio sndio speexdsp ];
|
||||
};
|
||||
|
||||
meta = with lib; {
|
||||
description = "Cross platform audio library";
|
||||
homepage = "https://github.com/mozilla/cubeb";
|
||||
license = licenses.isc;
|
||||
platforms = platforms.linux;
|
||||
maintainers = with maintainers; [ zhaofengli ];
|
||||
};
|
||||
}
|
@ -18191,6 +18191,8 @@ with pkgs;
|
||||
# justStaticExecutables is needed due to https://github.com/NixOS/nix/issues/2990
|
||||
cachix = haskell.lib.compose.justStaticExecutables haskellPackages.cachix;
|
||||
|
||||
cubeb = callPackage ../development/libraries/audio/cubeb { };
|
||||
|
||||
hercules-ci-agent = callPackage ../development/tools/continuous-integration/hercules-ci-agent { };
|
||||
|
||||
hci = callPackage ../development/tools/continuous-integration/hci { };
|
||||
|
Loading…
Reference in New Issue
Block a user