2023-01-22 04:20:00 +00:00
|
|
|
{ lib, buildGoModule, fetchFromGitHub, fetchpatch, makeBinaryWrapper, ffmpeg }:
|
2021-12-18 04:20:00 +00:00
|
|
|
|
|
|
|
buildGoModule rec {
|
|
|
|
pname = "ytarchive";
|
2023-02-23 04:20:00 +00:00
|
|
|
version = "unstable-2023-02-21";
|
2021-12-18 04:20:00 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "Kethsar";
|
|
|
|
repo = "ytarchive";
|
2023-02-23 04:20:00 +00:00
|
|
|
rev = "90aaf17b5e86eec52a95752e3c2dba4f54ee1068";
|
|
|
|
hash = "sha256-JRjQRbMqtd04/aO6NkInoDqfOrHnDrXj4C4/URiU6yo=";
|
2021-12-18 04:20:00 +00:00
|
|
|
};
|
|
|
|
|
2023-02-23 04:20:00 +00:00
|
|
|
vendorHash = "sha256-sjwQ/zEYJRkeWUDB7TzV8z+kET8lVRnQkXYbZbcUeHY=";
|
2021-12-18 04:20:00 +00:00
|
|
|
|
2022-07-09 04:20:00 +00:00
|
|
|
nativeBuildInputs = [ makeBinaryWrapper ];
|
2022-05-01 04:20:00 +00:00
|
|
|
|
2022-07-09 04:20:00 +00:00
|
|
|
ldflags = [ "-s" "-w" "-X main.Commit=-${src.rev}" ];
|
2021-12-18 04:20:00 +00:00
|
|
|
|
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 ];
|
|
|
|
};
|
|
|
|
}
|