2022-05-01 04:20:00 +00:00
|
|
|
{ lib, buildGoModule, fetchFromGitHub, makeWrapper, ffmpeg }:
|
2021-12-18 04:20:00 +00:00
|
|
|
|
|
|
|
buildGoModule rec {
|
|
|
|
pname = "ytarchive";
|
2022-05-01 04:20:00 +00:00
|
|
|
version = "unstable-2022-03-11";
|
2021-12-18 04:20:00 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "Kethsar";
|
|
|
|
repo = "ytarchive";
|
2022-05-01 04:20:00 +00:00
|
|
|
rev = "34825e8777637ca114a0ab394a4b4fead6ad7c88";
|
|
|
|
sha256 = "sha256-/x6YcF2EyjOFnIHlsh+ZESF+7AYO3QRNaqbJgycQai4=";
|
2021-12-18 04:20:00 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
vendorSha256 = "sha256-r9fDFSCDItQ7YSj9aTY1LXRrFE9T3XD0X36ywCfu0R8=";
|
|
|
|
|
2022-05-01 04:20:00 +00:00
|
|
|
nativeBuildInputs = [ makeWrapper ];
|
|
|
|
|
2021-12-18 04:20:00 +00:00
|
|
|
ldflags = [ "-s" "-w" ];
|
|
|
|
|
2022-05-01 04:20:00 +00:00
|
|
|
postInstall = ''
|
|
|
|
wrapProgram $out/bin/ytarchive --prefix PATH : ${lib.makeBinPath [ ffmpeg ]}
|
|
|
|
'';
|
|
|
|
|
2021-12-18 04:20:00 +00:00
|
|
|
meta = with lib; {
|
|
|
|
homepage = "https://github.com/Kethsar/ytarchive";
|
|
|
|
description = "Garbage Youtube livestream downloader";
|
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = [ maintainers.marsam ];
|
|
|
|
};
|
|
|
|
}
|