f34ce41345
GitOrigin-RevId: b73c2221a46c13557b1b3be9c2070cc42cf01eb3
43 lines
1,006 B
Nix
43 lines
1,006 B
Nix
{ lib
|
|
, python3
|
|
, fetchPypi
|
|
, qt5
|
|
}:
|
|
|
|
python3.pkgs.buildPythonApplication rec {
|
|
pname = "patray";
|
|
version = "0.1.2";
|
|
|
|
src = fetchPypi {
|
|
inherit version pname;
|
|
hash = "sha256-O8CBUexL2V1qI7bB/Lns3yjUvFOpC6spd/6asXa5+pw=";
|
|
};
|
|
|
|
patchPhase = ''
|
|
sed -i '30i entry_points = { "console_scripts": [ "patray = patray.__main__:main" ] },' setup.py
|
|
sed -i 's/production.txt/production.in/' setup.py
|
|
sed -i '/pyside2/d' requirements/production.in
|
|
'';
|
|
|
|
propagatedBuildInputs = with python3.pkgs; [
|
|
pulsectl
|
|
loguru
|
|
cock
|
|
pyside2
|
|
];
|
|
|
|
doCheck = false;
|
|
|
|
nativeBuildInputs = [ qt5.wrapQtAppsHook ];
|
|
postFixup = ''
|
|
wrapQtApp $out/bin/patray --prefix QT_PLUGIN_PATH : ${qt5.qtbase}/${qt5.qtbase.qtPluginPrefix}
|
|
'';
|
|
|
|
meta = with lib; {
|
|
description = "Yet another tray pulseaudio frontend";
|
|
homepage = "https://github.com/pohmelie/patray";
|
|
license = licenses.mit;
|
|
maintainers = with maintainers; [ domenkozar ];
|
|
mainProgram = "patray";
|
|
};
|
|
}
|