evcc: 0.131.4 -> 0.131.5
[NixPkgs.git] / pkgs / by-name / td / tdf / package.nix
blob97f61c202242e4fb87d52e6edf2f85374325e94b
2   lib,
3   fetchFromGitHub,
4   rustPlatform,
5   pkg-config,
6   cairo,
7   glib,
8   poppler,
9 }:
11 rustPlatform.buildRustPackage {
12   pname = "tdf";
13   version = "0-unstable-2024-10-09";
15   src = fetchFromGitHub {
16     owner = "itsjunetime";
17     repo = "tdf";
18     fetchSubmodules = true;
19     rev = "f6d339923bc71d3f637f24bf0c6eef6dacb61bf9";
20     hash = "sha256-C1S5u1EsOYvUE1CqreeBg7Z5Oj+mzCf0zPdZBz0LNLw=";
21   };
23   cargoLock = {
24     lockFile = ./Cargo.lock;
25     outputHashes = {
26       "ratatui-0.28.1" = "sha256-riVdXpHW5J1f4YY2A32YLpwydxn/kJ1cHRdm7CCdoN8=";
27       "ratatui-image-2.0.1" = "sha256-ZFd7ABeyuO270vWEZEE685Bil6sq3RndqoD7TSU8qmU=";
28       "vb64-0.1.2" = "sha256-Ypb59Rtn0ZkP6fwqIqOEeiNLcmzB368CkViIVCxpCI8=";
29     };
30   };
32   nativeBuildInputs = [ pkg-config ];
33   buildInputs = [
34     cairo
35     glib
36     poppler
37   ];
39   strictDeps = true;
41   # No tests are currently present
42   doCheck = false;
44   # requires nightly features (feature(portable_simd))
45   RUSTC_BOOTSTRAP = true;
47   meta = {
48     description = "Tui-based PDF viewer";
49     homepage = "https://github.com/itsjunetime/tdf";
50     license = lib.licenses.mpl20;
51     maintainers = with lib.maintainers; [ luftmensch-luftmensch ];
52     mainProgram = "tdf";
53     platforms = lib.platforms.linux;
54   };