2023-10-19 13:55:26 +00:00
|
|
|
{ lib, buildGoModule, fetchFromGitHub, makeBinaryWrapper, ffmpeg-headless }:
|
2021-12-21 02:18:32 +00:00
|
|
|
|
|
|
|
buildGoModule rec {
|
|
|
|
pname = "ytarchive";
|
2024-09-26 11:04:55 +00:00
|
|
|
version = "0.5.0";
|
2021-12-21 02:18:32 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "Kethsar";
|
|
|
|
repo = "ytarchive";
|
2023-10-19 13:55:26 +00:00
|
|
|
rev = "v${version}";
|
2024-09-26 11:04:55 +00:00
|
|
|
hash = "sha256-Y1frd7iJJuNFvLL/C1Y+RrqYC/1LF7P3J9rkPAThp9c=";
|
2021-12-21 02:18:32 +00:00
|
|
|
};
|
|
|
|
|
2024-09-26 11:04:55 +00:00
|
|
|
vendorHash = "sha256-hVAiWJKdDQB+6UlARFdjVATCMiGrEK2US62KAxCquvU=";
|
2021-12-21 02:18:32 +00:00
|
|
|
|
2022-07-14 12:49:19 +00:00
|
|
|
nativeBuildInputs = [ makeBinaryWrapper ];
|
2022-04-27 09:35:20 +00:00
|
|
|
|
2022-07-14 12:49:19 +00:00
|
|
|
ldflags = [ "-s" "-w" "-X main.Commit=-${src.rev}" ];
|
2021-12-21 02:18:32 +00:00
|
|
|
|
2022-04-27 09:35:20 +00:00
|
|
|
postInstall = ''
|
2023-10-19 13:55:26 +00:00
|
|
|
wrapProgram $out/bin/ytarchive --prefix PATH : ${lib.makeBinPath [ ffmpeg-headless ]}
|
2022-04-27 09:35:20 +00:00
|
|
|
'';
|
|
|
|
|
2021-12-21 02:18:32 +00:00
|
|
|
meta = with lib; {
|
|
|
|
homepage = "https://github.com/Kethsar/ytarchive";
|
|
|
|
description = "Garbage Youtube livestream downloader";
|
|
|
|
license = licenses.mit;
|
2024-05-15 15:35:15 +00:00
|
|
|
maintainers = [ ];
|
2024-01-02 11:29:13 +00:00
|
|
|
mainProgram = "ytarchive";
|
2021-12-21 02:18:32 +00:00
|
|
|
};
|
|
|
|
}
|