Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at devShellTools-shell 38 lines 818 B view raw
1{ 2 lib, 3 rel, 4 buildKodiAddon, 5 fetchzip, 6 addonUpdateScript, 7 defusedxml, 8 kodi-six, 9}: 10 11buildKodiAddon rec { 12 pname = "keymap"; 13 namespace = "script.keymap"; 14 version = "1.3.2"; 15 16 src = fetchzip { 17 url = "https://mirrors.kodi.tv/addons/${lib.toLower rel}/${namespace}/${namespace}-${version}.zip"; 18 sha256 = "sha256-y9bREG1fGY6TJYW4xMUBbsAp6DSzb78tY1+iyUrGjgQ="; 19 }; 20 21 propagatedBuildInputs = [ 22 defusedxml 23 kodi-six 24 ]; 25 26 passthru = { 27 updateScript = addonUpdateScript { 28 attrPath = "kodi.packages.keymap"; 29 }; 30 }; 31 32 meta = with lib; { 33 homepage = "https://github.com/tamland/xbmc-keymap-editor"; 34 description = "GUI for configuring mappings for remotes, keyboard and other inputs supported by Kodi"; 35 license = licenses.gpl3Plus; 36 teams = [ teams.kodi ]; 37 }; 38}