Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at devShellTools-shell 32 lines 720 B view raw
1{ 2 lib, 3 rel, 4 buildKodiAddon, 5 fetchzip, 6 addonUpdateScript, 7}: 8 9buildKodiAddon rec { 10 pname = "defusedxml"; 11 namespace = "script.module.defusedxml"; 12 version = "0.6.0+matrix.1"; 13 14 src = fetchzip { 15 url = "https://mirrors.kodi.tv/addons/${lib.toLower rel}/${namespace}/${namespace}-${version}.zip"; 16 sha256 = "sha256-jSl7lbFqR6hjZhHzxY69hDbs84LY3B5RYKzXnHou0Qg="; 17 }; 18 19 passthru = { 20 pythonPath = "lib"; 21 updateScript = addonUpdateScript { 22 attrPath = "kodi.packages.defusedxml"; 23 }; 24 }; 25 26 meta = with lib; { 27 homepage = "https://github.com/tiran/defusedxml"; 28 description = "Defusing XML bombs and other exploits"; 29 license = licenses.psfl; 30 teams = [ teams.kodi ]; 31 }; 32}