From 31bb3428cd7205224dbd56cf366548ae08a574e4 Mon Sep 17 00:00:00 2001 From: poz Date: Mon, 11 May 2026 19:46:59 +0200 Subject: [PATCH] ratty: init at 0.2.0 --- pkgs/by-name/ra/ratty/package.nix | 70 +++++++++++++++++++++++++++++++ 1 file changed, 70 insertions(+) create mode 100644 pkgs/by-name/ra/ratty/package.nix diff --git a/pkgs/by-name/ra/ratty/package.nix b/pkgs/by-name/ra/ratty/package.nix new file mode 100644 index 000000000000..04859c8bc71b --- /dev/null +++ b/pkgs/by-name/ra/ratty/package.nix @@ -0,0 +1,70 @@ +{ + fetchFromGitHub, + fontconfig, + lib, + libxcb, + libxkbcommon, + makeBinaryWrapper, + pkg-config, + rustPlatform, + systemdLibs, + vulkan-loader, + wayland, + zlib, +}: +rustPlatform.buildRustPackage (finalAttrs: { + pname = "ratty"; + version = "0.2.0"; + + src = fetchFromGitHub { + owner = "orhun"; + repo = "ratty"; + tag = "v${finalAttrs.version}"; + hash = "sha256-fDNlyTOhwI1nzNf2/Z9DWtTEdJCZEDogLu13ETbpJAw="; + }; + + cargoHash = "sha256-4oLBONIyC924UGTw0d9RzGvNBolWdLMzzC+mihcD3B0="; + + nativeBuildInputs = [ + pkg-config + makeBinaryWrapper + ]; + + buildInputs = [ + fontconfig + libxcb + libxkbcommon + systemdLibs + vulkan-loader + wayland + zlib + ]; + + # no tests currently, speeds up build time + # will be changed when tests are introduced + doCheck = false; + + postFixup = '' + wrapProgram $out/bin/ratty \ + --set LD_LIBRARY_PATH "${ + lib.makeLibraryPath [ + libxkbcommon + vulkan-loader + wayland + ] + }" + ''; + + __structuredAttrs = true; + + meta = { + description = "GPU-rendered terminal emulator with inline 3D graphics"; + homepage = "https://ratty-term.org/"; + downloadPage = "https://github.com/orhun/ratty"; + changelog = "https://github.com/orhun/ratty/blob/main/CHANGELOG.md"; + license = lib.licenses.mit; + maintainers = with lib.maintainers; [ poz ]; + platforms = lib.platforms.linux; + mainProgram = "ratty"; + }; +})