nixpkgs/pkgs/by-name/td/tdl/package.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

39 lines
798 B
Nix
Raw Normal View History

{
lib,
buildGoModule,
fetchFromGitHub,
2024-02-03 23:42:09 +00:00
}:
buildGoModule rec {
pname = "tdl";
2024-09-09 03:06:25 +00:00
version = "0.17.4";
2024-02-03 23:42:09 +00:00
src = fetchFromGitHub {
owner = "iyear";
repo = "tdl";
rev = "v${version}";
2024-09-09 03:06:25 +00:00
hash = "sha256-+2K+8IGl7c2Nq1wr3pDl4H9MEbPsXZotsyaor5TzD5s=";
2024-02-03 23:42:09 +00:00
};
2024-09-09 03:06:25 +00:00
vendorHash = "sha256-1PgE7Qxxe+GMaMpH5xql/NX8+QSkGRn++/+T6MQkUmM=";
2024-02-03 23:42:09 +00:00
ldflags = [
"-s"
"-w"
"-X=github.com/iyear/tdl/pkg/consts.Version=${version}"
];
# Filter out the main executable
subPackages = [ "." ];
2024-02-03 23:42:09 +00:00
# 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";
};
}