2024-01-14 21:08:36 +01:00
|
|
|
{ fetchurl
|
|
|
|
, makeWrapper
|
|
|
|
, python3Packages
|
|
|
|
, qt6
|
|
|
|
}:
|
2024-01-14 19:54:59 +01:00
|
|
|
|
2024-01-14 21:08:36 +01:00
|
|
|
python3Packages.buildPythonPackage rec {
|
2023-10-29 00:41:39 +02:00
|
|
|
name = "zapzap";
|
2024-01-14 21:08:36 +01:00
|
|
|
version = "5.1-2";
|
|
|
|
src = fetchurl {
|
|
|
|
url = "https://github.com/zapzap-linux/zapzap/archive/refs/tags/${version}.tar.gz";
|
|
|
|
hash = "sha256-r5NhdXQ4Tl/wFrD1+sxFS10Z3lAcHcax5bi43Qa3ZI0=";
|
2023-10-29 00:41:21 +02:00
|
|
|
};
|
2023-10-29 00:41:39 +02:00
|
|
|
dontWrapQtApps = true;
|
2024-01-14 21:08:36 +01:00
|
|
|
propagatedBuildInputs = with python3Packages; [ pyqt6-webengine qt6.qtwayland qt6.qtsvg ];
|
|
|
|
nativeBuildInputs = [ qt6.wrapQtAppsHook makeWrapper ];
|
2023-10-29 00:41:39 +02:00
|
|
|
env = {
|
|
|
|
HOME = "/tmp";
|
|
|
|
};
|
|
|
|
preFixup = ''
|
|
|
|
makeWrapperArgs+=(
|
|
|
|
# Force the app to use QT_PLUGIN_PATH values from wrapper
|
|
|
|
--unset QT_PLUGIN_PATH
|
|
|
|
"''${qtWrapperArgs[@]}"
|
|
|
|
)
|
|
|
|
'';
|
2023-10-29 00:41:21 +02:00
|
|
|
}
|