Unverified Commit f1e06fa1 authored by Nick Cao's avatar Nick Cao Committed by GitHub
Browse files

Merge pull request #216224 from slinlee/vhs_chromium

vhs: fix #208002 add chromium dependency
parents c9fbcf04 f164ce43
Loading
Loading
Loading
Loading
+2 −3
Original line number Diff line number Diff line
{ lib, buildGoModule, installShellFiles, fetchFromGitHub, ffmpeg, ttyd, makeWrapper }:
{ lib, buildGoModule, installShellFiles, fetchFromGitHub, ffmpeg, ttyd, chromium, makeWrapper }:

buildGoModule rec {
  pname = "vhs";
@@ -14,12 +14,11 @@ buildGoModule rec {
  vendorHash = "sha256-9nkRr5Jh1nbI+XXbPj9KB0ZbLybv5JUVovpB311fO38=";

  nativeBuildInputs = [ installShellFiles makeWrapper ];
  buildInputs = [ ttyd ffmpeg ];

  ldflags = [ "-s" "-w" "-X=main.Version=${version}" ];

  postInstall = ''
    wrapProgram $out/bin/vhs --prefix PATH : ${lib.makeBinPath [ ffmpeg ttyd ]}
    wrapProgram $out/bin/vhs --prefix PATH : ${lib.makeBinPath [ chromium ffmpeg ttyd ]}
    $out/bin/vhs man > vhs.1
    installManPage vhs.1
    installShellCompletion --cmd vhs \