nixpkgs/pkgs/by-name/in/invidtui/package.nix

33 lines
905 B
Nix
Raw Normal View History

2023-11-30 00:06:24 +00:00
{ lib, buildGoModule, fetchFromGitHub, yt-dlp, ffmpeg, mpv }:
buildGoModule rec {
pname = "invidtui";
2024-07-14 12:24:28 +00:00
version = "0.4.6";
2023-11-30 00:06:24 +00:00
src = fetchFromGitHub {
owner = "darkhz";
repo = "invidtui";
rev = "refs/tags/v${version}";
2024-07-14 12:24:28 +00:00
hash = "sha256-C465lzbZIh8LYDUHNa5u66nFteFsKAffilvy1Danfpg=";
2023-11-30 00:06:24 +00:00
};
2024-03-08 12:23:42 +00:00
vendorHash = "sha256-C7O2GJuEdO8geRPfHx1Sq6ZveDE/u65JBx/Egh3cnK4=";
2023-11-30 00:06:24 +00: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 = "Invidious TUI client";
2023-11-30 00:06:24 +00:00
license = licenses.mit;
maintainers = with maintainers; [ rettetdemdativ ];
mainProgram = "invidtui";
};
}