2023-08-22 20:05:09 +00:00
|
|
|
{ copyDesktopItems
|
2022-02-10 20:34:41 +00:00
|
|
|
, fetchFromGitHub
|
2023-08-22 20:05:09 +00:00
|
|
|
, glibmm
|
|
|
|
, gst_all_1
|
|
|
|
, lib
|
|
|
|
, libarchive
|
|
|
|
, makeDesktopItem
|
2022-02-10 20:34:41 +00:00
|
|
|
, pipewire
|
2023-08-22 20:05:09 +00:00
|
|
|
, pkg-config
|
2022-04-27 09:35:20 +00:00
|
|
|
, pulseaudio
|
2022-02-10 20:34:41 +00:00
|
|
|
, qmake
|
2022-04-27 09:35:20 +00:00
|
|
|
, qtbase
|
|
|
|
, qtsvg
|
2023-08-22 20:05:09 +00:00
|
|
|
, stdenv
|
2022-04-27 09:35:20 +00:00
|
|
|
, usePipewire ? true
|
|
|
|
, usePulseaudio ? false
|
2023-08-22 20:05:09 +00:00
|
|
|
, wrapQtAppsHook
|
2022-02-10 20:34:41 +00:00
|
|
|
}:
|
|
|
|
|
2022-04-27 09:35:20 +00:00
|
|
|
assert lib.asserts.assertMsg (usePipewire != usePulseaudio) "You need to enable one and only one of pulseaudio or pipewire support";
|
|
|
|
|
2023-08-22 20:05:09 +00:00
|
|
|
stdenv.mkDerivation (finalAttrs: {
|
2022-02-10 20:34:41 +00:00
|
|
|
pname = "jamesdsp";
|
2024-01-02 11:29:13 +00:00
|
|
|
version = "2.7.0";
|
2023-08-04 22:07:22 +00:00
|
|
|
|
2023-08-22 20:05:09 +00:00
|
|
|
src = fetchFromGitHub {
|
2022-02-10 20:34:41 +00:00
|
|
|
owner = "Audio4Linux";
|
|
|
|
repo = "JDSP4Linux";
|
|
|
|
fetchSubmodules = true;
|
2023-08-22 20:05:09 +00:00
|
|
|
rev = finalAttrs.version;
|
2024-01-02 11:29:13 +00:00
|
|
|
hash = "sha256-eVndqIqJ3DRceuFMT++g2riXq0CL5r+TWbvzvaYIfZ8=";
|
2022-02-10 20:34:41 +00:00
|
|
|
};
|
|
|
|
|
2022-04-27 09:35:20 +00:00
|
|
|
nativeBuildInputs = [
|
|
|
|
qmake
|
|
|
|
pkg-config
|
|
|
|
copyDesktopItems
|
|
|
|
wrapQtAppsHook
|
2022-02-10 20:34:41 +00:00
|
|
|
];
|
|
|
|
|
|
|
|
buildInputs = [
|
|
|
|
glibmm
|
|
|
|
libarchive
|
2022-04-27 09:35:20 +00:00
|
|
|
qtbase
|
|
|
|
qtsvg
|
2023-08-22 20:05:09 +00:00
|
|
|
] ++ lib.optionals usePipewire [
|
|
|
|
pipewire
|
|
|
|
] ++ lib.optionals usePulseaudio [
|
2022-04-27 09:35:20 +00:00
|
|
|
pulseaudio
|
|
|
|
gst_all_1.gst-plugins-base
|
|
|
|
gst_all_1.gst-plugins-good
|
|
|
|
gst_all_1.gstreamer
|
2022-02-10 20:34:41 +00:00
|
|
|
];
|
|
|
|
|
2023-08-22 20:05:09 +00:00
|
|
|
preFixup = lib.optionalString usePulseaudio ''
|
2023-08-04 22:07:22 +00:00
|
|
|
qtWrapperArgs+=(--prefix GST_PLUGIN_SYSTEM_PATH_1_0 : "$GST_PLUGIN_SYSTEM_PATH_1_0")
|
|
|
|
'';
|
2022-04-27 09:35:20 +00:00
|
|
|
|
|
|
|
qmakeFlags = lib.optionals usePulseaudio [ "CONFIG+=USE_PULSEAUDIO" ];
|
|
|
|
|
2022-02-10 20:34:41 +00:00
|
|
|
desktopItems = [
|
|
|
|
(makeDesktopItem {
|
2022-03-05 16:20:37 +00:00
|
|
|
name = "jamesdsp";
|
2022-02-10 20:34:41 +00:00
|
|
|
desktopName = "JamesDSP";
|
|
|
|
genericName = "Audio effects processor";
|
|
|
|
exec = "jamesdsp";
|
|
|
|
icon = "jamesdsp";
|
|
|
|
comment = "JamesDSP for Linux";
|
2022-03-05 16:20:37 +00:00
|
|
|
categories = [ "AudioVideo" "Audio" ];
|
2022-02-10 20:34:41 +00:00
|
|
|
startupNotify = false;
|
2022-03-05 16:20:37 +00:00
|
|
|
keywords = [ "equalizer" "audio" "effect" ];
|
2022-02-10 20:34:41 +00:00
|
|
|
})
|
|
|
|
];
|
|
|
|
|
2022-10-21 18:38:19 +00:00
|
|
|
postInstall = ''
|
|
|
|
install -D resources/icons/icon.png $out/share/pixmaps/jamesdsp.png
|
|
|
|
install -D resources/icons/icon.svg $out/share/icons/hicolor/scalable/apps/jamesdsp.svg
|
|
|
|
'';
|
|
|
|
|
2023-08-22 20:05:09 +00:00
|
|
|
meta = {
|
2022-06-16 17:23:12 +00:00
|
|
|
broken = (stdenv.isLinux && stdenv.isAarch64);
|
2022-02-10 20:34:41 +00:00
|
|
|
description = "An audio effect processor for PipeWire clients";
|
2024-04-21 15:54:59 +00:00
|
|
|
mainProgram = "jamesdsp";
|
2022-02-10 20:34:41 +00:00
|
|
|
homepage = "https://github.com/Audio4Linux/JDSP4Linux";
|
2023-08-22 20:05:09 +00:00
|
|
|
license = lib.licenses.gpl3Only;
|
|
|
|
maintainers = with lib.maintainers; [ pasqui23 rewine ];
|
|
|
|
platforms = lib.platforms.linux;
|
2022-02-10 20:34:41 +00:00
|
|
|
};
|
2023-08-22 20:05:09 +00:00
|
|
|
})
|