1
0
Fork 0
mirror of https://github.com/NixOS/nixpkgs synced 2024-10-18 12:50:18 -04:00
nixpkgs/pkgs/by-name/td/tdl/package.nix
2024-10-04 07:30:49 +00:00

39 lines
798 B
Nix

{
lib,
buildGoModule,
fetchFromGitHub,
}:
buildGoModule rec {
pname = "tdl";
version = "0.17.5";
src = fetchFromGitHub {
owner = "iyear";
repo = "tdl";
rev = "v${version}";
hash = "sha256-K8eq3cuPRgVSqd9VVjlE9DQJQKlyUGZKAhPRwpUTrTc=";
};
vendorHash = "sha256-X9gQ0mtuIgeo7s/IOAC5k6q3C8rBOKjTdQgeV7d3L60=";
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";
};
}