From bbe2b8a46e51f95c7fe0d724700d388e31d57b30 Mon Sep 17 00:00:00 2001 From: Justin Restivo Date: Thu, 14 Aug 2025 15:57:40 -0400 Subject: [PATCH] tdf: 0.2.0 -> 0.4.1 --- pkgs/by-name/td/tdf/package.nix | 26 +++++++++++--------------- 1 file changed, 11 insertions(+), 15 deletions(-) diff --git a/pkgs/by-name/td/tdf/package.nix b/pkgs/by-name/td/tdf/package.nix index 030bbfe594ea..e02e0f0ee762 100644 --- a/pkgs/by-name/td/tdf/package.nix +++ b/pkgs/by-name/td/tdf/package.nix @@ -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; }; -} +})