From 2fef72642d7eb105061c65d971f4c4f48bd49699 Mon Sep 17 00:00:00 2001 From: Jan-Niklas Burfeind Date: Sat, 25 Apr 2026 19:01:06 +0200 Subject: [PATCH] threadcat: init at 0.1.2 (cherry picked from commit ae6a1c5699f55f627f88bddd5dd55768326b966e) --- pkgs/by-name/th/threadcat/package.nix | 32 +++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 pkgs/by-name/th/threadcat/package.nix diff --git a/pkgs/by-name/th/threadcat/package.nix b/pkgs/by-name/th/threadcat/package.nix new file mode 100644 index 000000000000..ad8e86a238c9 --- /dev/null +++ b/pkgs/by-name/th/threadcat/package.nix @@ -0,0 +1,32 @@ +{ + lib, + fetchFromCodeberg, + nix-update-script, + rustPlatform, +}: + +rustPlatform.buildRustPackage (finalAttrs: { + pname = "threadcat"; + version = "0.1.2"; + + src = fetchFromCodeberg { + owner = "blinry"; + repo = "threadcat"; + tag = "v${finalAttrs.version}"; + hash = "sha256-AbdxEgnUM5iqFTKrMK2FnFWvELk46PEEWSVAlv1MBzQ="; + }; + + cargoHash = "sha256-F46gEUWcKl1nFS1faXeWJLV0lmCrJhBN3XpOiTcGXEc="; + + passthru.updateScript = nix-update-script { }; + + __structuredAttrs = true; + + meta = { + description = "Converts a Mastodon thread to Markdown, and downloads all contained media files"; + homepage = "https://codeberg.org/blinry/threadcat"; + license = lib.licenses.gpl3Plus; + maintainers = [ lib.maintainers.aiyion ]; + mainProgram = "threadcat"; + }; +})