Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at devShellTools-shell 39 lines 1.1 kB view raw
1{ 2 lib, 3 rel, 4 buildKodiAddon, 5 fetchzip, 6 fetchpatch, 7 addonUpdateScript, 8}: 9buildKodiAddon rec { 10 pname = "inputstreamhelper"; 11 namespace = "script.module.inputstreamhelper"; 12 version = "0.6.1+matrix.1"; 13 14 src = fetchzip { 15 url = "https://mirrors.kodi.tv/addons/${lib.toLower rel}/${namespace}/${namespace}-${version}.zip"; 16 sha256 = "sha256-v5fRikswmP+KVbxYibD0NbCK8leUnFbya5EtF1FmS0I="; 17 }; 18 19 patches = [ 20 (fetchpatch { 21 url = "https://github.com/emilsvennesson/script.module.inputstreamhelper/commit/af6adc16a0bee4921a827946b004ee070406ae37.patch"; 22 hash = "sha256-901EyVeZUb0EMvxsEza95qFjTOZ7PDYyqHMRawPM5Zs="; 23 }) 24 ]; 25 26 passthru = { 27 pythonPath = "lib"; 28 updateScript = addonUpdateScript { 29 attrPath = "kodi.packages.inputstreamhelper"; 30 }; 31 }; 32 33 meta = with lib; { 34 homepage = "https://github.com/emilsvennesson/script.module.inputstreamhelper"; 35 description = "Simple Kodi module that makes life easier for add-on developers relying on InputStream based add-ons and DRM playback"; 36 license = licenses.mit; 37 teams = [ teams.kodi ]; 38 }; 39}