pkgs/SPFlashTool5: update to 5.228, use spflashtools for source
This commit is contained in:
parent
d874ae3c0b
commit
285eed58c4
1 changed files with 6 additions and 21 deletions
|
@ -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 ];
|
||||
};
|
||||
|
|
Loading…
Add table
Reference in a new issue