diff --git a/packages/zapzap/default.nix b/packages/zapzap/default.nix index 86558fa..37155fc 100644 --- a/packages/zapzap/default.nix +++ b/packages/zapzap/default.nix @@ -1,24 +1,23 @@ -{pkgs}: { - zapzap = pkgs.python3Packages.buildPythonPackage { - name = "zapzap"; - src = pkgs.fetchFromGitHub { - owner = "zapzap-linux"; - repo = "zapzap"; - rev = "5de4a4015128c164af3c964ecbe5b6358d98b521"; - hash = "sha256-bd3YcITK4lraOu7D/xZfnibilAZQZWqazVVtUwqJ4wc="; - }; - 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[@]}" - ) - ''; +{pkgs}: +pkgs.python3Packages.buildPythonPackage { + name = "zapzap"; + src = pkgs.fetchFromGitHub { + owner = "zapzap-linux"; + repo = "zapzap"; + rev = "5de4a4015128c164af3c964ecbe5b6358d98b521"; + hash = "sha256-bd3YcITK4lraOu7D/xZfnibilAZQZWqazVVtUwqJ4wc="; }; + 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[@]}" + ) + ''; }