159e378cbb
GitOrigin-RevId: c04d5652cfa9742b1d519688f65d1bbccea9eb7e
38 lines
798 B
Nix
38 lines
798 B
Nix
{
|
|
lib,
|
|
buildGoModule,
|
|
fetchFromGitHub,
|
|
}:
|
|
buildGoModule rec {
|
|
pname = "tdl";
|
|
version = "0.17.4";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "iyear";
|
|
repo = "tdl";
|
|
rev = "v${version}";
|
|
hash = "sha256-+2K+8IGl7c2Nq1wr3pDl4H9MEbPsXZotsyaor5TzD5s=";
|
|
};
|
|
|
|
vendorHash = "sha256-1PgE7Qxxe+GMaMpH5xql/NX8+QSkGRn++/+T6MQkUmM=";
|
|
|
|
ldflags = [
|
|
"-s"
|
|
"-w"
|
|
"-X=github.com/iyear/tdl/pkg/consts.Version=${version}"
|
|
];
|
|
|
|
# Filter out the main executable
|
|
subPackages = [ "." ];
|
|
|
|
# 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";
|
|
};
|
|
}
|