mirror of
https://github.com/SebastianWendel/nixpkgs.git
synced 2024-10-02 01:50:18 +02:00
Merge pull request #163170 from wineee/jamesdsp
jamesdsp: add PulseAudio support
This commit is contained in:
commit
496254f7c5
|
@ -2,18 +2,31 @@
|
||||||
, mkDerivation
|
, mkDerivation
|
||||||
, fetchFromGitHub
|
, fetchFromGitHub
|
||||||
, pipewire
|
, pipewire
|
||||||
|
, pulseaudio
|
||||||
|
, gst_all_1
|
||||||
, glibmm
|
, glibmm
|
||||||
, qmake
|
, qmake
|
||||||
|
, qtbase
|
||||||
|
, qtsvg
|
||||||
|
, wrapQtAppsHook
|
||||||
, makeDesktopItem
|
, makeDesktopItem
|
||||||
, pkg-config
|
, pkg-config
|
||||||
, libarchive
|
, libarchive
|
||||||
, fetchpatch
|
, fetchpatch
|
||||||
|
, copyDesktopItems
|
||||||
|
, usePipewire ? true
|
||||||
|
, usePulseaudio ? false
|
||||||
}:
|
}:
|
||||||
|
|
||||||
mkDerivation rec{
|
assert lib.asserts.assertMsg (usePipewire != usePulseaudio) "You need to enable one and only one of pulseaudio or pipewire support";
|
||||||
|
|
||||||
|
let
|
||||||
|
pluginPath = lib.makeSearchPathOutput "lib" "lib/gstreamer-1.0" (with gst_all_1; [ gstreamer gst-plugins-base gst-plugins-good ]);
|
||||||
|
in
|
||||||
|
mkDerivation rec {
|
||||||
pname = "jamesdsp";
|
pname = "jamesdsp";
|
||||||
version = "2.3";
|
version = "2.3";
|
||||||
src = fetchFromGitHub rec{
|
src = fetchFromGitHub rec {
|
||||||
owner = "Audio4Linux";
|
owner = "Audio4Linux";
|
||||||
repo = "JDSP4Linux";
|
repo = "JDSP4Linux";
|
||||||
fetchSubmodules = true;
|
fetchSubmodules = true;
|
||||||
|
@ -29,13 +42,30 @@ mkDerivation rec{
|
||||||
})
|
})
|
||||||
];
|
];
|
||||||
|
|
||||||
nativeBuildInputs = [ qmake pkg-config ];
|
nativeBuildInputs = [
|
||||||
|
qmake
|
||||||
|
pkg-config
|
||||||
|
copyDesktopItems
|
||||||
|
wrapQtAppsHook
|
||||||
|
];
|
||||||
|
|
||||||
buildInputs = [
|
buildInputs = [
|
||||||
glibmm
|
glibmm
|
||||||
libarchive
|
libarchive
|
||||||
pipewire
|
qtbase
|
||||||
|
qtsvg
|
||||||
|
] ++ lib.optional usePipewire pipewire
|
||||||
|
++ lib.optionals usePulseaudio [
|
||||||
|
pulseaudio
|
||||||
|
gst_all_1.gst-plugins-base
|
||||||
|
gst_all_1.gst-plugins-good
|
||||||
|
gst_all_1.gstreamer
|
||||||
];
|
];
|
||||||
|
|
||||||
|
qtWrapperArgs = lib.optionals usePulseaudio [ "--prefix GST_PLUGIN_SYSTEM_PATH_1_0 : ${pluginPath}" ];
|
||||||
|
|
||||||
|
qmakeFlags = lib.optionals usePulseaudio [ "CONFIG+=USE_PULSEAUDIO" ];
|
||||||
|
|
||||||
desktopItems = [
|
desktopItems = [
|
||||||
(makeDesktopItem {
|
(makeDesktopItem {
|
||||||
name = "jamesdsp";
|
name = "jamesdsp";
|
||||||
|
@ -54,7 +84,7 @@ mkDerivation rec{
|
||||||
description = "An audio effect processor for PipeWire clients";
|
description = "An audio effect processor for PipeWire clients";
|
||||||
homepage = "https://github.com/Audio4Linux/JDSP4Linux";
|
homepage = "https://github.com/Audio4Linux/JDSP4Linux";
|
||||||
license = licenses.gpl3Only;
|
license = licenses.gpl3Only;
|
||||||
maintainers = with maintainers;[ pasqui23 ];
|
maintainers = with maintainers; [ pasqui23 rewine ];
|
||||||
platforms = platforms.linux;
|
platforms = platforms.linux;
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
|
@ -7134,6 +7134,10 @@ with pkgs;
|
||||||
jadx = callPackage ../tools/security/jadx { };
|
jadx = callPackage ../tools/security/jadx { };
|
||||||
|
|
||||||
jamesdsp = libsForQt5.callPackage ../applications/audio/jamesdsp { };
|
jamesdsp = libsForQt5.callPackage ../applications/audio/jamesdsp { };
|
||||||
|
jamesdsp-pulse = libsForQt5.callPackage ../applications/audio/jamesdsp {
|
||||||
|
usePipewire = false;
|
||||||
|
usePulseaudio = true;
|
||||||
|
};
|
||||||
|
|
||||||
jazzy = callPackage ../development/tools/jazzy { };
|
jazzy = callPackage ../development/tools/jazzy { };
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue