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