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.

35 lines
734 B
Nix
Raw Normal View History

2024-02-03 23:42:09 +00:00
{ lib
, buildGoModule
, fetchFromGitHub
}:
buildGoModule rec {
pname = "tdl";
2024-03-03 22:00:09 +00:00
version = "0.16.1";
2024-02-03 23:42:09 +00:00
src = fetchFromGitHub {
owner = "iyear";
repo = "tdl";
rev = "v${version}";
2024-03-03 22:00:09 +00:00
hash = "sha256-xSnACm7LrsyhtQevDtP36bKeExSFd4Xsn7xLSLi7i+I=";
2024-02-03 23:42:09 +00:00
};
2024-03-03 22:00:09 +00:00
vendorHash = "sha256-VYxTSon2U9qj9sbMSlXrDFeOTOZXQVX2PyS+EDBG+YM=";
2024-02-03 23:42:09 +00:00
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";
};
}