blob: 4ca39a938ae936dd2a6739d2de990593b8068899 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
|
{ lib, buildGoModule, fetchFromGitHub, yt-dlp, ffmpeg, mpv }:
buildGoModule rec {
pname = "invidtui";
version = "0.4.6";
src = fetchFromGitHub {
owner = "darkhz";
repo = "invidtui";
rev = "refs/tags/v${version}";
hash = "sha256-C465lzbZIh8LYDUHNa5u66nFteFsKAffilvy1Danfpg=";
};
vendorHash = "sha256-C7O2GJuEdO8geRPfHx1Sq6ZveDE/u65JBx/Egh3cnK4=";
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 = "Invidious TUI client";
license = licenses.mit;
maintainers = with maintainers; [ rettetdemdativ ];
mainProgram = "invidtui";
};
}
|