Merge pull request #222568 from wegank/vhs-darwin

vhs: unbreak on darwin
This commit is contained in:
Weijia Wang 2023-03-22 22:14:05 +02:00 committed by GitHub
commit 8be838254b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1,4 +1,4 @@
{ lib, buildGoModule, installShellFiles, fetchFromGitHub, ffmpeg, ttyd, chromium, makeWrapper }:
{ lib, stdenv, buildGoModule, installShellFiles, fetchFromGitHub, ffmpeg, ttyd, chromium, makeWrapper }:
buildGoModule rec {
pname = "vhs";
@ -18,7 +18,7 @@ buildGoModule rec {
ldflags = [ "-s" "-w" "-X=main.Version=${version}" ];
postInstall = ''
wrapProgram $out/bin/vhs --prefix PATH : ${lib.makeBinPath [ chromium ffmpeg ttyd ]}
wrapProgram $out/bin/vhs --prefix PATH : ${lib.makeBinPath (lib.optionals stdenv.isLinux [ chromium ] ++ [ ffmpeg ttyd ])}
$out/bin/vhs man > vhs.1
installManPage vhs.1
installShellCompletion --cmd vhs \