2020-08-31 19:46:09 -07:00
|
|
|
{ stdenv, fetchFromGitHub, buildGoModule
|
|
|
|
, pkg-config, ffmpeg, gnutls
|
2018-07-02 00:40:37 -07:00
|
|
|
}:
|
|
|
|
|
2020-08-31 19:46:09 -07:00
|
|
|
buildGoModule rec {
|
2019-08-15 05:41:18 -07:00
|
|
|
pname = "livepeer";
|
2020-11-11 06:22:32 -08:00
|
|
|
version = "0.5.12";
|
2018-07-02 00:40:37 -07:00
|
|
|
|
2020-08-31 19:46:09 -07:00
|
|
|
runVend = true;
|
2020-10-25 12:45:44 -07:00
|
|
|
vendorSha256 = "13cgwpf3v4vlvb0mgdxsdybpghx1cp3fzkdwmq8b193a8dcl8s63";
|
2018-07-02 00:40:37 -07:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "livepeer";
|
|
|
|
repo = "go-livepeer";
|
2020-08-31 19:46:09 -07:00
|
|
|
rev = "v${version}";
|
2020-11-11 06:22:32 -08:00
|
|
|
sha256 = "15gx6pd6zn40x60p07dyaf1ydxvrg372lk3djp302mph8y0ijqfg";
|
2018-07-02 00:40:37 -07:00
|
|
|
};
|
|
|
|
|
2020-08-31 19:46:09 -07:00
|
|
|
# livepeer_cli has a vendoring problem
|
|
|
|
subPackages = [ "cmd/livepeer" ];
|
2020-03-18 03:48:37 -07:00
|
|
|
|
2020-08-31 19:46:09 -07:00
|
|
|
nativeBuildInputs = [ pkg-config ];
|
|
|
|
|
|
|
|
buildInputs = [ ffmpeg gnutls ];
|
2018-07-02 00:40:37 -07:00
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
|
|
|
description = "Official Go implementation of the Livepeer protocol";
|
2020-03-31 18:11:51 -07:00
|
|
|
homepage = "https://livepeer.org";
|
2018-07-02 00:40:37 -07:00
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = with maintainers; [ elitak ];
|
|
|
|
};
|
|
|
|
}
|