https://github.com/NixOS/nixpkgs/blob/master/pkgs/stdenv/generic/setup.sh#L948 this can do it nicely. Signed-off-by: Anton Arapov <anton@deadbeef.mx>
23 lines
660 B
Nix
23 lines
660 B
Nix
{ lib, rel, buildKodiBinaryAddon, fetchFromGitHub, jsoncpp, libhdhomerun }:
|
|
buildKodiBinaryAddon rec {
|
|
pname = "pvr-hdhomerun";
|
|
namespace = "pvr.hdhomerun";
|
|
version = "19.1.0";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "kodi-pvr";
|
|
repo = "pvr.hdhomerun";
|
|
rev = "${version}-${rel}";
|
|
sha256 = "sha256-sYVb4nhUz2j19yv3/cyLyUAC+1K0c05+iAMEfpPifjs=";
|
|
};
|
|
|
|
extraBuildInputs = [ jsoncpp libhdhomerun ];
|
|
|
|
meta = with lib; {
|
|
homepage = "https://github.com/kodi-pvr/pvr.hdhomerun";
|
|
description = "Kodi's HDHomeRun PVR client addon";
|
|
platforms = platforms.all;
|
|
license = licenses.gpl2Only;
|
|
maintainers = teams.kodi.members;
|
|
};
|
|
}
|