mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-07-06 17:13:24 -05:00
parent
6218be7281
commit
2fef72642d
1 changed files with 32 additions and 0 deletions
32
pkgs/by-name/th/threadcat/package.nix
Normal file
32
pkgs/by-name/th/threadcat/package.nix
Normal file
|
|
@ -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";
|
||||
};
|
||||
})
|
||||
Loading…
Add table
Add a link
Reference in a new issue