nixos_flake_config/packages/zapzap/default.nix

28 lines
698 B
Nix
Raw Normal View History

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-03-18 14:56:41 +01:00
version = "5.2.1";
2024-01-14 21:08:36 +01:00
src = fetchurl {
url = "https://github.com/zapzap-linux/zapzap/archive/refs/tags/${version}.tar.gz";
2024-03-18 14:56:41 +01:00
hash = "sha256-qJ1gsEJokSPQalcmKRNv1k5m7u4R54LGw4axtZ4P7Zg=";
};
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[@]}"
)
'';
}