diff --git a/packages/zapzap/default.nix b/packages/zapzap/default.nix new file mode 100644 index 0000000..86558fa --- /dev/null +++ b/packages/zapzap/default.nix @@ -0,0 +1,24 @@ +{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[@]}" + ) + ''; + }; +} diff --git a/packages/zapzap/flake.lock b/packages/zapzap/flake.lock deleted file mode 100644 index 721b11a..0000000 --- a/packages/zapzap/flake.lock +++ /dev/null @@ -1,27 +0,0 @@ -{ - "nodes": { - "nixpkgs": { - "locked": { - "lastModified": 1698336494, - "narHash": "sha256-sO72WDBKyijYD1GcKPlGsycKbMBiTJMBCnmOxLAs880=", - "owner": "NixOS", - "repo": "nixpkgs", - "rev": "808c0d8c53c7ae50f82aca8e7df263225cf235bf", - "type": "github" - }, - "original": { - "owner": "NixOS", - "ref": "nixpkgs-unstable", - "repo": "nixpkgs", - "type": "github" - } - }, - "root": { - "inputs": { - "nixpkgs": "nixpkgs" - } - } - }, - "root": "root", - "version": 7 -} diff --git a/packages/zapzap/flake.nix b/packages/zapzap/flake.nix deleted file mode 100644 index 01016bc..0000000 --- a/packages/zapzap/flake.nix +++ /dev/null @@ -1,38 +0,0 @@ -{ - inputs.nixpkgs.url = "github:NixOS/nixpkgs/nixpkgs-unstable"; - - outputs = inputs @ { - self, - nixpkgs, - }: let - supportedSystems = ["x86_64-linux" "aarch64-linux"]; - forAllSystems = nixpkgs.lib.genAttrs supportedSystems; - pkgs = forAllSystems (system: nixpkgs.legacyPackages.${system}); - in { - packages = forAllSystems (system: rec { - zapzap = pkgs.${system}.python3Packages.buildPythonPackage { - name = "zapzap"; - src = pkgs.${system}.fetchFromGitHub { - owner = "zapzap-linux"; - repo = "zapzap"; - rev = "5de4a4015128c164af3c964ecbe5b6358d98b521"; - hash = "sha256-bd3YcITK4lraOu7D/xZfnibilAZQZWqazVVtUwqJ4wc="; - }; - dontWrapQtApps = true; - propagatedBuildInputs = with pkgs.${system}.python3Packages; [pyqt6-webengine qt6.qtwayland qt6.qtsvg]; - nativeBuildInputs = with pkgs.${system}; [qt6.wrapQtAppsHook makeWrapper]; - env = { - HOME = "/tmp"; - }; - preFixup = '' - makeWrapperArgs+=( - # Force the app to use QT_PLUGIN_PATH values from wrapper - --unset QT_PLUGIN_PATH - "''${qtWrapperArgs[@]}" - ) - ''; - }; - default = zapzap; - }); - }; -}