1 { lib, stdenv, fetchFromGitHub, makeWrapper, curl, bash, jq, youtube-dl, gnome }:
3 stdenv.mkDerivation rec {
7 src = fetchFromGitHub {
11 sha256 = "0f9wdq2fg8hlpk3qbjfkb3imprxkvdrhxfkcvr3dwfma0j2yfwam";
14 nativeBuildInputs = [ makeWrapper ];
18 cp -a kodi-cli $out/bin
19 wrapProgram $out/bin/kodi-cli --prefix PATH : ${lib.makeBinPath [ curl bash ]}
20 cp -a playlist_to_kodi $out/bin
21 wrapProgram $out/bin/playlist_to_kodi --prefix PATH : ${lib.makeBinPath [ curl bash gnome.zenity jq youtube-dl ]}
25 homepage = "https://github.com/nawar/kodi-cli";
26 description = "Kodi/XBMC bash script to send Kodi commands using JSON RPC. It also allows sending YouTube videos to Kodi";
27 license = licenses.gpl2;
28 platforms = platforms.unix;
29 maintainers = [ maintainers.pstn ];