nixos_flake_config/packages/zapzap/default.nix
2024-01-14 19:54:59 +01:00

25 lines
679 B
Nix

{ pkgs }:
pkgs.python3Packages.buildPythonPackage {
name = "zapzap";
src = pkgs.fetchFromGitHub {
owner = "zapzap-linux";
repo = "zapzap";
rev = "22b237987a69c392d1fa7bea5c9495111c3efd9a";
hash = "sha256-VrpW7RYd91/MFFRfIzuFmdtykHfW4c/ky7q7CcS/FYE=";
};
dontWrapQtApps = true;
propagatedBuildInputs = with pkgs.python3Packages; [ pyqt6-webengine qt6.qtwayland qt6.qtsvg ];
nativeBuildInputs = with pkgs; [ qt6.wrapQtAppsHook makeWrapper ];
env = {
HOME = "/tmp";
};
preFixup = ''
makeWrapperArgs+=(
# Force the app to use QT_PLUGIN_PATH values from wrapper
--unset QT_PLUGIN_PATH
"''${qtWrapperArgs[@]}"
)
'';
}