nixpkgs/pkgs/applications/audio/jamesdsp/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

88 lines
2.0 KiB
Nix
Raw Normal View History

{ stdenv
, lib
2022-02-08 11:36:06 +00:00
, fetchFromGitHub
, pipewire
2022-04-19 16:21:27 +00:00
, pulseaudio
, gst_all_1
2022-02-08 11:36:06 +00:00
, glibmm
, qmake
2022-04-19 16:21:27 +00:00
, qtbase
, qtsvg
, wrapQtAppsHook
2022-02-08 11:36:06 +00:00
, makeDesktopItem
, pkg-config
, libarchive
2022-04-19 16:21:27 +00:00
, copyDesktopItems
, usePipewire ? true
, usePulseaudio ? false
2022-02-08 11:36:06 +00:00
}:
2022-04-19 16:21:27 +00:00
assert lib.asserts.assertMsg (usePipewire != usePulseaudio) "You need to enable one and only one of pulseaudio or pipewire support";
2023-07-14 07:34:33 +00:00
stdenv.mkDerivation rec {
2022-02-08 11:36:06 +00:00
pname = "jamesdsp";
2023-07-14 07:34:33 +00:00
version = "2.6.0";
2022-04-19 16:21:27 +00:00
src = fetchFromGitHub rec {
2022-02-08 11:36:06 +00:00
owner = "Audio4Linux";
repo = "JDSP4Linux";
fetchSubmodules = true;
rev = version;
2023-07-14 07:34:33 +00:00
hash = "sha256-pogBpmGlqQnkXMdp5HbMYISjwMJalSPvEV9MDHj8aec=";
2022-02-08 11:36:06 +00:00
};
2022-04-19 16:21:27 +00:00
nativeBuildInputs = [
qmake
pkg-config
copyDesktopItems
wrapQtAppsHook
];
2022-02-08 11:36:06 +00:00
buildInputs = [
glibmm
libarchive
2022-04-19 16:21:27 +00:00
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
2022-02-08 11:36:06 +00:00
];
2023-07-14 07:34:33 +00:00
preFixup = lib.optionals usePulseaudio ''
qtWrapperArgs+=(--prefix GST_PLUGIN_SYSTEM_PATH_1_0 : "$GST_PLUGIN_SYSTEM_PATH_1_0")
'';
2022-04-19 16:21:27 +00:00
qmakeFlags = lib.optionals usePulseaudio [ "CONFIG+=USE_PULSEAUDIO" ];
2022-02-08 11:36:06 +00:00
desktopItems = [
(makeDesktopItem {
name = "jamesdsp";
2022-02-08 11:36:06 +00:00
desktopName = "JamesDSP";
genericName = "Audio effects processor";
exec = "jamesdsp";
icon = "jamesdsp";
comment = "JamesDSP for Linux";
categories = [ "AudioVideo" "Audio" ];
2022-02-08 11:36:06 +00:00
startupNotify = false;
keywords = [ "equalizer" "audio" "effect" ];
2022-02-08 11:36:06 +00:00
})
];
2022-10-04 17:14:31 +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
'';
2022-02-08 11:36:06 +00:00
meta = with lib;{
broken = (stdenv.isLinux && stdenv.isAarch64);
2022-02-08 11:36:06 +00:00
description = "An audio effect processor for PipeWire clients";
homepage = "https://github.com/Audio4Linux/JDSP4Linux";
license = licenses.gpl3Only;
2022-04-19 16:21:27 +00:00
maintainers = with maintainers; [ pasqui23 rewine ];
2022-02-08 11:36:06 +00:00
platforms = platforms.linux;
};
}