{ lib, buildGoModule, fetchFromGitHub, }: buildGoModule rec { pname = "tdl"; version = "0.19.0"; src = fetchFromGitHub { owner = "iyear"; repo = "tdl"; rev = "v${version}"; hash = "sha256-EYS4EK0NmNHnvjMkf5AHrYpZeGw+n2ovFDLanbqpF4Y="; }; vendorHash = "sha256-GpqgH23eK0h2BYxjN5TNUWEOT72smYdUoD1Iy6L2jL4="; 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"; }; }