nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
at devShellTools-shell 32 lines 744 B view raw
1{ 2 lib, 3 rel, 4 buildKodiAddon, 5 fetchzip, 6 addonUpdateScript, 7}: 8 9buildKodiAddon rec { 10 pname = "simplejson"; 11 namespace = "script.module.simplejson"; 12 version = "3.19.1+matrix.1"; 13 14 src = fetchzip { 15 url = "https://mirrors.kodi.tv/addons/${lib.toLower rel}/${namespace}/${namespace}-${version}.zip"; 16 sha256 = "sha256-RJy75WAr0XmXnSrPjqKhFjWJnWo3c5IEtUGumcE/mRo="; 17 }; 18 19 passthru = { 20 pythonPath = "lib"; 21 updateScript = addonUpdateScript { 22 attrPath = "kodi.packages.simplejson"; 23 }; 24 }; 25 26 meta = with lib; { 27 homepage = "https://github.com/simplejson/simplejson"; 28 description = "Simple, fast, extensible JSON encoder/decoder for Python"; 29 license = licenses.mit; 30 teams = [ teams.kodi ]; 31 }; 32}