From eef00a167f524e91a66ebd51c52cb5f79553e75b Mon Sep 17 00:00:00 2001 From: Asmir A Date: Sun, 14 Jan 2024 21:08:36 +0100 Subject: [PATCH] packages/zapzap: cleanup --- packages/zapzap/default.nix | 21 ++++++++++++--------- 1 file changed, 12 insertions(+), 9 deletions(-) diff --git a/packages/zapzap/default.nix b/packages/zapzap/default.nix index 7faf7fa..890b5df 100644 --- a/packages/zapzap/default.nix +++ b/packages/zapzap/default.nix @@ -1,16 +1,19 @@ -{ pkgs }: +{ fetchurl +, makeWrapper +, python3Packages +, qt6 +}: -pkgs.python3Packages.buildPythonPackage { +python3Packages.buildPythonPackage rec { name = "zapzap"; - src = pkgs.fetchFromGitHub { - owner = "zapzap-linux"; - repo = "zapzap"; - rev = "22b237987a69c392d1fa7bea5c9495111c3efd9a"; - hash = "sha256-VrpW7RYd91/MFFRfIzuFmdtykHfW4c/ky7q7CcS/FYE="; + version = "5.1-2"; + src = fetchurl { + url = "https://github.com/zapzap-linux/zapzap/archive/refs/tags/${version}.tar.gz"; + hash = "sha256-r5NhdXQ4Tl/wFrD1+sxFS10Z3lAcHcax5bi43Qa3ZI0="; }; dontWrapQtApps = true; - propagatedBuildInputs = with pkgs.python3Packages; [ pyqt6-webengine qt6.qtwayland qt6.qtsvg ]; - nativeBuildInputs = with pkgs; [ qt6.wrapQtAppsHook makeWrapper ]; + propagatedBuildInputs = with python3Packages; [ pyqt6-webengine qt6.qtwayland qt6.qtsvg ]; + nativeBuildInputs = [ qt6.wrapQtAppsHook makeWrapper ]; env = { HOME = "/tmp"; };