diff --git a/pkgs/tools/misc/kitty-img/default.nix b/pkgs/tools/misc/kitty-img/default.nix new file mode 100644 index 000000000000..75a2b81d7d75 --- /dev/null +++ b/pkgs/tools/misc/kitty-img/default.nix @@ -0,0 +1,23 @@ +{ lib, rustPlatform, fetchFromSourcehut }: + +rustPlatform.buildRustPackage rec { + pname = "kitty-img"; + version = "1.0.0"; + + src = fetchFromSourcehut { + owner = "~zethra"; + repo = "kitty-img"; + rev = version; + hash = "sha256-5thx4ADmJE29bxN+ZO3hF0jhgXK+boqt8oj4Sygl5SU="; + }; + + cargoHash = "sha256-Ai1Esw83V3jbPDDQyNh8bTNLQBYBonIDkWP3AFgN78U="; + + meta = with lib; { + description = "Print images inline in kitty"; + homepage = "https://git.sr.ht/~zethra/kitty-img"; + changelog = "https://git.sr.ht/~zethra/kitty-img/refs/${version}"; + license = with licenses; [ mit ]; + maintainers = with maintainers; [ gaykitty ]; + }; +} diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 7d7fb1f9c289..275940deef70 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -5033,6 +5033,8 @@ with pkgs; fsql = callPackage ../tools/misc/fsql { }; + kitty-img = callPackage ../tools/misc/kitty-img { }; + ### TOOLS/TYPESETTING/TEX advi = callPackage ../tools/typesetting/tex/advi { };