depot/pkgs/by-name/td/tdl/package.nix
Luke Granger-Brown 57725ef3ec Squashed 'third_party/nixpkgs/' content from commit 76612b17c0ce
git-subtree-dir: third_party/nixpkgs
git-subtree-split: 76612b17c0ce71689921ca12d9ffdc9c23ce40b2
2024-11-10 23:59:47 +00:00

38 lines
798 B
Nix

{
lib,
buildGoModule,
fetchFromGitHub,
}:
buildGoModule rec {
pname = "tdl";
version = "0.17.7";
src = fetchFromGitHub {
owner = "iyear";
repo = "tdl";
rev = "v${version}";
hash = "sha256-1dRZdLHSZo4d6kE8qdyyk8Va4VUVxw3LiiWaz4lGpPQ=";
};
vendorHash = "sha256-4lTbDMJkABZC1Slf9YhNZHXECbRhMbck2mqeIfog/aU=";
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";
};
}