2024-08-06 14:52:45 +00:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
buildGoModule,
|
|
|
|
fetchFromGitHub,
|
2024-02-03 23:42:09 +00:00
|
|
|
}:
|
|
|
|
buildGoModule rec {
|
|
|
|
pname = "tdl";
|
2024-09-09 03:06:25 +00:00
|
|
|
version = "0.17.4";
|
2024-02-03 23:42:09 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "iyear";
|
|
|
|
repo = "tdl";
|
|
|
|
rev = "v${version}";
|
2024-09-09 03:06:25 +00:00
|
|
|
hash = "sha256-+2K+8IGl7c2Nq1wr3pDl4H9MEbPsXZotsyaor5TzD5s=";
|
2024-02-03 23:42:09 +00:00
|
|
|
};
|
|
|
|
|
2024-09-09 03:06:25 +00:00
|
|
|
vendorHash = "sha256-1PgE7Qxxe+GMaMpH5xql/NX8+QSkGRn++/+T6MQkUmM=";
|
2024-02-03 23:42:09 +00:00
|
|
|
|
|
|
|
ldflags = [
|
|
|
|
"-s"
|
|
|
|
"-w"
|
|
|
|
"-X=github.com/iyear/tdl/pkg/consts.Version=${version}"
|
|
|
|
];
|
|
|
|
|
2024-08-06 14:52:45 +00:00
|
|
|
# Filter out the main executable
|
|
|
|
subPackages = [ "." ];
|
|
|
|
|
2024-02-03 23:42:09 +00:00
|
|
|
# Requires network access
|
|
|
|
doCheck = false;
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Telegram downloader/tools written in Golang";
|
|
|
|
homepage = "https://github.com/iyear/tdl";
|
|
|
|
license = licenses.agpl3Only;
|
|
|
|
maintainers = with maintainers; [ Ligthiago ];
|
|
|
|
mainProgram = "tdl";
|
|
|
|
};
|
|
|
|
}
|