about summary refs log tree commit diff
path: root/pkgs/by-name/td/tdl
diff options
context:
space:
mode:
authorAndrey Donets <donets.andre@gmail.com>2024-02-04 03:42:09 +0400
committerAndrey Donets <donets.andre@gmail.com>2024-02-07 13:12:30 +0400
commitca067c7863982a3c44323c63034e0a8447bce8b8 (patch)
tree3cd69118de7679e65537f328dad95cbdab8c1a95 /pkgs/by-name/td/tdl
parenta7053c695ddcf99800d589774b9dc08c184c4dc2 (diff)
tdl: init at 0.15.1
Diffstat (limited to 'pkgs/by-name/td/tdl')
-rw-r--r--pkgs/by-name/td/tdl/package.nix34
1 files changed, 34 insertions, 0 deletions
diff --git a/pkgs/by-name/td/tdl/package.nix b/pkgs/by-name/td/tdl/package.nix
new file mode 100644
index 0000000000000..d4abe11fe7646
--- /dev/null
+++ b/pkgs/by-name/td/tdl/package.nix
@@ -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";
+  };
+}