Unverified Commit 1498b84f authored by nicoo's avatar nicoo Committed by GitHub
Browse files

Merge #309242: docfd 4.0.0 -> 5.1.0

parents 614d4b0a 9ad995c0
Loading
Loading
Loading
Loading
+31 −19
Original line number Diff line number Diff line
{ lib
, ocamlPackages
, stdenv
, overrideSDK
, fetchFromGitHub
, python3
, dune_3
, makeWrapper
, pandoc
, poppler_utils
, testers
, docfd
{
  lib,
  ocamlPackages,
  stdenv,
  overrideSDK,
  fetchFromGitHub,
  python3,
  dune_3,
  makeWrapper,
  pandoc,
  poppler_utils,
  testers,
  docfd,
}:

let
@@ -20,7 +21,7 @@ let
in
buildDunePackage' rec {
  pname = "docfd";
  version = "4.0.0";
  version = "5.1.0";

  minimalOCamlVersion = "5.1";

@@ -28,10 +29,15 @@ buildDunePackage' rec {
    owner = "darrenldl";
    repo = "docfd";
    rev = version;
    hash = "sha256-fgwUXRZ6k5i3XLxXpjbrl0TJZMT+NkGXf7KNwRgi+q8=";
    hash = "sha256-54gsX5C8AJAOkqnBxHLI76k6cEqWqEydxbZjJZl7FjE=";
  };

  nativeBuildInputs = [ python3 dune_3 makeWrapper ];
  nativeBuildInputs = [
    python3
    dune_3
    makeWrapper
  ];

  buildInputs = with ocamlPackages; [
    cmdliner
    containers-data
@@ -43,18 +49,24 @@ buildDunePackage' rec {
    notty
    ocolor
    oseq
    ppx_deriving
    ppxlib
    re
    spelll
    timedesc
    yojson
  ];

  postInstall = ''
    wrapProgram $out/bin/docfd --prefix PATH : "${lib.makeBinPath [ pandoc poppler_utils ]}"
    wrapProgram $out/bin/docfd --prefix PATH : "${
      lib.makeBinPath [
        pandoc
        poppler_utils
      ]
    }"
  '';

  passthru.tests.version = testers.testVersion {
    package = docfd;
  };
  passthru.tests.version = testers.testVersion { package = docfd; };

  meta = with lib; {
    description = "TUI multiline fuzzy document finder";