tdf: init at 0-unstable-2024-05-29

This commit is contained in:
luftmensch-luftmensch 2024-05-29 11:38:43 +02:00
parent c01818d57c
commit e897944fde
No known key found for this signature in database
2 changed files with 1566 additions and 0 deletions

1511
pkgs/by-name/td/tdf/Cargo.lock generated Normal file

File diff suppressed because it is too large Load Diff

View File

@ -0,0 +1,55 @@
{
lib,
fetchFromGitHub,
rustPlatform,
pkg-config,
cairo,
glib,
poppler,
}:
rustPlatform.buildRustPackage {
pname = "tdf";
version = "0-unstable-2024-05-29";
src = fetchFromGitHub {
owner = "itsjunetime";
repo = "tdf";
fetchSubmodules = true;
rev = "017596a8b0745a6da7c3c75a5f55073b82202a5c";
hash = "sha256-H0xdDvWDSkvIy4vFWKiVFP03CogswIZMQ393BeEy2BQ=";
};
cargoLock = {
lockFile = ./Cargo.lock;
outputHashes = {
"ratatui-0.26.3" = "sha256-lRQQJqt9UKZ2OzvrNzq/FqDvU6CgPPDAB2QDB7TR1V4=";
"ratatui-image-1.0.0" = "sha256-0lrFmXPljKKNIbLNhQsuCv7HhJOJ234HSfUPj4XSeXY=";
"vb64-0.1.2" = "sha256-VvObgaJhHNah3exVQInFa5mhHjzEg0MaFqQdnCE5Pp8=";
};
};
nativeBuildInputs = [ pkg-config ];
buildInputs = [
cairo
glib
poppler
];
strictDeps = true;
# No tests are currently present
doCheck = false;
# requires nightly features (feature(portable_simd))
RUSTC_BOOTSTRAP = true;
meta = {
description = "A tui-based PDF viewer";
homepage = "https://github.com/itsjunetime/tdf";
license = lib.licenses.mpl20;
maintainers = with lib.maintainers; [ luftmensch-luftmensch ];
mainProgram = "tdf";
platforms = lib.platforms.linux;
};
}