1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-12-03 19:15:39 +00:00
nixpkgs/pkgs/servers/livepeer/default.nix
2021-03-17 14:46:12 +00:00

33 lines
771 B
Nix

{ lib, fetchFromGitHub, buildGoModule
, pkg-config, ffmpeg, gnutls
}:
buildGoModule rec {
pname = "livepeer";
version = "0.5.15";
runVend = true;
vendorSha256 = "sha256-PhkdbixJDA9Ym4cK5ALIYJgDQnO5GTbZ0XGsVHcvYYQ=";
src = fetchFromGitHub {
owner = "livepeer";
repo = "go-livepeer";
rev = "v${version}";
sha256 = "sha256-ZB80QssqN9SBpmYk/QgPRVF88qedmNeUG+EkjxWz4rQ=";
};
# 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 ];
};
}