2023-11-30 01:06:24 +01:00
|
|
|
{ lib, buildGoModule, fetchFromGitHub, yt-dlp, ffmpeg, mpv }:
|
|
|
|
|
|
|
|
buildGoModule rec {
|
|
|
|
pname = "invidtui";
|
2023-12-23 22:26:03 +01:00
|
|
|
version = "0.3.7";
|
2023-11-30 01:06:24 +01:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "darkhz";
|
|
|
|
repo = "invidtui";
|
|
|
|
rev = "refs/tags/v${version}";
|
2023-12-23 22:26:03 +01:00
|
|
|
hash = "sha256-bzstO6xaVdu7u1vBgwUjnJ9CEep0UHT73FbybBRd8y8=";
|
2023-11-30 01:06:24 +01:00
|
|
|
};
|
|
|
|
|
2023-12-23 22:26:03 +01:00
|
|
|
vendorHash = "sha256-F0Iyy8H6ZRYiAlMdYGQS2p2hFN9ICmfTiRP/F9kpW7c=";
|
2023-11-30 01:06:24 +01:00
|
|
|
|
|
|
|
doCheck = true;
|
|
|
|
|
|
|
|
postPatch = ''
|
|
|
|
substituteInPlace cmd/flags.go \
|
|
|
|
--replace "\"ffmpeg\"" "\"${lib.getBin ffmpeg}/bin/ffmpeg\"" \
|
|
|
|
--replace "\"mpv\"" "\"${lib.getBin mpv}/bin/mpv\"" \
|
|
|
|
--replace "\"yt-dlp\"" "\"${lib.getBin yt-dlp}/bin/yt-dlp\""
|
|
|
|
'';
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
homepage = "https://darkhz.github.io/invidtui/";
|
|
|
|
description = "An invidious TUI client";
|
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = with maintainers; [ rettetdemdativ ];
|
|
|
|
mainProgram = "invidtui";
|
|
|
|
};
|
|
|
|
}
|