nixpkgs/pkgs/by-name/td/tdf/package.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

53 lines
1.0 KiB
Nix
Raw Normal View History

2024-05-29 09:38:43 +00:00
{
lib,
fetchFromGitHub,
rustPlatform,
pkg-config,
cairo,
glib,
poppler,
}:
rustPlatform.buildRustPackage {
pname = "tdf";
2024-12-04 18:17:44 +00:00
version = "0.2.0";
2024-05-29 09:38:43 +00:00
src = fetchFromGitHub {
owner = "itsjunetime";
repo = "tdf";
fetchSubmodules = true;
2024-12-04 18:17:44 +00:00
rev = "a2b728fae3c5b0addfa64e8d3e44eac6fd50f1d9";
hash = "sha256-0as/tKw0nKkZn+5q5PlKwK+LZK0xWXDAdiD3valVjBs=";
2024-05-29 09:38:43 +00:00
};
2024-12-10 12:27:50 +00:00
useFetchCargoVendor = true;
cargoHash = "sha256-krIPfi4SM4uCw7NLauudwh1tgAaB8enDWnMC5X16n48=";
2024-05-29 09:38:43 +00:00
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 = "Tui-based PDF viewer";
homepage = "https://github.com/itsjunetime/tdf";
license = lib.licenses.mpl20;
2024-12-04 18:47:31 +00:00
maintainers = with lib.maintainers; [
luftmensch-luftmensch
DieracDelta
];
2024-05-29 09:38:43 +00:00
mainProgram = "tdf";
2024-12-04 17:58:32 +00:00
platforms = lib.platforms.linux ++ lib.platforms.darwin;
2024-05-29 09:38:43 +00:00
};
}