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