mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-23 15:33:13 +00:00
755b915a15
nix run nixpkgs#silver-searcher -- -G '\.nix$' -0l 'description.*"[Aa]n?' pkgs \ | xargs -0 nix run nixpkgs#gnused -- -i '' -Ee 's/(description.*")[Aa]n? (.)/\1\U\2/'
55 lines
1.2 KiB
Nix
55 lines
1.2 KiB
Nix
{ mkDerivation
|
|
, makeDesktopItem
|
|
, python3
|
|
, lib
|
|
, pulseaudio
|
|
}:
|
|
|
|
let
|
|
desktopItem = makeDesktopItem {
|
|
name = "qpaeq";
|
|
exec = "@out@/bin/qpaeq";
|
|
icon = "audio-volume-high";
|
|
desktopName = "qpaeq";
|
|
genericName = "Audio equalizer";
|
|
categories = [ "AudioVideo" "Audio" "Mixer" ];
|
|
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 = "Equalizer interface for pulseaudio's equalizer sinks";
|
|
mainProgram = "qpaeq";
|
|
homepage = "http://www.pulseaudio.org/";
|
|
license = lib.licenses.lgpl2Plus;
|
|
maintainers = with lib.maintainers; [ lovek323 ];
|
|
platforms = lib.platforms.unix;
|
|
};
|
|
}
|