mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-09-28 10:50:15 +00:00
This commit was created by a combination of scripts and tools: - an ast-grep script to prefix things in meta with `lib.`, - a modified nixf-diagnose / nixf combination to remove unused `with lib;`, and - regular nixfmt. Co-authored-by: Wolfgang Walther <walther@technowledgy.de>
33 lines
715 B
Nix
33 lines
715 B
Nix
{
|
|
lib,
|
|
rel,
|
|
buildKodiAddon,
|
|
fetchzip,
|
|
addonUpdateScript,
|
|
}:
|
|
|
|
buildKodiAddon rec {
|
|
pname = "future";
|
|
namespace = "script.module.future";
|
|
version = "1.0.0+matrix.1";
|
|
|
|
src = fetchzip {
|
|
url = "https://mirrors.kodi.tv/addons/${lib.toLower rel}/${namespace}/${namespace}-${version}.zip";
|
|
sha256 = "sha256-BsDgCAZuJBRBpe6EmfSynhrXS3ktQRZsEwf9CdF0VCg=";
|
|
};
|
|
|
|
passthru = {
|
|
pythonPath = "lib";
|
|
updateScript = addonUpdateScript {
|
|
attrPath = "kodi.packages.future";
|
|
};
|
|
};
|
|
|
|
meta = {
|
|
homepage = "https://python-future.org";
|
|
description = "Missing compatibility layer between Python 2 and Python 3";
|
|
license = lib.licenses.mit;
|
|
teams = [ lib.teams.kodi ];
|
|
};
|
|
}
|