tdf: 0.2.0 -> 0.4.1 (#433762)

This commit is contained in:
Yohann Boniface
2025-08-17 04:24:07 +02:00
committed by GitHub
+11 -15
View File
@@ -4,34 +4,30 @@
rustPlatform,
pkg-config,
cairo,
glib,
poppler,
}:
rustPlatform.buildRustPackage {
rustPlatform.buildRustPackage (finalAttrs: {
pname = "tdf";
version = "0.2.0";
version = "0.4.1";
src = fetchFromGitHub {
owner = "itsjunetime";
repo = "tdf";
fetchSubmodules = true;
rev = "a2b728fae3c5b0addfa64e8d3e44eac6fd50f1d9";
hash = "sha256-0as/tKw0nKkZn+5q5PlKwK+LZK0xWXDAdiD3valVjBs=";
tag = "v${finalAttrs.version}";
hash = "sha256-yttuWWKIrh54eJSdKejDTswoDarNifD5DtfQHSlL3rE=";
};
cargoHash = "sha256-krIPfi4SM4uCw7NLauudwh1tgAaB8enDWnMC5X16n48=";
cargoHash = "sha256-UB7G5tl90CNq/aYUaUOpgGJcEL9ND3pJ29/lpIkh2iU=";
nativeBuildInputs = [ pkg-config ];
buildInputs = [
rustPlatform.bindgenHook
cairo
glib
poppler
];
strictDeps = true;
# No tests are currently present
# Tests depend on cpuprofiler, which is not packaged in nixpkgs
doCheck = false;
# requires nightly features (feature(portable_simd))
@@ -40,12 +36,12 @@ rustPlatform.buildRustPackage {
meta = {
description = "Tui-based PDF viewer";
homepage = "https://github.com/itsjunetime/tdf";
license = lib.licenses.gpl3Plus;
license = lib.licenses.agpl3Only;
maintainers = with lib.maintainers; [
luftmensch-luftmensch
DieracDelta
];
mainProgram = "tdf";
platforms = lib.platforms.linux ++ lib.platforms.darwin;
platforms = lib.platforms.unix;
};
}
})