mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-22 23:13:19 +00:00
26 lines
706 B
Nix
26 lines
706 B
Nix
{ lib, rel, buildKodiAddon, fetchzip, addonUpdateScript }:
|
|
buildKodiAddon rec {
|
|
pname = "chardet";
|
|
namespace = "script.module.chardet";
|
|
version = "5.1.0";
|
|
|
|
src = fetchzip {
|
|
url = "https://mirrors.kodi.tv/addons/${lib.toLower rel}/${namespace}/${namespace}-${version}.zip";
|
|
sha256 = "sha256-cIQIX6LVAoGf1sBRKWonXJd3XYqGOa5WIUttabV0HeU=";
|
|
};
|
|
|
|
passthru = {
|
|
pythonPath = "lib";
|
|
updateScript = addonUpdateScript {
|
|
attrPath = "kodi.packages.chardet";
|
|
};
|
|
};
|
|
|
|
meta = with lib; {
|
|
homepage = "https://github.com/Freso/script.module.chardet";
|
|
description = "Universal encoding detector";
|
|
license = licenses.lgpl2Only;
|
|
maintainers = teams.kodi.members;
|
|
};
|
|
}
|