1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-11-18 19:51:17 +00:00
nixpkgs/pkgs/by-name/td/tdl/package.nix
2024-03-04 02:00:09 +04:00

35 lines
734 B
Nix

{ lib
, buildGoModule
, fetchFromGitHub
}:
buildGoModule rec {
pname = "tdl";
version = "0.16.1";
src = fetchFromGitHub {
owner = "iyear";
repo = "tdl";
rev = "v${version}";
hash = "sha256-xSnACm7LrsyhtQevDtP36bKeExSFd4Xsn7xLSLi7i+I=";
};
vendorHash = "sha256-VYxTSon2U9qj9sbMSlXrDFeOTOZXQVX2PyS+EDBG+YM=";
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";
};
}