7e47f3658e
GitOrigin-RevId: 1925c603f17fc89f4c8f6bf6f631a802ad85d784
31 lines
827 B
Nix
31 lines
827 B
Nix
{ lib, buildGoModule, fetchFromGitHub, makeBinaryWrapper, ffmpeg-headless }:
|
|
|
|
buildGoModule rec {
|
|
pname = "ytarchive";
|
|
version = "0.5.0";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "Kethsar";
|
|
repo = "ytarchive";
|
|
rev = "v${version}";
|
|
hash = "sha256-Y1frd7iJJuNFvLL/C1Y+RrqYC/1LF7P3J9rkPAThp9c=";
|
|
};
|
|
|
|
vendorHash = "sha256-hVAiWJKdDQB+6UlARFdjVATCMiGrEK2US62KAxCquvU=";
|
|
|
|
nativeBuildInputs = [ makeBinaryWrapper ];
|
|
|
|
ldflags = [ "-s" "-w" "-X main.Commit=-${src.rev}" ];
|
|
|
|
postInstall = ''
|
|
wrapProgram $out/bin/ytarchive --prefix PATH : ${lib.makeBinPath [ ffmpeg-headless ]}
|
|
'';
|
|
|
|
meta = with lib; {
|
|
homepage = "https://github.com/Kethsar/ytarchive";
|
|
description = "Garbage Youtube livestream downloader";
|
|
license = licenses.mit;
|
|
maintainers = [ ];
|
|
mainProgram = "ytarchive";
|
|
};
|
|
}
|