vhs: unbreak on darwin
This commit is contained in:
parent
3efc9e2dc9
commit
fd4b74b949
|
@ -1,4 +1,4 @@
|
||||||
{ lib, buildGoModule, installShellFiles, fetchFromGitHub, ffmpeg, ttyd, chromium, makeWrapper }:
|
{ lib, stdenv, buildGoModule, installShellFiles, fetchFromGitHub, ffmpeg, ttyd, chromium, makeWrapper }:
|
||||||
|
|
||||||
buildGoModule rec {
|
buildGoModule rec {
|
||||||
pname = "vhs";
|
pname = "vhs";
|
||||||
|
@ -18,7 +18,7 @@ buildGoModule rec {
|
||||||
ldflags = [ "-s" "-w" "-X=main.Version=${version}" ];
|
ldflags = [ "-s" "-w" "-X=main.Version=${version}" ];
|
||||||
|
|
||||||
postInstall = ''
|
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
|
$out/bin/vhs man > vhs.1
|
||||||
installManPage vhs.1
|
installManPage vhs.1
|
||||||
installShellCompletion --cmd vhs \
|
installShellCompletion --cmd vhs \
|
||||||
|
|
Loading…
Reference in a new issue