mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-10-06 20:48:32 +03:00
tdl: init at 0.15.1
This commit is contained in:
parent
a7053c695d
commit
ca067c7863
34
pkgs/by-name/td/tdl/package.nix
Normal file
34
pkgs/by-name/td/tdl/package.nix
Normal file
@ -0,0 +1,34 @@
|
||||
{ lib
|
||||
, buildGoModule
|
||||
, fetchFromGitHub
|
||||
}:
|
||||
buildGoModule rec {
|
||||
pname = "tdl";
|
||||
version = "0.15.1";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "iyear";
|
||||
repo = "tdl";
|
||||
rev = "v${version}";
|
||||
hash = "sha256-vKcKHxPwF7kdsEASJ4VunPZ9kVztPq3yH8RnCd9uI9A=";
|
||||
};
|
||||
|
||||
vendorHash = "sha256-v5okd7PAnA2JsgZ4SqvpZmXOQXSCzl+SwFx9NWo7C/0=";
|
||||
|
||||
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";
|
||||
};
|
||||
}
|
Loading…
Reference in New Issue
Block a user