kodi-cli: init at 1.1.1

* kodi-cli: init at 1.1.1 (#50892)

* kodi-cli: nitpicks

nitpicks applied are:

  - The pname thing
    staging-next has been merged.

  - Moved to tools/misc
    applications/video is more appropriate for video applications.
    This is a script used to interact with one.

  - Changed platforms to unix
    This script can only be used where kodi is present.
This commit is contained in:
Philipp 2018-12-04 23:27:26 +00:00 committed by Renaud
parent b682e03e12
commit 169e279711
2 changed files with 33 additions and 0 deletions

View File

@ -0,0 +1,31 @@
{ stdenv, fetchFromGitHub, makeWrapper, curl, bash, jq, youtube-dl, gnome3 }:
stdenv.mkDerivation rec {
pname = "kodi-cli";
version = "1.1.1";
src = fetchFromGitHub {
owner = "nawar";
repo = pname;
rev = version;
sha256 = "0f9wdq2fg8hlpk3qbjfkb3imprxkvdrhxfkcvr3dwfma0j2yfwam";
};
nativeBuildInputs = [ makeWrapper ];
installPhase = ''
mkdir -p $out/bin
cp -a kodi-cli $out/bin
wrapProgram $out/bin/kodi-cli --prefix PATH : ${stdenv.lib.makeBinPath [ curl bash ]}
cp -a playlist_to_kodi $out/bin
wrapProgram $out/bin/playlist_to_kodi --prefix PATH : ${stdenv.lib.makeBinPath [ curl bash gnome3.zenity jq youtube-dl ]}
'';
meta = with stdenv.lib; {
homepage = https://github.com/nawar/kodi-cli;
description = "Kodi/XBMC bash script to send Kodi commands using JSON RPC. It also allows sending YouTube videos to Kodi";
license = licenses.gpl2;
platforms = platforms.unix;
maintainers = [ maintainers.pstn ];
};
}

View File

@ -19937,6 +19937,8 @@ in
kodi = kodiPlain;
};
kodi-cli = callPackage ../tools/misc/kodi-cli { };
kodi-retroarch-advanced-launchers =
callPackage ../misc/emulators/retroarch/kodi-advanced-launchers.nix {
cores = retroArchCores;