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";
|
2023-10-19 13:55:26 +00:00
|
|
|
version = "0.4.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}";
|
|
|
|
hash = "sha256-mQgpwuTIEHeDv/PzBHpK1sraxFj8Ef3y8vN5bLw5E94=";
|
2021-12-21 02:18:32 +00:00
|
|
|
};
|
|
|
|
|
2023-03-04 12:14:45 +00:00
|
|
|
vendorHash = "sha256-sjwQ/zEYJRkeWUDB7TzV8z+kET8lVRnQkXYbZbcUeHY=";
|
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
|
|
|
};
|
|
|
|
}
|