vhs: unbreak on darwin

This commit is contained in:
Weijia Wang 2023-03-22 19:15:07 +02:00
parent 3efc9e2dc9
commit fd4b74b949

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 \