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