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,
|
libz,
|
||||||
makeWrapper,
|
makeWrapper,
|
||||||
stdenvNoCC,
|
stdenvNoCC,
|
||||||
unrar,
|
unzip,
|
||||||
xorg,
|
xorg,
|
||||||
}:
|
}:
|
||||||
|
|
||||||
let
|
|
||||||
rarPassword = "spflashtool.com";
|
|
||||||
in
|
|
||||||
|
|
||||||
stdenvNoCC.mkDerivation (self: {
|
stdenvNoCC.mkDerivation (self: {
|
||||||
pname = "SPFlashTool5";
|
pname = "SPFlashTool5";
|
||||||
version = "5.1916";
|
version = "5.2228";
|
||||||
src = fetchurl {
|
src = fetchurl {
|
||||||
url = "https://spflashtool.com/files/SP_Flash_Tool-5.1916_Linux.rar";
|
url = "https://spflashtools.com/wp-content/uploads/SP_Flash_Tool_v5.2228_Linux.zip";
|
||||||
hash = "sha256-5lv/uPfUoke0IwjGuV/gTBt4kCbr95mwco3q9cjW/mE=";
|
hash = "sha256-GLEe7TQf1X/rf7xYp7jrk0KbrMfSWpk4eK+KC26Y3xA=";
|
||||||
curlOptsList = [
|
|
||||||
"--referer" "https://spflashtool.com/download/"
|
|
||||||
];
|
|
||||||
};
|
};
|
||||||
nativeBuildInputs = [
|
nativeBuildInputs = [
|
||||||
autoPatchelfHook
|
autoPatchelfHook
|
||||||
makeWrapper
|
makeWrapper
|
||||||
unrar
|
unzip
|
||||||
];
|
];
|
||||||
buildInputs = [
|
buildInputs = [
|
||||||
fontconfig
|
fontconfig
|
||||||
|
@ -47,14 +40,6 @@ stdenvNoCC.mkDerivation (self: {
|
||||||
xorg.libXext
|
xorg.libXext
|
||||||
xorg.libXrender
|
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
|
# remove plugins that have outdated dependencies not available in nixpkgs
|
||||||
# they are not needed to run the tool anyway
|
# they are not needed to run the tool anyway
|
||||||
prePatch = ''
|
prePatch = ''
|
||||||
|
@ -79,7 +64,7 @@ stdenvNoCC.mkDerivation (self: {
|
||||||
'';
|
'';
|
||||||
meta = {
|
meta = {
|
||||||
description = "Flash tool for MediaTek devices";
|
description = "Flash tool for MediaTek devices";
|
||||||
homepage = "https://spflashtool.com/";
|
homepage = "https://spflashtools.com/";
|
||||||
license = lib.licenses.unfree;
|
license = lib.licenses.unfree;
|
||||||
maintainers = with lib.maintainers; [ amozeo ];
|
maintainers = with lib.maintainers; [ amozeo ];
|
||||||
};
|
};
|
||||||
|
|
Loading…
Add table
Reference in a new issue