c7cb07f092
GitOrigin-RevId: 1536926ef5621b09bba54035ae2bb6d806d72ac8
34 lines
734 B
Nix
34 lines
734 B
Nix
{ lib
|
|
, buildGoModule
|
|
, fetchFromGitHub
|
|
}:
|
|
buildGoModule rec {
|
|
pname = "tdl";
|
|
version = "0.16.0";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "iyear";
|
|
repo = "tdl";
|
|
rev = "v${version}";
|
|
hash = "sha256-Myf10+Y7lyJFhiRpJFkXe5Rng0ChzOm0EGvPEuFMYp4=";
|
|
};
|
|
|
|
vendorHash = "sha256-n3AISS4/yujTNqgGjeEK2eWw0YI1XUafZP36yD+axN4=";
|
|
|
|
ldflags = [
|
|
"-s"
|
|
"-w"
|
|
"-X=github.com/iyear/tdl/pkg/consts.Version=${version}"
|
|
];
|
|
|
|
# Requires network access
|
|
doCheck = false;
|
|
|
|
meta = with lib; {
|
|
description = "A Telegram downloader/tools written in Golang";
|
|
homepage = "https://github.com/iyear/tdl";
|
|
license = licenses.agpl3Only;
|
|
maintainers = with maintainers; [ Ligthiago ];
|
|
mainProgram = "tdl";
|
|
};
|
|
}
|