2020-09-25 04:45:31 +00:00
|
|
|
{ stdenv, fetchFromGitHub, buildGoModule
|
|
|
|
, pkg-config, ffmpeg, gnutls
|
2020-04-24 23:36:52 +00:00
|
|
|
}:
|
|
|
|
|
2020-09-25 04:45:31 +00:00
|
|
|
buildGoModule rec {
|
2020-04-24 23:36:52 +00:00
|
|
|
pname = "livepeer";
|
2020-10-27 00:29:36 +00:00
|
|
|
version = "0.5.11";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2020-09-25 04:45:31 +00:00
|
|
|
runVend = true;
|
2020-10-27 00:29:36 +00:00
|
|
|
vendorSha256 = "13cgwpf3v4vlvb0mgdxsdybpghx1cp3fzkdwmq8b193a8dcl8s63";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "livepeer";
|
|
|
|
repo = "go-livepeer";
|
2020-09-25 04:45:31 +00:00
|
|
|
rev = "v${version}";
|
2020-10-27 00:29:36 +00:00
|
|
|
sha256 = "12vbnl74z6jk77bnws8a5z5n7bnhkbb4ngzxfir5l3g9zrpsc5p3";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2020-09-25 04:45:31 +00:00
|
|
|
# livepeer_cli has a vendoring problem
|
|
|
|
subPackages = [ "cmd/livepeer" ];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2020-09-25 04:45:31 +00:00
|
|
|
nativeBuildInputs = [ pkg-config ];
|
|
|
|
|
|
|
|
buildInputs = [ ffmpeg gnutls ];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
|
|
|
description = "Official Go implementation of the Livepeer protocol";
|
|
|
|
homepage = "https://livepeer.org";
|
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = with maintainers; [ elitak ];
|
|
|
|
};
|
|
|
|
}
|