1 { lib, buildGoModule, fetchFromGitHub, makeBinaryWrapper, ffmpeg-headless }:
7 src = fetchFromGitHub {
11 hash = "sha256-Y1frd7iJJuNFvLL/C1Y+RrqYC/1LF7P3J9rkPAThp9c=";
14 vendorHash = "sha256-hVAiWJKdDQB+6UlARFdjVATCMiGrEK2US62KAxCquvU=";
16 nativeBuildInputs = [ makeBinaryWrapper ];
18 ldflags = [ "-s" "-w" "-X main.Commit=-${src.rev}" ];
21 wrapProgram $out/bin/ytarchive --prefix PATH : ${lib.makeBinPath [ ffmpeg-headless ]}
25 homepage = "https://github.com/Kethsar/ytarchive";
26 description = "Garbage Youtube livestream downloader";
27 license = licenses.mit;
29 mainProgram = "ytarchive";