diff --git a/pkgs/by-name/sp/SPFlashTool5/package.nix b/pkgs/by-name/sp/SPFlashTool5/package.nix index d837743..6e155d5 100644 --- a/pkgs/by-name/sp/SPFlashTool5/package.nix +++ b/pkgs/by-name/sp/SPFlashTool5/package.nix @@ -11,28 +11,21 @@ libz, makeWrapper, stdenvNoCC, - unrar, + unzip, xorg, }: -let - rarPassword = "spflashtool.com"; -in - stdenvNoCC.mkDerivation (self: { pname = "SPFlashTool5"; - version = "5.1916"; + version = "5.2228"; src = fetchurl { - url = "https://spflashtool.com/files/SP_Flash_Tool-5.1916_Linux.rar"; - hash = "sha256-5lv/uPfUoke0IwjGuV/gTBt4kCbr95mwco3q9cjW/mE="; - curlOptsList = [ - "--referer" "https://spflashtool.com/download/" - ]; + url = "https://spflashtools.com/wp-content/uploads/SP_Flash_Tool_v5.2228_Linux.zip"; + hash = "sha256-GLEe7TQf1X/rf7xYp7jrk0KbrMfSWpk4eK+KC26Y3xA="; }; nativeBuildInputs = [ autoPatchelfHook makeWrapper - unrar + unzip ]; buildInputs = [ fontconfig @@ -47,14 +40,6 @@ stdenvNoCC.mkDerivation (self: { xorg.libXext xorg.libXrender ]; - unpackPhase = '' - runHook preUnpack - - unrar x -p${lib.escapeShellArg rarPassword} $src - cd */ - - runHook postUnpack - ''; # remove plugins that have outdated dependencies not available in nixpkgs # they are not needed to run the tool anyway prePatch = '' @@ -79,7 +64,7 @@ stdenvNoCC.mkDerivation (self: { ''; meta = { description = "Flash tool for MediaTek devices"; - homepage = "https://spflashtool.com/"; + homepage = "https://spflashtools.com/"; license = lib.licenses.unfree; maintainers = with lib.maintainers; [ amozeo ]; };