mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-27 17:33:09 +00:00
35 lines
734 B
Nix
35 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";
|
|
};
|
|
}
|