nixpkgs-suyu/pkgs/servers/livepeer/default.nix
2021-09-15 15:53:47 +00:00

32 lines
771 B
Nix

{ lib, fetchFromGitHub, buildGoModule
, pkg-config, ffmpeg, gnutls
}:
buildGoModule rec {
pname = "livepeer";
version = "0.5.20";
runVend = true;
vendorSha256 = "sha256-iFVScV3arPkBjMi8sCHIja4G2QeQDb2sgBrbTFyxKyw=";
src = fetchFromGitHub {
owner = "livepeer";
repo = "go-livepeer";
rev = "v${version}";
sha256 = "sha256-cOxIL093Mi+g9Al/SQJ6vdaeBAXUN6ZGsSaVvEIiJpU=";
};
# livepeer_cli has a vendoring problem
subPackages = [ "cmd/livepeer" ];
nativeBuildInputs = [ pkg-config ];
buildInputs = [ ffmpeg gnutls ];
meta = with lib; {
description = "Official Go implementation of the Livepeer protocol";
homepage = "https://livepeer.org";
license = licenses.mit;
maintainers = with maintainers; [ elitak ];
};
}