2019-12-26 06:38:57 +01:00
|
|
|
{ mkDerivation
|
|
|
|
, makeDesktopItem
|
|
|
|
, python3
|
|
|
|
, fetchurl
|
|
|
|
, lib
|
|
|
|
, pulseaudio
|
|
|
|
}:
|
|
|
|
|
|
|
|
let
|
|
|
|
desktopItem = makeDesktopItem {
|
|
|
|
name = "qpaeq";
|
|
|
|
exec = "@out@/bin/qpaeq";
|
|
|
|
icon = "audio-volume-high";
|
|
|
|
desktopName = "qpaeq";
|
|
|
|
genericName = "Audio equalizer";
|
2022-02-22 15:56:15 +01:00
|
|
|
categories = [ "AudioVideo" "Audio" "Mixer" ];
|
|
|
|
startupNotify = false;
|
2019-12-26 06:38:57 +01:00
|
|
|
};
|
|
|
|
in
|
|
|
|
mkDerivation rec {
|
|
|
|
pname = "qpaeq";
|
|
|
|
inherit (pulseaudio) version src;
|
|
|
|
|
|
|
|
buildInputs = [
|
|
|
|
((python3.withPackages (ps: with ps; [
|
|
|
|
pyqt5
|
|
|
|
dbus-python
|
|
|
|
])))
|
|
|
|
];
|
|
|
|
|
|
|
|
dontBuild = true;
|
|
|
|
dontConfigure = true;
|
|
|
|
|
|
|
|
installPhase = ''
|
|
|
|
runHook preInstall
|
|
|
|
install -D ./src/utils/qpaeq $out/bin/qpaeq
|
|
|
|
install -D ${desktopItem}/share/applications/qpaeq.desktop $out/share/applications/qpaeq.desktop
|
|
|
|
runHook postInstall
|
|
|
|
'';
|
|
|
|
|
|
|
|
preFixup = ''
|
|
|
|
sed "s|,sip|,PyQt5.sip|g" -i $out/bin/qpaeq
|
|
|
|
wrapQtApp $out/bin/qpaeq
|
|
|
|
sed "s|@out@|$out|g" -i $out/share/applications/qpaeq.desktop
|
|
|
|
'';
|
|
|
|
|
|
|
|
meta = {
|
|
|
|
description = "An equalizer interface for pulseaudio's equalizer sinks";
|
2024-03-19 03:14:51 +01:00
|
|
|
mainProgram = "qpaeq";
|
2020-04-01 03:11:51 +02:00
|
|
|
homepage = "http://www.pulseaudio.org/";
|
2019-12-26 06:38:57 +01:00
|
|
|
license = lib.licenses.lgpl2Plus;
|
2023-11-24 17:12:01 +01:00
|
|
|
maintainers = with lib.maintainers; [ lovek323 ];
|
2019-12-26 06:38:57 +01:00
|
|
|
platforms = lib.platforms.unix;
|
|
|
|
};
|
|
|
|
}
|