kew: linux audio fix
This commit is contained in:
@@ -1,20 +1,29 @@
|
||||
{
|
||||
config,
|
||||
lib,
|
||||
stdenv,
|
||||
fetchFromGitHub,
|
||||
fftwFloat,
|
||||
alsa-lib,
|
||||
autoPatchelfHook,
|
||||
chafa,
|
||||
curl,
|
||||
glib,
|
||||
libopus,
|
||||
opusfile,
|
||||
libvorbis,
|
||||
taglib,
|
||||
faad2,
|
||||
fetchFromGitHub,
|
||||
fftwFloat,
|
||||
glib,
|
||||
libogg,
|
||||
pkg-config,
|
||||
versionCheckHook,
|
||||
libopus,
|
||||
libjack2,
|
||||
libpulseaudio,
|
||||
libvorbis,
|
||||
nix-update-script,
|
||||
opusfile,
|
||||
pkg-config,
|
||||
taglib,
|
||||
versionCheckHook,
|
||||
|
||||
withALSA ? stdenv.hostPlatform.isLinux,
|
||||
withJACK ? false,
|
||||
withPulseaudio ? config.pulseaudio or stdenv.hostPlatform.isLinux,
|
||||
}:
|
||||
|
||||
stdenv.mkDerivation (finalAttrs: {
|
||||
@@ -28,7 +37,14 @@ stdenv.mkDerivation (finalAttrs: {
|
||||
hash = "sha256-nntbxDy1gfd4F/FvlilLeOAepqtxhnYE2XRjJSlFvgI=";
|
||||
};
|
||||
|
||||
nativeBuildInputs = [ pkg-config ];
|
||||
nativeBuildInputs =
|
||||
[
|
||||
pkg-config
|
||||
]
|
||||
++ lib.optionals stdenv.hostPlatform.isLinux [
|
||||
autoPatchelfHook
|
||||
];
|
||||
|
||||
buildInputs = [
|
||||
fftwFloat.dev
|
||||
chafa
|
||||
@@ -42,6 +58,19 @@ stdenv.mkDerivation (finalAttrs: {
|
||||
libogg
|
||||
];
|
||||
|
||||
runtimeDependencies =
|
||||
lib.optionals withPulseaudio [
|
||||
libpulseaudio
|
||||
]
|
||||
++ lib.optionals (withALSA || withJACK) [
|
||||
alsa-lib
|
||||
]
|
||||
++ lib.optionals withJACK [
|
||||
libjack2
|
||||
];
|
||||
|
||||
enableParallelBuilding = true;
|
||||
|
||||
installFlags = [
|
||||
"MAN_DIR=${placeholder "out"}/share/man"
|
||||
"PREFIX=${placeholder "out"}"
|
||||
|
||||
Reference in New Issue
Block a user