ratty: init at 0.2.0
This commit is contained in:
@@ -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";
|
||||
};
|
||||
})
|
||||
Reference in New Issue
Block a user