nixpkgs/pkgs/servers/livepeer/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

34 lines
803 B
Nix
Raw Normal View History

2023-03-25 03:59:35 +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 {
pname = "livepeer";
2021-09-15 15:53:47 +00:00
version = "0.5.20";
2018-07-02 07:40:37 +00:00
2022-01-01 05:05:04 +00:00
proxyVendor = true;
vendorHash = "sha256-aRZoAEnRai8i5H08ReW8lEFlbmarYxU0lBRhR/Llw+M=";
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-09-15 15:53:47 +00:00
sha256 = "sha256-cOxIL093Mi+g9Al/SQJ6vdaeBAXUN6ZGsSaVvEIiJpU=";
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
meta = with lib; {
2018-07-02 07:40:37 +00:00
description = "Official Go implementation of the Livepeer protocol";
homepage = "https://livepeer.org";
2018-07-02 07:40:37 +00:00
license = licenses.mit;
maintainers = with maintainers; [ elitak ];
2023-11-27 01:17:53 +00:00
mainProgram = "livepeer";
2018-07-02 07:40:37 +00:00
};
}