Unverified Commit bac24e86 authored by wxt's avatar wxt
Browse files

livepeer: add passthru.updateScript

parent dd2b6402
Loading
Loading
Loading
Loading
+8 −8
Original line number Diff line number Diff line
@@ -5,6 +5,7 @@
  pkg-config,
  ffmpeg,
  gnutls,
  nix-update-script,
}:

buildGoModule rec {
@@ -17,13 +18,10 @@ buildGoModule rec {
  src = fetchFromGitHub {
    owner = "livepeer";
    repo = "go-livepeer";
    rev = "v${version}";
    sha256 = "sha256-cOxIL093Mi+g9Al/SQJ6vdaeBAXUN6ZGsSaVvEIiJpU=";
    rev = "refs/tags/v${version}";
    hash = "sha256-cOxIL093Mi+g9Al/SQJ6vdaeBAXUN6ZGsSaVvEIiJpU=";
  };

  # livepeer_cli has a vendoring problem
  subPackages = [ "cmd/livepeer" ];

  nativeBuildInputs = [ pkg-config ];

  buildInputs = [
@@ -31,11 +29,13 @@ buildGoModule rec {
    gnutls
  ];

  meta = with lib; {
  passthru.updateScript = nix-update-script { };

  meta = {
    description = "Official Go implementation of the Livepeer protocol";
    homepage = "https://livepeer.org";
    license = licenses.mit;
    maintainers = with maintainers; [ elitak ];
    license = lib.licenses.mit;
    maintainers = with lib.maintainers; [ elitak ];
    mainProgram = "livepeer";
  };
}