commit
bd1fbe5390
@ -108,7 +108,10 @@ stdenv.mkDerivation rec {
|
|||||||
rm -rf $out/{bin,share,etc,lib/{pulse-*,systemd}}
|
rm -rf $out/{bin,share,etc,lib/{pulse-*,systemd}}
|
||||||
sed 's|-lltdl|-L${libtool.lib}/lib -lltdl|' -i $out/lib/pulseaudio/libpulsecore-${version}.la
|
sed 's|-lltdl|-L${libtool.lib}/lib -lltdl|' -i $out/lib/pulseaudio/libpulsecore-${version}.la
|
||||||
''
|
''
|
||||||
+ ''moveToOutput lib/cmake "$dev" '';
|
+ ''
|
||||||
|
moveToOutput lib/cmake "$dev"
|
||||||
|
rm -f $out/bin/qpaeq # this is packaged by the "qpaeq" package now, because of missing deps
|
||||||
|
'';
|
||||||
|
|
||||||
preFixup = lib.optionalString stdenv.isLinux ''
|
preFixup = lib.optionalString stdenv.isLinux ''
|
||||||
wrapProgram $out/libexec/pulse/gsettings-helper \
|
wrapProgram $out/libexec/pulse/gsettings-helper \
|
||||||
|
54
pkgs/servers/pulseaudio/qpaeq.nix
Normal file
54
pkgs/servers/pulseaudio/qpaeq.nix
Normal file
@ -0,0 +1,54 @@
|
|||||||
|
{ mkDerivation
|
||||||
|
, makeDesktopItem
|
||||||
|
, python3
|
||||||
|
, fetchurl
|
||||||
|
, lib
|
||||||
|
, pulseaudio
|
||||||
|
}:
|
||||||
|
|
||||||
|
let
|
||||||
|
desktopItem = makeDesktopItem {
|
||||||
|
name = "qpaeq";
|
||||||
|
exec = "@out@/bin/qpaeq";
|
||||||
|
icon = "audio-volume-high";
|
||||||
|
desktopName = "qpaeq";
|
||||||
|
genericName = "Audio equalizer";
|
||||||
|
categories = "Music;Sound;";
|
||||||
|
startupNotify = "false";
|
||||||
|
};
|
||||||
|
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";
|
||||||
|
homepage = http://www.pulseaudio.org/;
|
||||||
|
license = lib.licenses.lgpl2Plus;
|
||||||
|
maintainers = with lib.maintainers; [ lovek323 mkg20001 ];
|
||||||
|
platforms = lib.platforms.unix;
|
||||||
|
};
|
||||||
|
}
|
@ -15409,6 +15409,8 @@ in
|
|||||||
inherit (darwin.apple_sdk.frameworks) CoreServices AudioUnit Cocoa;
|
inherit (darwin.apple_sdk.frameworks) CoreServices AudioUnit Cocoa;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
qpaeq = qt5.callPackage ../servers/pulseaudio/qpaeq.nix { };
|
||||||
|
|
||||||
pulseaudioFull = pulseaudio.override {
|
pulseaudioFull = pulseaudio.override {
|
||||||
x11Support = true;
|
x11Support = true;
|
||||||
jackaudioSupport = true;
|
jackaudioSupport = true;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user