2023-03-30 22:05:00 +00:00
|
|
|
{ lib, fetchFromGitHub, buildGoModule
|
2020-09-25 04:45:31 +00:00
|
|
|
, 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";
|
2021-09-18 10:52:07 +00:00
|
|
|
version = "0.5.20";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2022-01-07 04:07:37 +00:00
|
|
|
proxyVendor = true;
|
2023-10-09 19:29:22 +00:00
|
|
|
vendorHash = "sha256-aRZoAEnRai8i5H08ReW8lEFlbmarYxU0lBRhR/Llw+M=";
|
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}";
|
2021-09-18 10:52:07 +00:00
|
|
|
sha256 = "sha256-cOxIL093Mi+g9Al/SQJ6vdaeBAXUN6ZGsSaVvEIiJpU=";
|
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
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
meta = with lib; {
|
2020-04-24 23:36:52 +00:00
|
|
|
description = "Official Go implementation of the Livepeer protocol";
|
|
|
|
homepage = "https://livepeer.org";
|
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = with maintainers; [ elitak ];
|
2024-01-02 11:29:13 +00:00
|
|
|
mainProgram = "livepeer";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
}
|